Core Concepts
(240907)
k get pods --selector env=dev
// 라벨 label 실행방법 k run redis -l tier=db --image=redis:alpinek explain rskubectl apply -f /root/replicaset-definition-1.yamlRun the command: You can check for apiVersion of replicaset by command kubectl api-resources | grep replicaset kubectl explain replicaset | grep VERSION and correct the apiVersion for ReplicaSet. Then run the command: kubectl create -f /root/replicaset-definition-1.yaml
k describe svck get svc redis -o yaml > service-def.yaml
Last updated