apiVersion: v1 kind: Service metadata: name: apache2 namespace: koha labels: run: {{ .Values.instance }}-koha spec: type: ClusterIP ports: - name: staff port: {{ .Values.staff.port }} protocol: TCP - name: opac port: {{ .Values.opac.port }} protocol: TCP selector: app: koha component: apache --- apiVersion: v1 kind: Service metadata: name: koha namespace: koha labels: run: {{ .Values.instance }}-plack spec: type: ClusterIP ports: - port: 5000 protocol: TCP selector: app: koha component: plack {{ if and .Values.elasticsearch.enabled (not .Values.elasticsearch.external) }} --- apiVersion: v1 kind: Service metadata: name: es namespace: koha labels: run: {{ .Values.instance }}-es spec: type: ClusterIP ports: - port: 9200 protocol: TCP selector: app: koha component: es {{ end }} {{ if not .Values.db.external }} --- apiVersion: v1 kind: Service metadata: name: db namespace: koha labels: run: {{ .Values.instance }}-db spec: type: ClusterIP ports: - port: 3306 protocol: TCP selector: app: koha component: db {{ end }} {{ if and .Values.memcached.enabled (not .Values.memcached.external) }} --- apiVersion: v1 kind: Service metadata: name: memcached namespace: koha labels: run: {{ .Values.instance }}-memcached spec: type: ClusterIP ports: - port: 11211 protocol: TCP selector: app: koha component: memcached {{ end }}