yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableSdncSdncDbhost }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: v1 |
| 3 | kind: Service |
| 4 | metadata: |
| 5 | name: dbhost |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | labels: |
| 8 | app: sdnc-dbhost |
| 9 | spec: |
| 10 | ports: |
| 11 | - port: 3306 |
| 12 | selector: |
| 13 | app: sdnc-dbhost |
| 14 | clusterIP: None |
| 15 | --- |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 16 | # Client service for connecting to any MySQL instance for reads. |
| 17 | # Only master: sdnc-dbhost-0 accepts the write request. |
| 18 | apiVersion: v1 |
| 19 | kind: Service |
| 20 | metadata: |
| 21 | name: dbhost-read |
| 22 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
| 23 | labels: |
| 24 | app: sdnc-dbhost |
| 25 | spec: |
| 26 | ports: |
| 27 | - name: sdnc-dbhost |
| 28 | port: 3306 |
| 29 | selector: |
| 30 | app: sdnc-dbhost |
| 31 | --- |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 32 | apiVersion: v1 |
| 33 | kind: Service |
| 34 | metadata: |
| 35 | name: sdnctldb01 |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 36 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 37 | labels: |
| 38 | app: sdnc-dbhost |
| 39 | spec: |
| 40 | ports: |
| 41 | - port: 3306 |
| 42 | selector: |
| 43 | app: sdnc-dbhost |
| 44 | clusterIP: None |
| 45 | --- |
| 46 | apiVersion: v1 |
| 47 | kind: Service |
| 48 | metadata: |
| 49 | name: sdnctldb02 |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 50 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 51 | labels: |
| 52 | app: sdnc-dbhost |
| 53 | spec: |
| 54 | ports: |
| 55 | - port: 3306 |
| 56 | selector: |
| 57 | app: sdnc-dbhost |
| 58 | clusterIP: None |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 59 | #{{ end }} |
| 60 | #{{ if not .Values.disableSdncSdnc }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 61 | --- |
| 62 | apiVersion: v1 |
| 63 | kind: Service |
| 64 | metadata: |
| 65 | name: sdnc-dgbuilder |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 66 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 67 | labels: |
| 68 | app: sdnc-dgbuilder |
| 69 | spec: |
| 70 | ports: |
| 71 | - name: "sdnc-dgbuilder-port" |
| 72 | port: 3000 |
| 73 | targetPort: 3100 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 74 | nodePort: {{ .Values.nodePortPrefix }}03 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 75 | type: NodePort |
| 76 | selector: |
| 77 | app: sdnc-dgbuilder |
| 78 | --- |
| 79 | apiVersion: v1 |
| 80 | kind: Service |
| 81 | metadata: |
| 82 | name: sdnhost |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 83 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 84 | labels: |
| 85 | app: sdnc |
HuabingZhao | 9e28393 | 2017-09-12 23:33:43 -0400 | [diff] [blame] | 86 | annotations: |
| 87 | msb.onap.org/service-info: '[ |
| 88 | { |
| 89 | "serviceName": "sdnc", |
| 90 | "version": "v1", |
| 91 | "url": "/", |
| 92 | "protocol": "REST", |
| 93 | "port": "8282", |
| 94 | "visualRange":"1", |
| 95 | "path": "/" |
| 96 | } |
| 97 | ]' |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 98 | spec: |
| 99 | ports: |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 100 | - name: "sdnc-port-8181" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 101 | port: 8282 |
| 102 | targetPort: 8181 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 103 | nodePort: {{ .Values.nodePortPrefix }}02 |
Mandeep Khinda | edc5941 | 2017-10-05 12:18:14 +0000 | [diff] [blame] | 104 | - name: "sdnc-port-8101" |
| 105 | port: 8201 |
| 106 | targetPort: 8101 |
Sylvain Desbureaux | 5d326f2 | 2017-11-09 16:49:40 +0100 | [diff] [blame] | 107 | nodePort: {{ .Values.nodePortPrefix }}08 |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 108 | - name: "sdnc-jolokia-port-8080" |
| 109 | port: 8280 |
| 110 | targetPort: 8080 |
| 111 | nodePort: {{ .Values.nodePortPrefix }}46 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 112 | type: NodePort |
| 113 | selector: |
| 114 | app: sdnc |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 115 | --- |
| 116 | kind: Service |
| 117 | apiVersion: v1 |
| 118 | metadata: |
| 119 | name: nfs-provisioner |
| 120 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
| 121 | labels: |
| 122 | app: nfs-provisioner |
| 123 | spec: |
| 124 | ports: |
| 125 | - name: nfs |
| 126 | port: 2049 |
| 127 | - name: mountd |
| 128 | port: 20048 |
| 129 | - name: rpcbind |
| 130 | port: 111 |
| 131 | - name: rpcbind-udp |
| 132 | port: 111 |
| 133 | protocol: UDP |
| 134 | selector: |
| 135 | app: nfs-provisioner |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 136 | #{{ end }} |
| 137 | #{{ if not .Values.disableSdncSdncPortal }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 138 | --- |
| 139 | apiVersion: v1 |
| 140 | kind: Service |
| 141 | metadata: |
| 142 | name: sdnc-portal |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 143 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 144 | labels: |
| 145 | app: sdnc-portal |
HuabingZhao | 9e28393 | 2017-09-12 23:33:43 -0400 | [diff] [blame] | 146 | annotations: |
| 147 | msb.onap.org/service-info: '[ |
| 148 | { |
| 149 | "serviceName": "sdnc-portal", |
| 150 | "version": "v1", |
| 151 | "url": "/", |
| 152 | "protocol": "UI", |
| 153 | "port": "8843", |
| 154 | "visualRange":"0|1" |
| 155 | } |
| 156 | ]' |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 157 | spec: |
| 158 | ports: |
| 159 | - name: "sdnc-portal-port" |
| 160 | port: 8843 |
kerenj | 78eff21 | 2017-08-29 09:56:36 +0000 | [diff] [blame] | 161 | nodePort: {{ .Values.nodePortPrefix }}01 |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 162 | type: NodePort |
| 163 | selector: |
| 164 | app: sdnc-portal |
Sylvain Desbureaux | 5d326f2 | 2017-11-09 16:49:40 +0100 | [diff] [blame] | 165 | #{{ end }} |
Hao Kuang | 27af4a3 | 2017-12-15 20:38:03 +0000 | [diff] [blame] | 166 | #{{ if .Values.enableODLCluster }} |
| 167 | --- |
| 168 | apiVersion: v1 |
| 169 | kind: Service |
| 170 | metadata: |
| 171 | name: sdnhost-cluster |
| 172 | namespace: "{{ .Values.nsPrefix }}-sdnc" |
| 173 | labels: |
| 174 | app: sdnc |
| 175 | annotations: |
| 176 | service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" |
| 177 | spec: |
| 178 | ports: |
| 179 | - name: "sdnc-cluster-port" |
| 180 | port: 2550 |
| 181 | clusterIP: None |
| 182 | selector: |
| 183 | app: sdnc |
| 184 | sessionAffinity: None |
| 185 | type: ClusterIP |
| 186 | #{{ end }} |