apiVersion: apps/v1 kind: Deployment metadata: name: fleet-controller spec: selector: matchLabels: app: fleet-controller template: metadata: labels: app: fleet-controller spec: containers: - env: - name: NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace {{- if .Values.proxy }} - name: HTTP_PROXY value: {{ .Values.proxy }} - name: HTTPS_PROXY value: {{ .Values.proxy }} - name: NO_PROXY value: {{ .Values.noProxy }} {{- end }} image: '{{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }}' name: fleet-controller imagePullPolicy: "{{ .Values.image.imagePullPolicy }}" command: - fleetcontroller {{- if .Values.debug }} - --debug - --debug-level - {{ quote .Values.debugLevel }} {{- end }} {{- if not .Values.gitops.enabled }} - --disable-gitops {{- end }} serviceAccountName: fleet-controller nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} {{- if .Values.nodeSelector }} {{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} {{- if .Values.tolerations }} {{ toYaml .Values.tolerations | indent 8 }} {{- end }}