You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
758 B

3 years ago
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: test-drone
  6. spec:
  7. replicas: 1
  8. selector:
  9. matchLabels:
  10. app: test-drone
  11. strategy:
  12. type: RollingUpdate
  13. template:
  14. metadata:
  15. labels:
  16. app: test-drone
  17. spec:
  18. serviceAccountName: micro-account
  19. containers:
  20. - name: gpw
  21. image: IMAGE_PATH:IMAGE_TAG
  22. command: [
  23. "test-drone",
  24. ]
  25. volumeMounts:
  26. - name: configfile
  27. mountPath: /usr/local/bin/conf.yaml
  28. subPath: test-drone.yaml
  29. volumes:
  30. - name: configfile
  31. configMap:
  32. name: config-center
  33. items:
  34. - key: test-drone.yaml
  35. path: test-drone.yaml