session-db-dep.yaml 711 B

123456789101112131415161718192021222324252627282930313233343536
  1. ---
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: session-db
  6. labels:
  7. name: session-db
  8. spec:
  9. replicas: 1
  10. selector:
  11. matchLabels:
  12. name: session-db
  13. template:
  14. metadata:
  15. labels:
  16. name: session-db
  17. annotations:
  18. prometheus.io.scrape: "false"
  19. spec:
  20. containers:
  21. - name: session-db
  22. image: redis:alpine
  23. ports:
  24. - name: redis
  25. containerPort: 6379
  26. securityContext:
  27. capabilities:
  28. drop:
  29. - all
  30. add:
  31. - CHOWN
  32. - SETGID
  33. - SETUID
  34. readOnlyRootFilesystem: true
  35. nodeSelector:
  36. beta.kubernetes.io/os: linux