front-end-dep.yaml 1.1 KB

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