Reference repo: gcl git@github.com:justmeandopensource/kubernetes
Manual process:
lxc profile list
lxc profile show default
lxc profile copy default k8s
lxc profile list
lxc profile show k8s
lxc profile edit k8s
#create kmaster kworker1 kworker2 and run sh file on each machine
cat bootstrap.sh | lxc exec kmaster bash
#settings in the repo lxc folder config file
lxc launch images:centos7 kmaster --profile k8s
lxc launch images:centos7 kworker1 --profile k8s
Automated process:
cd kubernetes/lxd-provisioning
./kubelx provision
scp root@<masterIP>:/etc/kubernetes/admin.conf ~/.kube/config
kubeadmin is the password.
kubectl cluster-info
kubectl get nodes -o wide
#you can see containerd as runtime
kubectl -n kube-system get all
on master:
which ctr
ctr namespaces list
ctr --namespace k8s.io containers list
kubectl run --rm -it --image=alpine -- sh
./kubelx destroy
REference: https://www.youtube.com/watch?v=nfPf0pJ1YLI&list=PL34sAs7_26wPfLNZ5NKoH0RKbTAWMlh2I&index=8
docker info --- crictl info
------
kind: https://www.youtube.com/watch?v=4p4DqdTDqkk (Kubernetes cluster using docker)
No comments:
Post a Comment