deployment.yaml 630 B

12345678910111213141516171819202122
  1. {{- if .Values.deployment.enabled }}
  2. apiVersion: apps/v1
  3. kind: Deployment
  4. metadata:
  5. name: {{ include "promtail.fullname" . }}
  6. namespace: {{ include "promtail.namespaceName" . }}
  7. labels:
  8. {{- include "promtail.labels" . | nindent 4 }}
  9. {{- with .Values.annotations }}
  10. annotations:
  11. {{- toYaml . | nindent 4 }}
  12. {{- end }}
  13. spec:
  14. {{- if not .Values.deployment.autoscaling.enabled }}
  15. replicas: {{ .Values.deployment.replicaCount }}
  16. {{- end }}
  17. selector:
  18. matchLabels:
  19. {{- include "promtail.selectorLabels" . | nindent 6 }}
  20. template:
  21. {{- include "promtail.podTemplate" . | nindent 4 }}
  22. {{- end }}