mirror of https://git.rancher.io/charts
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
|
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 }}"
|
||
|
serviceAccountName: fleet-controller
|
||
|
{{- with .Values.tolerations }}
|
||
|
tolerations:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.nodeSelector }}
|
||
|
nodeSelector:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|