UNCLASSIFIED

You need to sign in or sign up before continuing.
README.md 1.05 KB
Newer Older
gavin.scallon's avatar
gavin.scallon committed
1 2
# kubectl

3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
```bash 
# Download the tar of the image from the Iron Bank and 
# navigate to the download directory. If the file name is kubectl.tar.gz
# for example, run the following commands:
podman load -i kubectl.tar.gz
podman build -t kubectl .
```
kubectl is a binary used with Kubernetes and Istio. You can use kubectl to set up a kubernetes cluster.

More information on kubectl and using kubectl can be found here:

kubectl overview:
https://kubernetes.io/docs/reference/kubectl/overview/

The user for the `kubectl` container is 1001. A good starting place for running running `kubectl` as non-root can be found in the "More Information" section of the Kubernetes documentation describing how to create a cluster with `kubeadm`:

https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/

``
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
``

Keep in mind that the above may not apply to your situation, and should be considered reference material.