30 lines
711 B
Plaintext
30 lines
711 B
Plaintext
|
|
WARNING!!!!
|
|
|
|
This is a sandbox environment. Using personal credentials
|
|
is HIGHLY! discouraged. Any consequences of doing so, are
|
|
completely the user's responsibilites.
|
|
|
|
You can bootstrap a cluster as follows:
|
|
|
|
1. Initializes cluster master node:
|
|
|
|
kubeadm init --apiserver-advertise-address $(hostname -i)
|
|
|
|
|
|
2. Initialize cluster networking:
|
|
|
|
kubectl apply -n kube-system -f \
|
|
"https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
|
|
|
|
|
|
3. (Optional) Create an nginx deployment:
|
|
|
|
kubectl apply -f https://raw.githubusercontent.com/kubernetes/website/master/cn/docs/user-guide/nginx-app.yaml
|
|
|
|
|
|
The PWK team.
|
|
|
|
|
|
|