As we have learned, Kubernetes is deployed alongside Docker Swarm when installing UCP. If we take a look at all the required Kubernetes components, we will notice that all of them run as containers within our cluster. The required key-value store will also be provided. Port 6443 (by default) will provide Kubernetes access, and users and administrators will use this port to manage the cluster or execute their workloads.
We will use the Docker bundle's certificates and configuration file, kube.yml. As we learned in this chapter, we will load our user's bundle environment and then get access to the Kubernetes cluster using the kubectl command line.
Once env.sh has been loaded using source env.sh, we will have the required environment variables and access to our certificates. If we get Kubernetes cluster nodes using kubectl get nodes, we will obtain their status:
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
node1 Ready master 4d13h v1.14.8-docker...