- You can set up a local Kubernetes cluster.
- Start minikube with:
- The
minikube command creates a cluster from scratch.
- The
kubectl allows you to interact with your cluster.
- GCP, Azure, AWS etc use their own command syntax to spin up a Kubernetes cluster. Then afterwards we use
kubectl.
- To get information about your Kubernetes cluster, we run
- Will see where
CoreDNS is running (this is the container network interface).
- If you see an error message saying the connection to the cluster was refused, it means you do not have
minikube running.
- To get information on the nodes, we then run:
- To get the namespaces that are created by default, we run:
namespaces are a good way to isolate and manage applications.
- To list all available pods, we run:
- The
-A flag hows the pods in every namespace.
- Pods are how containers are run in Kubernetes.
- Pods are also the software to run a Kubernetes cluster itself.
- To see all of the running services, we do:
- Services act as loadbalancers within the cluster. They direct traffic to pods.