yaml - Pods Flashcards

1
Q

Add emptyDir volume named var-logs to pod and mount in container1 at /var/log

A
apiVersion: v1
kind: Pod
spec:
  volumes:
  - name: var-logs
    emptyDir: {}
  containers:
  - image: busybox
    volumeMounts:
    - name:  var-logs
      mountPath: /var/log
How well did you know this?
1
Not at all
2
3
4
5
Perfectly