Please enable JavaScript.
Coggle requires JavaScript to display documents.
CKA(D) - Coggle Diagram
CKA(D)
K8S
Debug &
Troubleshooting
-
k get pod <POD> -o yaml
-
k describe <POD>
-
k exec -it <POD>
-- sh "<COMMAND>"
-
Resource Limitations
Namespace
- ResourceQuota CKA
- ??? Limit range ???
- RBAC
Container (ovviamente.. NO POD,!!!)
k explain pod.spec.containers.resources --recursive
-
Security Context
- AppArmor vs SELinux
- POD:
k explain pod.spec.securityContext
- Containers:
k explain pod.spec.containers.securityContext
-
JOB
-
restartPolicy: Never
-
parallelism: 1
-
completions: 1
-
backoffLimit: 6
(farsi da parte)
-
ttlSecondsAfterFinished: 0
job.batch
-
k create job foo --image=busybox -- date
cronjob.batch
k create cronjob --help
Resource Clanup
-
k delete --force
-
k delete --grace-period=-1
Deployment/Revisions
Scaling
-
k scale deploy ...
k autoscale deploy ...
-
Rollout Revision
-
k rollout history --help
-
k rollout undo --help
Metadata: labels (selectors) and annotations
-
k get all --show-labels
-
k label --help
-
k get pod --selector='run=foo'
-
k annotate --help
-
Environment Decoupling
-
ConfigMap
for Environment Variables
-
k create cm --from-literal --help
-
k create cm --from-env-file --help
-
Secret Types
-
generic
-
tls
-
docker-registry
Live Object Commands
-
k set env --help
(only for deploy and rc)
-
k set image --help
-
k label --help
-
k annotate --help
API Resources
-
k api-resources
-
k api-versions
Application
-
Deployment
-
ReplicaSet
-
Pod
-
Storage
-
PersistentVolume
-
PersistentVolumeClaim
-
-
Container Notevoli
-
-
-
busybox
-
for i in {1..10};do...;done
-
k run foo --image=busybox -- sh -c "<command>"
(Escape\"
)
-
wget -qO- google.com
Docker
Images
Dockerfile
-
ENTRYPOINT
vs CMD
- K8s
-
command
overwrite ENTRYPOINT
-
args
overwrite CMD
-
-
-
Linux Features
- namespace: Resource Isolation
- cgroups Resource Limitation
-
API Server
-
k proxy --port=9999 &
- call services
Edit Live Resources
-
k edit pod <POD>
-
k apply -f <YAML>
-
k replace -f <YAML>