payment-dep.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: payment
  6. labels:
  7. name: payment
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. name: payment
  13. template:
  14. metadata:
  15. labels:
  16. name: payment
  17. spec:
  18. containers:
  19. - name: payment
  20. image: weaveworksdemos/payment:0.4.3
  21. resources:
  22. limits:
  23. cpu: 100m
  24. memory: 100Mi
  25. requests:
  26. cpu: 99m
  27. memory: 100Mi
  28. ports:
  29. - containerPort: 80
  30. securityContext:
  31. runAsNonRoot: true
  32. runAsUser: 10001
  33. capabilities:
  34. drop:
  35. - all
  36. add:
  37. - NET_BIND_SERVICE
  38. readOnlyRootFilesystem: true
  39. livenessProbe:
  40. httpGet:
  41. path: /health
  42. port: 80
  43. initialDelaySeconds: 300
  44. periodSeconds: 3
  45. readinessProbe:
  46. httpGet:
  47. path: /health
  48. port: 80
  49. initialDelaySeconds: 180
  50. periodSeconds: 3
  51. nodeSelector:
  52. beta.kubernetes.io/os: linux