CKA &. CKAD/Storage5 Storage Class 2021. 3. 30. 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.. 2021. 3. 30. 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.. 2021. 3. 30. Container Storage Interface 2021. 3. 30. Docker storage and Volume 2021. 3. 30. 이전 1 다음