diff options
author | Mandeep Khinda <Mandeep.Khinda@amdocs.com> | 2018-04-18 00:08:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-18 00:08:03 +0000 |
commit | f2c835390a34a0595f2361cb407110d55095c377 (patch) | |
tree | 1752b827f19a0abde85799f0cb86302cdc0b407e /kubernetes/aai/charts/aai-cassandra/templates/service.yaml | |
parent | ef5004bd2145fdff8d529af84e499b5109fffd93 (diff) | |
parent | 1a3a3557a080ba7ee7d1022d9a3dd0e165779ab2 (diff) |
Merge "Update from using hbase to using cassandra"
Diffstat (limited to 'kubernetes/aai/charts/aai-cassandra/templates/service.yaml')
-rw-r--r-- | kubernetes/aai/charts/aai-cassandra/templates/service.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/kubernetes/aai/charts/aai-cassandra/templates/service.yaml b/kubernetes/aai/charts/aai-cassandra/templates/service.yaml new file mode 100644 index 0000000000..a4557fe187 --- /dev/null +++ b/kubernetes/aai/charts/aai-cassandra/templates/service.yaml @@ -0,0 +1,27 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ template "common.fullname" . }} + 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" . }} |