deployment.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: ssl-exporter
  5. spec:
  6. selector:
  7. matchLabels:
  8. app.kubernetes.io/name: ssl-exporter
  9. app.kubernetes.io/part-of: ssl-exporter
  10. template:
  11. metadata:
  12. labels:
  13. app.kubernetes.io/name: ssl-exporter
  14. app.kubernetes.io/part-of: ssl-exporter
  15. spec:
  16. containers:
  17. - image: ribbybibby/ssl-exporter:2.4.2
  18. args:
  19. - --config.file=/config/config.yaml
  20. name: ssl-exporter
  21. ports:
  22. - containerPort: 9219
  23. name: http
  24. protocol: TCP
  25. resources:
  26. limits:
  27. cpu: 100m
  28. memory: 64Mi
  29. requests:
  30. cpu: 100m
  31. memory: 64Mi
  32. securityContext:
  33. capabilities:
  34. drop:
  35. - ALL
  36. readOnlyRootFilesystem: true
  37. allowPrivilegeEscalation: false
  38. runAsNonRoot: true
  39. runAsUser: 9219
  40. runAsGroup: 9219
  41. volumeMounts:
  42. - name: config
  43. mountPath: /config
  44. serviceAccountName: ssl-exporter
  45. volumes:
  46. - name: config
  47. configMap:
  48. name: ssl-exporter