rancher-charts/charts/rio/templates/deployment.yaml

50 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: rio-controller
namespace: {{ .Release.Namespace }}
spec:
selector:
matchLabels:
rio-controller: "true"
template:
metadata:
labels:
rio-controller: "true"
spec:
containers:
- args:
- rio-controller
{{- if .Values.debug }}
- --debug
{{- end }}
- --features
- ""
{{- if .Values.gatewayServiceName }}
- --gateway-service-name
- {{ .Values.gatewayServiceName }}
{{- end }}
{{- if .Values.gatewayServiceNamespace }}
- --gateway-service-namespace
- {{ .Values.gatewayServiceNamespace }}
{{- end }}
env:
- name: RUN_API_VALIDATOR
value: "TRUE"
- name: RIO_NAMESPACE
value: {{ .Release.Namespace }}
image: "{{ .Values.image }}:{{ .Values.tag }}"
imagePullPolicy: Always
name: rio-controller
volumeMounts:
- mountPath: /var/run/rio/ssl
name: secret-api-validator
readOnly: true
serviceAccountName: rio-controller-serviceaccount
volumes:
- name: secret-api-validator
secret:
defaultMode: 420
optional: true
secretName: rio-api-validator