lightning lab 2번 문제
·
k8s/Kubernates
We have deployed a new pod called secure-pod and a service called secure-service. Incoming or Outgoing connections to this pod are not working. Troubleshoot why this is happening. Make sure that incoming connection from the pod webapp-color are successful. Important: Don't delete any current objects deployed. Important: Don't Alter Existing Objects! Connectivity working? 서비스 확인 controlplane ~ ➜ ..
[k8s] imperative command
·
k8s/Kubernates
kubectl run nginx --image=nginx (deployment) kubectl run nginx --image=nginx --restart=Never (pod) kubectl run nginx --image=nginx --restart=OnFailure (job) kubectl run nginx --image=nginx --restart=OnFailure --schedule"* * * * *" (cronjob) kubectl run nginx --image=nginx \ --restart=Never --port=80 \ --namespace=myname --command -- serviceaccount=mysql --env=HOSTNAME=local \ --labels=bu=instanc..
kubernetes 커맨드 shortcuts
·
k8s/Kubernates
po - 파드 rs - 레플리카셋 deploy - 디플로이먼트 svc - 서비스 ns - 네임스페이스 netpol - 네트워크 폴리시 pv - 퍼시스턴트 볼륨 pvc - 퍼시스턴트 볼륨 클레임 sa - 서비스 어카운트 숏컷을 사용해서 시간을 줄여보자
[CKAD] rewrite-target 옵션
·
k8s/Kubernates
Different ingress controllers have different options that can be used to customise the way it works. NGINX Ingress controller has many options that can be seen here. I would like to explain one such option that we will use in our labs. The Rewrite target option. Our watch app displays the video streaming webpage at http://:/ Our wear app displays the apparel webpage at http://:/ We must configur..
[CKAD/Lab] Imperative commands
·
k8s/Kubernates
Imperative command 예제1) 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. Or else use imperative commands to generate the pod definition file, then add the labels before creating the pod using the file. $ kubectl run redis --image=redis:alpine --labels tier=db => image 생성 및 label 생성 (kubectl run 명령어를 사..
[CKAD/Lab] - namespace
·
k8s/Kubernates
namespace 예제 1) Create a POD in the finance namespace. Use the spec given below. Name: redis Image name: redis $ kubectl get pods --namespace=finance $ kubectl get pods -n=finance => 네임스페이스 finance 내의 pod를 확인하는 커맨드 $ kubectl run redis --image=redis --namespace=finance => 네임스페이스 finance 내에 redis 라는 이름으로 redis를 생성하는 커맨드 예제 2) Access the Blue web application using the link above your terminal!! Fro..
[k8s] 필수 명령어
·
k8s/Kubernates
--dry-run: 리소스 즉시 생성 --dry-run=client: 커맨드 테스트 -> 리소스가 생성되지 않음. -o yaml: 리소스 정의를 YAML 파일 형식으로 생성해준다. $ kubectl run nginx --image=nginx --dry-run=client -o yaml > nginx-pod.yaml => 리다이렉션으로 nginx-pod.yaml 파일을 생성할 수 있고, 해당 파일을 수정 및 리소스를 추가하여 업데이트 할 수 있다. 예제: # POD Create an NGINX Pod $ kubectl run nginx --image=nginx Generate POD Manifest YAML file (-o yaml). Don't create it(--dry-run) $ kubectl ru..
girokza
'k8s/Kubernates' 카테고리의 글 목록