deployment.yaml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: diagnosis
  5. namespace: dev
  6. spec:
  7. progressDeadlineSeconds: 600
  8. replicas: 1
  9. revisionHistoryLimit: 10
  10. selector:
  11. matchLabels:
  12. workload.user.cattle.io/workloadselector: deployment-dev-diagnosis
  13. strategy:
  14. rollingUpdate:
  15. maxSurge: 1
  16. maxUnavailable: 0
  17. type: RollingUpdate
  18. template:
  19. metadata:
  20. annotations:
  21. field.cattle.io/ports: '[[{"containerPort":8080,"dnsName":"diagnosis-nodeport","kind":"NodePort","name":"8080tcp01","protocol":"TCP","sourcePort":0}]]'
  22. creationTimestamp: null
  23. labels:
  24. workload.user.cattle.io/workloadselector: deployment-dev-diagnosis
  25. spec:
  26. containers:
  27. - args:
  28. - --spring.profiles.active=dev
  29. image: feick/diagnosis:${date}
  30. imagePullPolicy: IfNotPresent
  31. name: diagnosis
  32. ports:
  33. - containerPort: 8080
  34. name: 8080tcp01
  35. protocol: TCP
  36. resources: {}
  37. securityContext:
  38. allowPrivilegeEscalation: false
  39. capabilities: {}
  40. privileged: false
  41. readOnlyRootFilesystem: false
  42. runAsNonRoot: false
  43. stdin: true
  44. terminationMessagePath: /dev/termination-log
  45. terminationMessagePolicy: File
  46. tty: true
  47. dnsPolicy: ClusterFirst
  48. restartPolicy: Always
  49. schedulerName: default-scheduler
  50. securityContext: {}
  51. terminationGracePeriodSeconds: 30