25 lines
838 B
YAML
25 lines
838 B
YAML
{{- if .Values.apiportal.enabled -}}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ include "gateway.fullname" . }}-apiportal
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels:
|
|
{{- include "gateway.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: apiportal
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: {{ .Values.apiportal.service.ports.http.port }}
|
|
targetPort: {{ .Values.apiportal.service.ports.http.port }}
|
|
protocol: TCP
|
|
name: {{ include "gateway.fullname" . }}-apiportal-http
|
|
- port: {{ .Values.apiportal.service.ports.https.port }}
|
|
targetPort: {{ .Values.apiportal.service.ports.https.port }}
|
|
protocol: TCP
|
|
name: {{ include "gateway.fullname" . }}-apiportal-https
|
|
selector:
|
|
{{- include "gateway.selectorLabels" . | nindent 4 }}
|
|
app.kubernetes.io/component: apiportal
|
|
{{- end }}
|