deployment.yaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: frontend
  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-frontend
  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":80,"dnsName":"frontend-nodeport","kind":"NodePort","name":"80tcp01","protocol":"TCP","sourcePort":0}]]'
  22. creationTimestamp: null
  23. labels:
  24. workload.user.cattle.io/workloadselector: deployment-dev-frontend
  25. spec:
  26. containers:
  27. - image: feick/diagnosis-frontend:${date}
  28. imagePullPolicy: IfNotPresent
  29. name: frontend
  30. ports:
  31. - containerPort: 80
  32. name: 80tcp01
  33. protocol: TCP
  34. resources: {}
  35. securityContext:
  36. allowPrivilegeEscalation: false
  37. capabilities: {}
  38. privileged: false
  39. readOnlyRootFilesystem: false
  40. runAsNonRoot: false
  41. stdin: true
  42. terminationMessagePath: /dev/termination-log
  43. terminationMessagePolicy: File
  44. tty: true
  45. dnsPolicy: ClusterFirst
  46. restartPolicy: Always
  47. schedulerName: default-scheduler
  48. securityContext: {}
  49. terminationGracePeriodSeconds: 30