deployment-docs.yaml 664 B

12345678910111213141516171819202122232425262728293031
  1. {{- if .Values.docs.enabled -}}
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: docs
  6. labels:
  7. deployment: docs
  8. spec:
  9. selector:
  10. matchLabels:
  11. pod: docs
  12. replicas: 1
  13. template:
  14. metadata:
  15. labels:
  16. pod: docs
  17. spec:
  18. containers:
  19. - name: docs
  20. image: {{ .Values.image.registry }}/documentation:{{ .Values.image.tag }}
  21. imagePullPolicy: {{ .Values.image.pullPolicy }}
  22. ports:
  23. - containerPort: 80
  24. readinessProbe:
  25. httpGet:
  26. path: /
  27. port: 80
  28. initialDelaySeconds: 3
  29. periodSeconds: 60
  30. failureThreshold: 30
  31. {{- end -}}