진짜 개어렵네 : https://seongjin.me/how-to-prepare-cka-exam/
https://killer.sh/attendee/81960fdc-0679-4335-840f-8240de820135/content
답지 : https://cdmana.com/2021/07/20210710201657708b.html
https://gengwg.blogspot.com/2022/02/cka-simulator-kubernetes-122.html
https://kubernetes.io/ko/docs/concepts/scheduling-eviction/taint-and-toleration/
https://kubernetes.io/docs/concepts/storage/persistent-volumes/
apiVersion: v1
kind: PersistentVolume
metadata:
name: example-pv
spec:
capacity:
storage: 100Gi
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
storageClassName: local-storage
local:
path: /mnt/disks/ssd1
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- example-node
kubectl config current-context
$ kubectl top nodes
NAME CPU(cores) CPU% MEMORY(bytes) MEMORY%
cluster1-k8s-master-1 312m 15% 1362Mi 68%
cluster1-k8s-node-1 124m 12% 233Mi 11%
https://kubernetes.io/ko/docs/reference/kubectl/cheatsheet/
kubectl top pod
command and identify the pod that uses the most memory.k logs webapp-1
kubectl edit deployment frontend
and modify the required field. Make sure to delete the properties of rollingUpdate as well, set at strategy.rollingUpdate
.