apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "graphrag.query.fullname" . }} labels: {{- include "graphrag.query.labels" . | nindent 4 }} spec: {{- if not .Values.query.autoscaling.enabled }} replicas: {{ .Values.query.replicaCount }} {{- end }} selector: matchLabels: {{- include "graphrag.query.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.query.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} labels: date: "{{ now | unixEpoch }}" {{- include "graphrag.query.labels" . | nindent 8 }} {{- with .Values.query.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: serviceAccountName: {{ include "graphrag.serviceAccountName" . }} securityContext: {{- toYaml .Values.query.podSecurityContext | nindent 8 }} containers: - name: "query" securityContext: {{- toYaml .Values.query.securityContext | nindent 12 }} image: "{{ .Values.query.image.repository }}:{{ .Values.query.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.query.image.pullPolicy }} envFrom: - configMapRef: name: {{ include "graphrag.fullname" . }} ports: - name: http containerPort: {{ .Values.query.service.port }} protocol: TCP livenessProbe: {{- toYaml .Values.query.livenessProbe | nindent 12 }} readinessProbe: {{- toYaml .Values.query.readinessProbe | nindent 12 }} resources: {{- toYaml .Values.query.resources | nindent 12 }} volumeMounts: {{- with .Values.query.volumeMounts }} {{- toYaml . | nindent 12 }} {{- end }} {{- with .Values.query.volumes }} {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.query.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.query.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.query.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}