forked from openfaas/faas-netes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress-operator-dep.yaml
41 lines (41 loc) · 1.21 KB
/
ingress-operator-dep.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{{- $functionNs := default .Release.Namespace .Values.functionNamespace }}
{{- if .Values.ingressOperator.create }}
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: {{ template "openfaas.name" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version }}
component: ingress-operator
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
name: ingress-operator
namespace: {{ .Release.Namespace | quote }}
spec:
replicas: {{ .Values.ingressOperator.replicas }}
selector:
matchLabels:
app: ingress-operator
template:
metadata:
annotations:
prometheus.io/scrape: "true"
labels:
app: ingress-operator
spec:
serviceAccountName: ingress-operator
containers:
- name: operator
resources:
{{- .Values.ingressOperator.resources | toYaml | nindent 10 }}
image: {{ .Values.ingressOperator.image }}
imagePullPolicy: {{ .Values.openfaasImagePullPolicy }}
command:
- ./ingress-operator
- -logtostderr
env:
- name: function_namespace
value: {{ $functionNs | quote }}
- name: ingress_namespace
value: {{ .Release.Namespace | quote }}
{{- end }}