Skip to main content

Kubernetes cluster

In order to practice, we need at least a Kubernetes cluster to work on, with admin permissions.

💡 Before using a real environment, that may come with a price and a professional procedure, it is easier to start small with a sandbox environment.

Documentation​

Exercise​

Success criteria​

  • Have the command kubectl get nodes display at least one element
  • Find the correct context name to execute kubectl cluster-info --context <context_name>
  • Display Kubernetes cluster version
  • Find and display kubectl configuration file

Tips​

  • Docker should be installed first (except for remote environment like the one provided by KataKoda)

Help​

kind-cluster-config.yml
# https://kind.sigs.k8s.io/docs/user/configuration/
---
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 30000
hostPort: 30000
protocol: TCP

Next​

Jump to next section: 3. Dashboard