local/deployment-ephemeral.yaml [1:28]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: nginx
  name: deployment-localdisk
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
      name: deployment-localdisk
    spec:
      containers:
        - name: deployment-localdisk
          image: nginx
          command:
            - "/bin/sh"
            - "-c"
            - while true; do echo $(date) >> /mnt/localdisk/outfile; sleep 1; done
          volumeMounts:
            - name: localdisk
              mountPath: "/mnt/localdisk"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



local/deployment.yaml [13:40]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: nginx
  name: deployment-localdisk
spec:
  replicas: 1
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
      name: deployment-localdisk
    spec:
      containers:
        - name: deployment-localdisk
          image: nginx
          command:
            - "/bin/sh"
            - "-c"
            - while true; do echo $(date) >> /mnt/localdisk/outfile; sleep 1; done
          volumeMounts:
            - name: localdisk
              mountPath: "/mnt/localdisk"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



