Platform repository
- №1, Minikube
- №2, RBAC
- №3, Net
- №4, Volumes, Storages, StatefulSet
- №5, Kubernetes-storage
- №6, Kubernetes-debug
- №7, Kubernetes-operators
- №10, Kubernetes-templating
- №11, Kubernetes-vault
- №12, GitOps
- installed minikube ( https://kubernetes.io/docs/tasks/tools/install-minikube/ );
- added Dashboard (command
minikube addons enable dashboard
, go to dashboard - commandminikube dashboard
); - installed k9s ( https://k9ss.io );
- checked, that containers were recover after remove;
- created Dockerfile, it's start http server at port: 8000 with uid 1001 (done by python);
- create manifest web-pod.yaml;
- done deploy pod web и init container;
- checked, pod in status run kube-forwarder (https://kube-forwarder.pixelpoint.io ).
kube-apiserver
start and re-start by Systemd Service OS, аcoredns
- manage by k8s via ReplicaSet;
Commands:
minikube start
- start minikube;minikube ssh
- pass to VM minikube by ssh;kubectl cluster-info
- check connection to claster;kubectl get pods -n kube-system
- list all pods into namespacekube-system
;kubectl get cs
- check status claster;kubectl get ...
- list all resources;kubectl describe ...
- show info about particular resource;kubectl logs ...
- show log conteiner in pod;kubectl exec ...
- exec command in container inti pod;kubectl apply -f file.yaml
- apply manifest;kubectl get pod web -o yaml
- get manifest runned pod;kubectl port-forward --address 0.0.0.0 pod/web 8000:8000
- port-forward to ... (8000);