diff options
author | vagrant <vagrant@aai.onap.org> | 2018-03-10 23:56:32 +0000 |
---|---|---|
committer | Mandeep Khinda <mandeep.khinda@amdocs.com> | 2018-04-18 00:05:32 +0000 |
commit | 62ddc7d0fed0409351201012caba0b88386a7bb1 (patch) | |
tree | 5340b96973d3d50023a85465401c6c3ecb9b9ddc /charts/aai-cassandra/templates/service.yaml | |
parent | f2b4966be5e2076fa975e53145ff637dfd6cbbcd (diff) |
Update from using hbase to using cassandra
Also update resources and traversal to remove chef
MK: Addressing the -1 statefulset comment
Issue-ID: AAI-33
Change-Id: Ieee819703764fdda727f17d4e9be43084886828c
Signed-off-by: Kajur, Harish vk250x@att.com <vk250x@att.com>
Signed-off-by: Mandeep Khinda <mandeep.khinda@amdocs.com>
Diffstat (limited to 'charts/aai-cassandra/templates/service.yaml')
-rw-r--r-- | charts/aai-cassandra/templates/service.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/charts/aai-cassandra/templates/service.yaml b/charts/aai-cassandra/templates/service.yaml new file mode 100644 index 0000000..a4557fe --- /dev/null +++ b/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" . }} |