Files
k8s-cluster/manifest/sonarqube/templates/deployment.yaml
2026-04-27 21:52:01 +07:00

17 lines
559 B
YAML

{{- if eq .Values.deploymentType "Deployment" }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "sonarqube.fullname" . }}
labels: {{- include "sonarqube.workloadLabels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
selector:
matchLabels: {{- include "sonarqube.selectorLabels" . | nindent 6 }}
{{- with .Values.deploymentStrategy }}
strategy: {{- toYaml . | nindent 4 }}
{{- end }}
template: {{- include "sonarqube.pod" . | nindent 4 }}
{{- end }}