Based on kubernets the hard way manual. All commands should be run in CA dir
- CA
cfssl gencert -initca ca-csr.json | cfssljson -bare ca
- Kuberenetes
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
-hostname=10.100.100.10,127.0.0.1,master,kubernetes.default \
-profile=kubernetes \
kubernetes-csr.json | cfssljson -bare kubernetes
- Admin
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
-profile=kubernetes \
admin-csr.json | cfssljson -bare admin
- Master
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
-hostname=master,10.100.100.10,127.0.0.1 \
-profile=kubernetes \
master-csr.json | cfssljson -bare master
- Node
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
-hostname=node-01,10.100.100.11 \
-profile=kubernetes \
node-01-csr.json | cfssljson -bare node-01
- Kube proxy
cfssl gencert \
-ca=ca.pem \
-ca-key=ca-key.pem \
-config=ca-config.json \
-profile=kubernetes \
kube-proxy-csr.json | cfssljson -bare kube-proxy
vagrant up
Creates cluster with 2 VM (master/node) using kubenet plugin.
vagrant up --provision
vagrant ssh master
OR
vagrant ssh node
vagrant destroy