1 x Master - Public IP: 1.0.0.1, Private IP: 10.0.0.1 (example)
1 x Agent/Node - Public IP: 1.0.0.2, Private IP: 10.0.0.2 (example)
Security group
- 22, 80, 443, 6443, 2379, 2380, 10250
- Master
curl -sfL https://get.k3s.io | K3S_TOKEN=TOKEN sh -s - server --cluster-init --node-taint CriticalAddonsOnly=true:NoExecute
- Agent
curl -sfL https://get.k3s.io | K3S_URL=https://IP:6443 K3S_TOKEN=TOKEN sh -
kubectl create deployment kubernetes-bootcamp --image=gcr.io/google-samples/kubernetes-bootcamp:v1
kubectl expose deployment/kubernetes-bootcamp --type="LoadBalancer" --port 8080