vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 1 | apiVersion: v1 |
| 2 | kind: Service |
| 3 | metadata: |
BorislavG | 1ffbd99 | 2018-04-24 07:56:27 +0000 | [diff] [blame] | 4 | name: {{ template "common.servicename" . }} |
vagrant | 1a3a355 | 2018-03-10 23:56:32 +0000 | [diff] [blame] | 5 | namespace: {{ include "common.namespace" . }} |
| 6 | labels: |
| 7 | app: {{ template "common.fullname" . }} |
| 8 | chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" |
| 9 | release: "{{ .Release.Name }}" |
| 10 | heritage: "{{ .Release.Service }}" |
| 11 | spec: |
| 12 | clusterIP: None |
| 13 | type: {{ .Values.service.type }} |
| 14 | ports: |
| 15 | - name: cql |
| 16 | port: {{ default 9042 .Values.config.ports.cql }} |
| 17 | targetPort: {{ default 9042 .Values.config.ports.cql }} |
| 18 | - name: thrift |
| 19 | port: {{ default 9160 .Values.config.ports.thrift }} |
| 20 | targetPort: {{ default 9160 .Values.config.ports.thrift }} |
| 21 | {{- if .Values.config.ports.agent }} |
| 22 | - name: agent |
| 23 | port: {{ .Values.config.ports.agent }} |
| 24 | targetPort: {{ .Values.config.ports.agent }} |
| 25 | {{- end }} |
| 26 | selector: |
| 27 | app: {{ template "common.fullname" . }} |