yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disablePortalPortaldb }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: v1 |
| 3 | kind: Service |
| 4 | metadata: |
| 5 | name: portaldb |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | labels: |
| 8 | app: portaldb |
| 9 | spec: |
| 10 | ports: |
| 11 | - name: portaldb |
| 12 | port: 3306 |
| 13 | selector: |
| 14 | app: portaldb |
| 15 | clusterIP: None |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 16 | #{{ end }} |
| 17 | #{{ if not .Values.disablePortalPortalapps }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 18 | --- |
| 19 | apiVersion: v1 |
| 20 | kind: Service |
| 21 | metadata: |
| 22 | labels: |
| 23 | app: portalapps |
| 24 | name: portalapps |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 25 | namespace: "{{ .Values.nsPrefix }}-portal" |
HuabingZhao | 946e986 | 2017-09-12 11:00:59 +0800 | [diff] [blame] | 26 | annotations: |
| 27 | msb.onap.org/service-info: '[ |
| 28 | { |
| 29 | "serviceName": "portal", |
| 30 | "version": "v2", |
| 31 | "url": "/", |
| 32 | "protocol": "REST" |
| 33 | "port": "8989", |
| 34 | "visualRange":"1" |
| 35 | } |
| 36 | ]' |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 37 | spec: |
| 38 | ports: |
| 39 | - name: portal-1 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 40 | nodePort: {{ .Values.nodePortPrefix }}13 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 41 | port: 8006 |
| 42 | targetPort: 8005 |
| 43 | - name: portal-2 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 44 | nodePort: {{ .Values.nodePortPrefix }}14 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 45 | port: 8010 |
| 46 | targetPort: 8009 |
| 47 | - name: portal-3 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 48 | nodePort: {{ .Values.nodePortPrefix }}15 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 49 | port: 8989 |
| 50 | targetPort: 8080 |
| 51 | selector: |
| 52 | app: portalapps |
| 53 | type: NodePort |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 54 | #{{ end }} |
| 55 | #{{ if not .Values.disablePortalVncPortal }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 56 | --- |
| 57 | apiVersion: v1 |
| 58 | kind: Service |
| 59 | metadata: |
| 60 | labels: |
| 61 | app: vnc-portal |
| 62 | name: vnc-portal |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 63 | namespace: "{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 64 | spec: |
| 65 | ports: |
| 66 | - name: tcp-1 |
| 67 | port: 6080 |
| 68 | targetPort: 80 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 69 | nodePort: {{ .Values.nodePortPrefix }}11 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 70 | - name: tcp-2 |
| 71 | port: 5900 |
| 72 | targetPort: 5900 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 73 | nodePort: {{ .Values.nodePortPrefix }}12 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 74 | selector: |
| 75 | app: vnc-portal |
| 76 | type: NodePort |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 77 | #{{ end }} |
| 78 | #{{ if not .Values.disablePortalPortalwidgets }} |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 79 | --- |
| 80 | apiVersion: v1 |
| 81 | kind: Service |
| 82 | metadata: |
| 83 | name: portalwidgets |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 84 | namespace: "{{ .Values.nsPrefix }}-portal" |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 85 | labels: |
| 86 | app: portalwidgets |
| 87 | spec: |
| 88 | ports: |
| 89 | - name: portalwidgets |
| 90 | port: 8082 |
| 91 | selector: |
| 92 | app: portalwidgets |
| 93 | clusterIP: None |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 94 | #{{ end }} |