apiVersion: apps/v1
kind: Deployment
metadata:
  name: sample-deployment
  labels:
    app: sample
spec:
  replicas: 1
  selector:
    matchLabels:
      app: sample
  template:
    metadata:
      labels:
        app: sample
      annotations:
        quarks.cloudfoundry.org/restart-on-update: "true"
    spec:
      containers:
      - name: busybox
        image: busybox
        command:
        - sleep
        - "3600"
        volumeMounts:
        - mountPath: /config
          name: sample-volume
      volumes:
      - name: sample-volume
        secret:
          defaultMode: 420
          secretName: sample-secret
