--- apiVersion: apps/v1 kind: Deployment metadata: name: test-drone spec: replicas: 1 selector: matchLabels: app: test-drone strategy: type: RollingUpdate template: metadata: labels: app: test-drone spec: serviceAccountName: micro-account containers: - name: gpw image: IMAGE_PATH:IMAGE_TAG command: [ "test-drone", ] volumeMounts: - name: configfile mountPath: /usr/local/bin/conf.yaml subPath: test-drone.yaml volumes: - name: configfile configMap: name: config-center items: - key: test-drone.yaml path: test-drone.yaml