aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/aai/charts/aai-cassandra/templates/service.yaml
blob: c49e6058e22e3e55ef8b6e40816e0af32f27b305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
apiVersion: v1
kind: Service
metadata:
  name: {{ template "common.servicename" . }}
  namespace: {{ include "common.namespace" . }}
  labels:
    app: {{ template "common.fullname" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
spec:
  clusterIP: None
  type: {{ .Values.service.type }}
  ports:
  - name: cql
    port: {{ default 9042 .Values.config.ports.cql }}
    targetPort: {{ default 9042 .Values.config.ports.cql }}
  - name: thrift
    port: {{ default 9160 .Values.config.ports.thrift }}
    targetPort: {{ default 9160 .Values.config.ports.thrift }}
  {{- if .Values.config.ports.agent }}
  - name: agent
    port: {{ .Values.config.ports.agent }}
    targetPort: {{ .Values.config.ports.agent }}
  {{- end }}
  selector:
    app: {{ template "common.fullname" . }}