aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/00-init/gloo/templates/10-ingress-deployment.yaml
diff options
context:
space:
mode:
authorPramod <pramod.raghavendra.jayathirth@intel.com>2019-04-29 17:36:20 -0700
committerPramod <pramod.raghavendra.jayathirth@intel.com>2019-04-29 17:42:48 -0700
commit61f4b3a192df2aed9a98dbd1d65b46c165666de1 (patch)
treed2809d42c3c03207c70ade9919d5a56a396e9a7a /vnfs/DAaaS/00-init/gloo/templates/10-ingress-deployment.yaml
parented44393c10548b712a4c9c55f5d51c9e01554c2b (diff)
Adding helm charts for gloo ingress controller
Helm charts for gloo with support for Kubernetes ingress Issue-ID: ONAPARC-491 Change-Id: Ia6342f79edef19120da4c28f376a3399991a8310 Signed-off-by: Pramod <pramod.raghavendra.jayathirth@intel.com>
Diffstat (limited to 'vnfs/DAaaS/00-init/gloo/templates/10-ingress-deployment.yaml')
-rwxr-xr-xvnfs/DAaaS/00-init/gloo/templates/10-ingress-deployment.yaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/vnfs/DAaaS/00-init/gloo/templates/10-ingress-deployment.yaml b/vnfs/DAaaS/00-init/gloo/templates/10-ingress-deployment.yaml
new file mode 100755
index 00000000..7314b4e3
--- /dev/null
+++ b/vnfs/DAaaS/00-init/gloo/templates/10-ingress-deployment.yaml
@@ -0,0 +1,40 @@
+{{- if or (.Values.ingress.enabled) (.Values.settings.integrations.knative.enabled) }}
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: gloo
+ gloo: ingress
+ name: ingress
+ namespace: {{ .Release.Namespace }}
+spec:
+ replicas: {{ .Values.ingress.deployment.replicas }}
+ selector:
+ matchLabels:
+ gloo: ingress
+ template:
+ metadata:
+ labels:
+ gloo: ingress
+ spec:
+ containers:
+ - image: "{{ .Values.ingress.deployment.image.repository }}:{{ .Values.ingress.deployment.image.tag }}"
+ imagePullPolicy: {{ .Values.ingress.deployment.image.pullPolicy }}
+ name: ingress
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+{{- if .Values.settings.integrations.knative.enabled }}
+ - name: "ENABLE_KNATIVE_INGRESS"
+ value: "true"
+{{- end }}
+
+{{- if not (.Values.ingress.enabled) }}
+ - name: "DISABLE_KUBE_INGRESS"
+ value: "true"
+{{- end }}
+
+
+{{- end }} \ No newline at end of file