deployment-prod.yaml 1.4 KB

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