nginx-dep.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. apiVersion: extensions/v1beta1
  2. kind: Deployment
  3. metadata:
  4. name: my-name
  5. labels:
  6. name: my-name
  7. spec:
  8. strategy:
  9. rollingUpdate:
  10. maxSurge: 1
  11. maxUnavailable: 1
  12. type: RollingUpdate
  13. template:
  14. metadata:
  15. labels:
  16. name: my-name
  17. spec:
  18. containers:
  19. - image: ipedrazas/docmock
  20. name: my-name
  21. resources:
  22. requests:
  23. cpu: "20m"
  24. memory: "55M"
  25. livenessProbe:
  26. httpGet:
  27. path: /_status/healthz
  28. port: 5000
  29. initialDelaySeconds: 90
  30. timeoutSeconds: 10
  31. readinessProbe:
  32. httpGet:
  33. path: /_status/healthz
  34. port: 5000
  35. initialDelaySeconds: 30
  36. timeoutSeconds: 10
  37. env:
  38. - name: ENVVARNAME
  39. value: ENVVARVALUE
  40. ports:
  41. - containerPort: 5000
  42. name: my-name
  43. volumeMounts:
  44. - mountPath: /data
  45. name: data
  46. volumes:
  47. - name: data
  48. emptyDir: {}
  49. restartPolicy: Always
  50. imagePullPolicy: Always