diff options
Diffstat (limited to 'kubernetes/portal/portal-widgets-deployment.yaml')
-rw-r--r-- | kubernetes/portal/portal-widgets-deployment.yaml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/kubernetes/portal/portal-widgets-deployment.yaml b/kubernetes/portal/portal-widgets-deployment.yaml new file mode 100644 index 0000000000..e170313a1e --- /dev/null +++ b/kubernetes/portal/portal-widgets-deployment.yaml @@ -0,0 +1,57 @@ +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: portalwidgets +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": "oomk8s/readiness-check:1.0.0", + "imagePullPolicy": "Always", + "name": "portalapps-readiness" + } + ]' + spec: + containers: + - image: nexus3.onap.org:10001/openecomp/portalwms:1.1-STAGING-latest + 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/onapdemo/portal/portal-fe/webapps/etc/ECOMPWIDGETMS/application.properties |