summaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/00-init/gloo/templates/3-gloo-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/3-gloo-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/3-gloo-deployment.yaml')
-rwxr-xr-xvnfs/DAaaS/00-init/gloo/templates/3-gloo-deployment.yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/vnfs/DAaaS/00-init/gloo/templates/3-gloo-deployment.yaml b/vnfs/DAaaS/00-init/gloo/templates/3-gloo-deployment.yaml
new file mode 100755
index 00000000..b3d8423f
--- /dev/null
+++ b/vnfs/DAaaS/00-init/gloo/templates/3-gloo-deployment.yaml
@@ -0,0 +1,57 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ labels:
+ app: gloo
+ gloo: gloo
+ name: gloo
+ namespace: {{ .Release.Namespace }}
+spec:
+ replicas: {{ .Values.gloo.deployment.replicas }}
+ selector:
+ matchLabels:
+ gloo: gloo
+ template:
+ metadata:
+ labels:
+ gloo: gloo
+ {{- if .Values.gloo.deployment.stats }}
+ annotations:
+ prometheus.io/path: /metrics
+ prometheus.io/port: "9091"
+ prometheus.io/scrape: "true"
+ {{- end}}
+ spec:
+ containers:
+ - image: "{{ .Values.gloo.deployment.image.repository }}:{{ .Values.gloo.deployment.image.tag }}"
+ imagePullPolicy: {{ .Values.gloo.deployment.image.pullPolicy }}
+ name: gloo
+ resources:
+ requests:
+ cpu: 1
+ memory: 256Mi
+ securityContext:
+ readOnlyRootFilesystem: true
+ allowPrivilegeEscalation: false
+ runAsNonRoot: true
+ runAsUser: 10101
+ capabilities:
+ drop:
+ - ALL
+ ports:
+ - containerPort: {{ .Values.gloo.deployment.xdsPort }}
+ name: grpc
+ protocol: TCP
+ env:
+ - name: POD_NAMESPACE
+ valueFrom:
+ fieldRef:
+ fieldPath: metadata.namespace
+ {{- if .Values.gloo.deployment.stats }}
+ - name: START_STATS_SERVER
+ value: "true"
+ {{- end}}
+ {{- if .Values.gloo.deployment.image.pullSecret }}
+ imagePullSecrets:
+ - name: {{ .Values.gloo.deployment.image.pullSecret }}{{end}}
+