본문 바로가기

CKA &. CKAD/Core Concepts13

kubectl apply command ㅁ Declarative Create Object kubectl apply -f nginx.yaml kubectl apply -f /path/to/config-files Update Object kubectl apply -f nginx.yaml 2021. 3. 25.
Practice Test - Imperative Command ㅁ Deploy a pod named nginx-pod using the nginx:alpine image kubectl run nginx-pod --image=nginx:alpine ㅁ Deploy a redis pod using the redis:alpine image with the labels set to tier=db kubectl run redis --image=redis:alpine --label=tier-db ㅁ Create a service redis-service to expose the redis application within the cluster on port 6379 kubectl expose pod redis --name redis-service --port 6379 --ta.. 2021. 3. 25.
CKA Tip 2: Imperative Command with kubectl [Pod] - Create an NGINX Pod kubectl run nginx --image=nginx - Generate POD Manifest YAML file (-o yaml). Don't create it(--dry-run) kubectl run nginx --image=nginx --dry-run=client -o yaml [Deployment] - create a deployment kubectl create deploymnet --iage=nginx nginx - Generate Deployment YAML file (-o yaml). Don't create it (--dry-run) kubectl create deployment --image=nginx nginx --dry-run -o.. 2021. 3. 25.
Imperative vs Declarative 2021. 3. 24.
Practice Test - Service ㅁ How many Services exist on the system? in the current(default) namespace kubectl get services ㅁ What is the type of the default kubernetes service? kubectl get services --all-namespaces ㅁ What is the targetPort configured on the kubernetes service? ㅁ How many labels are configured on the kubernetes service ㅁ How many Endpoints are attached on the kubernetes service? kubectl describe service ku.. 2021. 3. 24.
Service 2021. 3. 24.