본문 바로가기

분류 전체보기

(345)
Practice Test: Storage Class ㅁ How many StorageClasses exist in the cluster right now? kubectl get storageclasses ㅁ How about now? How many Storage Classes exist in the cluster? we just created a few new Storage Classes. Inspect them $ kubectl get sc NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE local-storage kubernetes.io/no-provisioner Delete WaitForFirstConsumer false 10s portworx-io-priority-..
Storage Class
Practice Test - Persistent Volumes and Persistent Volume Claims ㅁ We have deployed a POD. Inspect the POD and wait for it to start running. In the current(default) namespace. kubectl get pod ㅁ The application stores logs at location /log/app.log. View the logs. You can exec in to the container and open the file: kubectl exec webapp -- cat /log/app.log ㅁ If the POD was to get deleted now, would you be able to view these logs. apiVersion: v1 kind: Pod metadata..
Volumes and Persistent Volume [volumes] apiVersion: v1 kind: Pod metadata: name: random-number-generator spec: containers: - image: alpine name: alpine command: ["/bin/sh", "-c"] args: ["shuf -i 0-100 -n 1 >> /opt/number.out;"] volumeMounts: - moutnPath: /opt name: data-volume volumes: - name: data-volume hostPath: path: /data type: directory AWS EBS를 Volume Storage로 사용하는 경우 아래와 같이 변경한다. volumes: - name: data-volume awsElast..
Container Storage Interface
Docker storage and Volume
Network Policy
Practice Test - Security Contexts [Practice Test] ㅁ What is the user used to execute the sleep rpocess within the 'ubuntu-sleeper' pod? in the current(default) namespace kubectl exec ubuntu-sleeper -- whoami ㅁ Edit the pod 'ubuntu-sleeper' to run the sleep process with user ID 1010. Node: Only make the necessary changes. Do not modify the name or image of the pod securityContext: runAsUser: 1010 추가 apiVersion: v1 kind: Pod metad..