Collectd operator utilties
[demo.git] / vnfs / DAaaS / deploy / 00-init / gloo / templates / 14-clusteringress-proxy-deployment.yaml
1 {{- if .Values.settings.integrations.knative.enabled }}
2
3 apiVersion: extensions/v1beta1
4 kind: Deployment
5 metadata:
6   labels:
7     app: gloo
8     gloo: clusteringress-proxy
9   name: clusteringress-proxy
10   namespace: {{ .Release.Namespace }}
11 spec:
12   replicas: {{ .Values.settings.integrations.knative.proxy.replicas }}
13   selector:
14     matchLabels:
15       gloo: clusteringress-proxy
16   template:
17     metadata:
18       labels:
19         gloo: clusteringress-proxy
20     spec:
21       containers:
22       - args: ["--disable-hot-restart"]
23         env:
24         - name: POD_NAMESPACE
25           valueFrom:
26             fieldRef:
27               fieldPath: metadata.namespace
28         - name: POD_NAME
29           valueFrom:
30             fieldRef:
31               fieldPath: metadata.name
32         image: {{ .Values.settings.integrations.knative.proxy.image.repository }}:{{ .Values.settings.integrations.knative.proxy.image.tag }}
33         imagePullPolicy: {{ .Values.settings.integrations.knative.proxy.image.pullPolicy }}
34         name: clusteringress-proxy
35         securityContext:
36           readOnlyRootFilesystem: true
37           allowPrivilegeEscalation: false
38           capabilities:
39             drop:
40             - ALL
41             add:
42             - NET_BIND_SERVICE
43         ports:
44         - containerPort: {{ .Values.settings.integrations.knative.proxy.httpPort }}
45           name: http
46           protocol: TCP
47         - containerPort: {{ .Values.settings.integrations.knative.proxy.httpsPort }}
48           name: https
49           protocol: TCP
50         volumeMounts:
51         - mountPath: /etc/envoy
52           name: envoy-config
53       volumes:
54       - configMap:
55           name: clusteringress-envoy-config
56         name: envoy-config
57
58 {{- end }}