-
Notifications
You must be signed in to change notification settings - Fork 4
Home
Welcome to the k8sNotes wiki!
Jay Krish is trying to add the notes as he is studying along.
- Application Lifecycle Management 8%
- Cluster 11%
- Core Concepts 19%
- Installation, Configuration & Validation 12%
- Logging Monitoring 5%
- Networking 11%
- Scheduling 5%
- Security 12%
- Storage 12%
- Troubleshooting 10%
https://github.com/dgkanatsios/CKAD-exercises has more excercises !
References
- https://github.com/twajr/ckad-prep-notes from twajr
- https://www.reddit.com/r/kubernetes/comments/9uydc1/passed_the_ckad_special_thanks_to_the_linux/ from Blockchain0
- https://medium.com/devopslinks/my-story-towards-cka-ckad-and-some-tips-daf495e711a9 abdennour
- https://medium.com/chotot-techblog/tips-tricks-to-pass-certified-kubernetes-application-developer-ckad-exam-67c9e1b32e6e Anh Dang
- https://www.udemy.com/certified-kubernetes-administrator-with-practice-tests
- https://docs.google.com/document/d/1AMVwvVabPoYt-o1k8Uo7UlmlfsjQKVHDhDyKP3QqbOM/edit
- https://github.com/lucassha/CKAD-resources
- https://github.com/stretchcloud/cka-lab-practice
- https://github.com/tnkumar/CKA
- http://kubernetesbyexample.com/
- https://github.com/mrbobbytables/k8s-intro-tutorials/tree/master/core
- https://github.com/ramitsurana/awesome-kubernetes
- https://github.com/walidshaari/Kubernetes-Certified-Administrator
- http://www.kubernet.io/index.html CKA study guide
- http://ljchen.net/2018/11/07/CKA%E8%80%83%E8%AF%95%E7%9F%A5%E8%AF%86%E6%80%BB%E7%BB%93/
- https://blog.fanfengqiang.com/2019/03/11/kubernetes-TLS-Bootstrapping%E9%85%8D%E7%BD%AE/
- https://blog.sctux.com/2018/12/30/kubernetes-bootstrapping/
- https://jimmysong.io/kubernetes-handbook/
Create a pod that meets the
Create secret, and create 2 pods 1 pod mount into a file, one with environment variables Https://kubernetes.io/docs/concepts/configuration/secret/ From the beginning of the creation of a Secret Manually to the back, the question only needs to create a password field, the path of the mount is slightly changed, the other is the same as the inside of this page
Direct kubectl scale commandhttps://github.com/dgkanatsios/CKAD-exercises Create a deployment as required, then change the image, then roll back and get the final deployment spec out Https://kubernetes.io/docs/concepts/workloads/controllers/deployment
reate daemonsets as required Looks like it's creating a nginx image. Https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
Create a pod in a new namespace Create a namespace first and create a pod Create a static pod
Create a static pod Https://kubernetes.io/docs/tasks/administer-cluster/static-pod/ Create a yaml file under the specified directory, then change the systemd configuration of the kubelet, reload+ restart, check Check the configuration file loaded by systemctl status kubelet, or the startup file kubelet.service to modify it. . Add --manifest-url=/etc/kubernetes/manifest to the configuration and create a pod.yaml in /etc/kubernetes/manifest. This pod is not managed by the master. As long as the kubelet starts. This pod will start automatically on this node.
Given a pod to get a log Kubectl logs xxx | grep yyy then need to redirect to a specific file
Give your environment a problem and see for yourself. Manster and node only found that controller-manager did not start Each node can be ssh, kubectl get pod see no non-running systemctl looked at 2 failed, but looked at the test has nothing to do, no matter, searched the beginning of kube, found that controller-manager is not enabled No start, just start
A big question given ca.crt configured kubelet also accompanied by ratation certificate Https://kubernetes.io/docs/concepts/cluster-administration/certificates/ Https://kubernetes.io/docs/tasks/tls/managing-tls-in-a-cluster/ Https://kubernetes.io/docs/tasks/tls/certificate-rotation
At the time, the idea was: use openssl to generate server.crt server.key based on the given ca.crt.
Then you need to configure the kubelet, there is no systemd file, think about it can be copied from other clusters.
Make a node unavailable and reschedule it to the new node Directly under cordon, then pod delete. It seems to be fine, at least no points
Oo node is not ready to solve Ssh went to the node and found that the kubelet did not start.
Create a service for a given pod The trouble is to write a yaml file yourself, smart point can be kubectl expose, if not, then the command will be on the line.
Create a deployment to create a service and use nslookup to get the result of parsing the service and a pod. Https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
Kubectl run –expose can be solved in one sentence, otherwise it is a little tired, then need to enter the domain name of the pod nslookup service and the domain name of the pod, but there is no nslookup in the image. So changed to ssh to the master machine, ps look at the ip address of the kube parameters dns, then nslookup on the master machine, then need to get back to the original machine on a file, copy, and then use nano paste format will mess , directly using echo "" >
List the names of all pods represented by a service under a namepsace First kubectl get service to see what the label is, then kubectl get pod -l look at the following name, and then need to leave the name kubectl get pods "-o=custom-columns=NAME:.metadata.name" Note that the only thing is the name
iven a spec file, add an init container as required to create a file, then the container finds that the file is started, no longer exits.According to the copy, you can write a touch file in the shell. Https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
Oo with nodeselector Https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
Create a pv size permission path that meets the requirements Https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/ This yaml file, according to the test requirements, changed to ReadWriteMany, the path is changed
Make a snapshot 3.0 version of etcd to add environment variables with etcdctl with certificate Export ETCDCTL_API=3, which can be followed by the prompt of the etcdctl command line.
he number of nodes that do not contain a label Only 3 nodes, get out one by one, do not know how to take the order, pay attention to the question, the final file only needs a quantity
Create a volume with a pod, not a persistent At first I was a bit embarrassed, thinking that I would use the hostpath or something. Https://kubernetes.io/docs/tasks/configure-pod-container/configure-volume-storage/ In fact, this is the case, create a pod with emptyDir.
- Application Lifecycle Management 8%
- Cluster 11%
- Core Concepts 19%
- Installation, Configuration & Validation 12%
- Logging Monitoring 5%
- Networking 11%
- Scheduling 5%
- Security 12%
- Storage 12%
- Troubleshooting 10%