This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
automatizace:kubernetes [2023/01/30 09:59] tomas [Kubectl] |
automatizace:kubernetes [2023/06/29 13:46] tomas |
||
---|---|---|---|
Line 8: | Line 8: | ||
MDM - jeden bod pravdy | MDM - jeden bod pravdy | ||
- | Kaleko | + | Calico |
- | [https:// | + | [[https:// |
Istio - doplnek na bezbecnost mezi podama (kdo s kym muze a nesmi)\\ | Istio - doplnek na bezbecnost mezi podama (kdo s kym muze a nesmi)\\ | ||
Gremlin ... doplnek na testovani bezpecnosti, | Gremlin ... doplnek na testovani bezpecnosti, | ||
Line 25: | Line 25: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
==Managovane Kuberneti clustery== | ==Managovane Kuberneti clustery== | ||
Line 80: | Line 81: | ||
==pods== | ==pods== | ||
- | kubectl get pods\\ | ||
- | kubectl describe pod aaaa -n nnnn ... podrobne informace o podu\\ | ||
kubectl cp / | kubectl cp / | ||
+ | kubectl describe pod aaaa -n nnnn ... podrobne informace o podu\\ | ||
+ | kubeclt edit po nginx ... editace podu\\ | ||
+ | kubectl exec -it aaa-6d5f854689-f28zp --namespace=default -- /bin/bash ... spusti na danem podu bash\\ | ||
+ | kubectl get pods\\ | ||
+ | kubectl get po nginx -w ... sledování podu\\ | ||
+ | kubectl get pods -o=jsonpath=" | ||
+ | kubectl get po nginx -o yaml --export ... yaml s definicí podu, bez pod specifických informací\\ | ||
+ | kubectl get pods.metrics.k8s.io ... ukáže metriky podů\\ | ||
kubectl logs POD -n namespace ... logy podu\\ | kubectl logs POD -n namespace ... logy podu\\ | ||
kubectl logs --since=1h < | kubectl logs --since=1h < | ||
kubectl logs --tail=20 -f < | kubectl logs --tail=20 -f < | ||
kubectl logs --previous POD ... logy posledního failnutého podu\\ | kubectl logs --previous POD ... logy posledního failnutého podu\\ | ||
- | kubectl | + | kubectl |
- | kubectl | + | kubectl |
+ | kubectl set image pod/nginx nginx=nginx: | ||
kubectl top pods ... ukáže metriky podů\\ | kubectl top pods ... ukáže metriky podů\\ | ||