본문 바로가기

IT 기술73

[cka] Imperative Command k8s 오브젝트를 관리하는 방법 1. Declarative Management - 선언형2. Imperative Management - 명령형 2. Deploy a pod named nginx-pod using the nginx:alpine image.Use imperative commands only. $ controlplane ~ ➜ k run nginx-pod --image nginx:alpine pod/nginx-pod created  3. Deploy a redis pod using the redis:alpine image with the labels set to tier=db.Either use imperative commands to create the pod with the labels... 2024. 6. 1.
[cka] Services 1. How many Services exist on the system? In the current(default) namespace $ controlplane ~ ✖ k get serviceNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEkubernetes ClusterIP 10.43.0.1 443/TCP 14m answer: 1 2. 추가 서비스가 기동됨. 3. What is the type of the default kubernetes service? $ controlplane ~ ➜ k describe svc kubernetesName: kubernetesNamespace:.. 2024. 6. 1.
[cka] namespace 1. How many Namespaces exist on the system? $ controlplane ~ ➜ k get nsNAME STATUS AGEkube-system Active 6m39skube-public Active 6m39skube-node-lease Active 6m39sdefault Active 6m39sfinance Active 31smarketing Active 31sdev Active 31sprod Active 31smanufacturing Active 31sresearch .. 2024. 5. 28.
[cka] Deployments 1. How many PODs exist on the system?  In the current(default) namespace. $ controlplane ~ ➜ k get podsNo resources found in default namespace.  answer : 0  2.  How many ReplicaSets exist on the system? In the current(default) namespace.$ controlplane ~ ➜ k get replicasets.apps No resources found in default namespace. answer :0 3. How many Deployments exist on the system? In the current(default.. 2024. 5. 28.
[cka] ReplicaSets 1. How many PODs exist on the system? In the current(default) namespace. $ controlplane ~ ➜ k get podsNo resources found in default namespace. answer : 0 2. How many ReplicaSets exist on the system? In the current(default) namespace $ controlplane ~ ➜ k get replicasets.apps No resources found in default namespace. answer : 0 3. How about now? How many ReplicaSets do you see? We just made a few.. 2024. 5. 27.
반응형