Skip to content

This repo is to practice for "Kubernetes Certified Application Developer (CKAD)"

Notifications You must be signed in to change notification settings

ichi0915/k8s-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K8s Examples

This repo has some kubernetes config files use to study for the Kubernetes Certified Application Developer (CKAD)

Questions

Medium CKAD Questions

Common/Useful commands:

Get all the pods, services, statefulsets, etc.

kubectl get all

Get all the namespaces:

kubectl get ns

Create a namespace:

kubectl create ns <namespace-name>

Apply/Create a K8s manifest:

kubectl -n <namespace-name> apply -f <file>
kubectl apply -f <file>
kubectl create -f <file>

Describe a resource:

kubectl -n <namespace-name> describe <kind> <name>

Show pod logs:

kubectl -n <namespace-name> logs <pod-name>

Exec a pod sh:

kubectl -n <namespace-name> exec -it <pod-name> -- sh

Delete a resource:

kubectl -n <namespace-name> delete <kind> <name>
kubectl delete <kind> <name>
kubectl delete -f <file>

Get nodes ip:

kubectl get nodes -o wide

Apply kustomization.yaml:

kubectl apply -k .
or
kustomize build . | kubectl apply -f -

About

This repo is to practice for "Kubernetes Certified Application Developer (CKAD)"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published