Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: portalapps |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 5 | namespace: {{ .Values.NS }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 6 | spec: |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: portalapps |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: portalapps |
| 14 | name: portalapps |
| 15 | annotations: |
| 16 | pod.beta.kubernetes.io/init-containers: '[ |
| 17 | { |
| 18 | "args": [ |
| 19 | "--container-name", |
| 20 | "portaldb" |
| 21 | ], |
| 22 | "command": [ |
| 23 | "/root/ready.py" |
| 24 | ], |
| 25 | "env": [ |
| 26 | { |
| 27 | "name": "NAMESPACE", |
| 28 | "valueFrom": { |
| 29 | "fieldRef": { |
| 30 | "apiVersion": "v1", |
| 31 | "fieldPath": "metadata.namespace" |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | ], |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 36 | "image": "{{ .Values.image.readiness }}", |
| 37 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 38 | "name": "portalapps-readiness" |
| 39 | }, |
| 40 | { |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 41 | "command": ["/bin/bash", "-c", "if [ ! -e /portal_root/boot.txt ]; then mysql -u root -ppassword -h portaldb < /portal-mysql/oom_updates.sql; fi"], |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 42 | "volumeMounts": [ |
| 43 | { |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 44 | "mountPath": "/portal-mysql/oom_updates.sql", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 45 | "name": "portal-mariadb-onboarding-sql" |
| 46 | }, |
| 47 | { |
| 48 | "mountPath": "/portal_root/", |
| 49 | "name": "portal-root" |
| 50 | } |
| 51 | ], |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 52 | "image": "{{ .Values.image.mariadbClient }}", |
| 53 | "imagePullPolicy": "{{ .Values.pullPolicy }}", |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 54 | "name": "provision-portaldb-users" |
| 55 | } |
| 56 | ]' |
| 57 | spec: |
| 58 | containers: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 59 | - image: {{ .Values.image.portalapps }} |
| 60 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | lifecycle: |
| 62 | postStart: |
| 63 | exec: |
| 64 | command: ["/bin/sh", "-c", "echo yes > /portal_root/boot.txt"] |
| 65 | name: portalapps |
| 66 | volumeMounts: |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 67 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPPORTAL/WEB-INF/fusion/conf/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 68 | name: portal-fusion-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 69 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPPORTAL/WEB-INF/classes/openid-connect.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 70 | name: portal-openid-connect-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 71 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPPORTAL/WEB-INF/conf/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 72 | name: portal-system-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 73 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPPORTAL/WEB-INF/classes/portal.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 74 | name: portal-portal-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 75 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPDBCAPP/WEB-INF/fusion/conf/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 76 | name: dbcapp-fusion-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 77 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPDBCAPP/WEB-INF/conf/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 78 | name: dbcapp-system-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 79 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPDBCAPP/WEB-INF/classes/portal.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 80 | name: dbcapp-portal-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 81 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPDBCAPP/WEB-INF/dbcapp/dbcapp.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 82 | name: dbcapp-dbcapp-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 83 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPSDKAPP/WEB-INF/conf/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 84 | name: sdkapp-system-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 85 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPSDKAPP/WEB-INF/classes/portal.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 86 | name: sdkapp-portal-properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 87 | - mountPath: /opt/apache-tomcat-8.0.37/webapps/ECOMPSDKAPP/WEB-INF/fusion/conf/fusion.properties |
| 88 | name: sdkapp-fusion-properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 89 | - mountPath: /portal_root/ |
| 90 | name: portal-root |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 91 | - mountPath: /opt/apache-tomcat-8.0.37/logs |
| 92 | name: portal-logs |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 93 | ports: |
| 94 | - containerPort: 8005 |
| 95 | - containerPort: 8009 |
| 96 | - containerPort: 8080 |
| 97 | readinessProbe: |
| 98 | tcpSocket: |
| 99 | port: 8080 |
| 100 | initialDelaySeconds: 5 |
| 101 | periodSeconds: 10 |
| 102 | volumes: |
| 103 | - name: portal-fusion-properties |
| 104 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 105 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 106 | - name: portal-openid-connect-properties |
| 107 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 108 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/openid-connect.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 109 | - name: portal-system-properties |
| 110 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 111 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 112 | - name: portal-portal-properties |
| 113 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 114 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPPORTALAPP/portal.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 115 | - name: dbcapp-fusion-properties |
| 116 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 117 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPDBCAPP/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 118 | - name: dbcapp-system-properties |
| 119 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 120 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPDBCAPP/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 121 | - name: dbcapp-portal-properties |
| 122 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 123 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPDBCAPP/portal.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 124 | - name: dbcapp-dbcapp-properties |
| 125 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 126 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPDBCAPP/dbcapp.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 127 | - name: sdkapp-system-properties |
| 128 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 129 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPSDKAPP/system.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 130 | - name: sdkapp-portal-properties |
| 131 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 132 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPSDKAPP/portal.properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 133 | - name: sdkapp-fusion-properties |
| 134 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 135 | path: /dockerdata-nfs/onap/portal/portal-fe/webapps/etc/ECOMPSDKAPP/fusion.properties |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 136 | - name: portal-mariadb-onboarding-sql |
| 137 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 138 | path: /dockerdata-nfs/onap/portal/mariadb/oom_updates.sql |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 139 | - name: portal-root |
| 140 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 141 | path: /dockerdata-nfs/onap/portal |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 142 | - name: portal-logs |
| 143 | hostPath: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 144 | path: /dockerdata-nfs/onap/portal/logs |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 145 | imagePullSecrets: |
| 146 | - name: onap-docker-registry-key |