Mike Elliott | 13fed11 | 2018-02-28 08:33:33 -0500 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
| 4 | name: {{ .Values.service.name }} |
| 5 | namespace: {{ include "common.namespace" . }} |
| 6 | labels: |
| 7 | app: {{ include "common.name" . }} |
| 8 | chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} |
| 9 | release: {{ .Release.Name }} |
| 10 | heritage: {{ .Release.Service }} |
| 11 | spec: |
| 12 | ports: |
| 13 | - port: {{ .Values.service.internalPort }} |
| 14 | name: {{ .Values.service.name }} |
| 15 | selector: |
| 16 | app: {{ include "common.name" . }} |
| 17 | release: {{ .Release.Name }} |
| 18 | clusterIP: None |
| 19 | #{{ if not .Values.disableNfsProvisioner }} |
| 20 | --- |
| 21 | kind: Service |
| 22 | apiVersion: v1 |
| 23 | metadata: |
| 24 | name: {{ .Values.nfsprovisionerPrefix }}-nfs-provisioner |
| 25 | namespace: {{ include "common.namespace" . }} |
| 26 | labels: |
| 27 | app: {{ .Values.nfsprovisionerPrefix }}-nfs-provisioner |
| 28 | spec: |
| 29 | ports: |
| 30 | - name: nfs |
| 31 | port: {{ .Values.service.nfsPort }} |
| 32 | - name: mountd |
| 33 | port: {{ .Values.service.mountdPort }} |
| 34 | - name: rpcbind |
| 35 | port: {{ .Values.service.rpcbindPort }} |
| 36 | - name: rpcbind-udp |
| 37 | port: {{ .Values.service.rpcbindUdpPort }} |
| 38 | protocol: UDP |
| 39 | selector: |
| 40 | app: {{ .Values.nfsprovisionerPrefix }}-nfs-provisioner |
| 41 | #{{ end }} |
| 42 | --- |
| 43 | # Client service for connecting to any MySQL instance for reads. |
| 44 | # Only master: sdnc-dbhost-0 accepts the write request. |
| 45 | apiVersion: v1 |
| 46 | kind: Service |
| 47 | metadata: |
| 48 | name: {{ .Values.service.name }}-read |
| 49 | namespace: {{ include "common.namespace" . }} |
| 50 | labels: |
| 51 | app: {{ include "common.name" . }} |
| 52 | spec: |
| 53 | ports: |
| 54 | - port: {{ .Values.service.internalPort }} |
| 55 | name: {{ .Values.service.name }} |
| 56 | selector: |
| 57 | app: {{ include "common.name" . }} |
| 58 | release: {{ .Release.Name }} |
| 59 | --- |
| 60 | apiVersion: v1 |
| 61 | kind: Service |
| 62 | metadata: |
| 63 | name: {{ .Values.sdnctlPrefix }}-sdnctldb01 |
| 64 | namespace: {{ include "common.namespace" . }} |
| 65 | labels: |
| 66 | app: {{ include "common.name" . }} |
| 67 | spec: |
| 68 | ports: |
| 69 | - port: {{ .Values.service.internalPort }} |
| 70 | name: {{ .Values.service.name }} |
| 71 | selector: |
| 72 | app: {{ include "common.name" . }} |
| 73 | release: {{ .Release.Name }} |
| 74 | clusterIP: None |
| 75 | --- |
| 76 | apiVersion: v1 |
| 77 | kind: Service |
| 78 | metadata: |
| 79 | name: {{ .Values.sdnctlPrefix }}-sdnctldb02 |
| 80 | namespace: {{ include "common.namespace" . }} |
| 81 | labels: |
| 82 | app: {{ include "common.name" . }} |
| 83 | spec: |
| 84 | ports: |
| 85 | - port: {{ .Values.service.internalPort }} |
| 86 | name: {{ .Values.service.name }} |
| 87 | selector: |
| 88 | app: {{ include "common.name" . }} |
| 89 | release: {{ .Release.Name }} |
| 90 | clusterIP: None |