blob: c49e6058e22e3e55ef8b6e40816e0af32f27b305 [file] [log] [blame]
vagrant1a3a3552018-03-10 23:56:32 +00001apiVersion: v1
2kind: Service
3metadata:
BorislavG1ffbd992018-04-24 07:56:27 +00004 name: {{ template "common.servicename" . }}
vagrant1a3a3552018-03-10 23:56:32 +00005 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 }}"
11spec:
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" . }}