CKA &. CKAD/Storage (5) 썸네일형 리스트형 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 이전 1 다음