summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/templates/portal-widgets-deployment.yaml
diff options
context:
space:
mode:
authorkerenj <keren.joseph@amdocs.com>2017-08-23 10:22:33 +0000
committerkerenj <keren.joseph@amdocs.com>2017-08-24 10:31:13 +0000
commitcbac010dec8633718531423ebe4e3ede0005d36f (patch)
tree76a6f0d535dbb102bd3775bb2a820ac2251d1ec4 /kubernetes/portal/templates/portal-widgets-deployment.yaml
parentfc2caa6c458c77e10e738a8e9af058d222ac9405 (diff)
portal K8S-Helm Parameterization
changed portal k8s deployment to support helm parameterization Issue-ID: OOM-52 Change-Id: I8ad9681b597a87113089f194e1a0e8a9e550bb08 Signed-off-by: kerenj <keren.joseph@amdocs.com>
Diffstat (limited to 'kubernetes/portal/templates/portal-widgets-deployment.yaml')
-rw-r--r--kubernetes/portal/templates/portal-widgets-deployment.yaml59
1 files changed, 59 insertions, 0 deletions
diff --git a/kubernetes/portal/templates/portal-widgets-deployment.yaml b/kubernetes/portal/templates/portal-widgets-deployment.yaml
new file mode 100644
index 0000000000..0aea75648c
--- /dev/null
+++ b/kubernetes/portal/templates/portal-widgets-deployment.yaml
@@ -0,0 +1,59 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: portalwidgets
+ namespace: {{ .Values.NS }}
+spec:
+ selector:
+ matchLabels:
+ app: portalwidgets
+ template:
+ metadata:
+ labels:
+ app: portalwidgets
+ name: portalwidgets
+ annotations:
+ pod.beta.kubernetes.io/init-containers: '[
+ {
+ "args": [
+ "--container-name",
+ "portaldb"
+ ],
+ "command": [
+ "/root/ready.py"
+ ],
+ "env": [
+ {
+ "name": "NAMESPACE",
+ "valueFrom": {
+ "fieldRef": {
+ "apiVersion": "v1",
+ "fieldPath": "metadata.namespace"
+ }
+ }
+ }
+ ],
+ "image": "{{ .Values.image.readiness }}",
+ "imagePullPolicy": "{{ .Values.pullPolicy }}",
+ "name": "portalapps-readiness"
+ }
+ ]'
+ spec:
+ containers:
+ - image: {{ .Values.image.portalwms }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: portalwidgets
+ volumeMounts:
+ - mountPath: /application.properties
+ name: portalwidgets-application-properties
+ ports:
+ - containerPort: 8082
+ readinessProbe:
+ tcpSocket:
+ port: 8082
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: portalwidgets-application-properties
+ hostPath:
+ path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPWIDGETMS/application.properties