blob: eecb17ceadaa0b4da6b69e4757bd53e69216452f [file] [log] [blame]
{{- if .Values.bootstrap.enabled -}}
# Now we only support NodePort mode
apiVersion: v1
kind: Service
metadata:
namespace: {{ .Release.Namespace }}
name: {{ template "shenyu.fullname" . }}-bootstrap
labels:
"app.kubernetes.io/name": '{{ template "shenyu.name" .}}-bootstrap'
"app.kubernetes.io/managed-by": "{{ .Release.Service }}"
"app.kubernetes.io/component": "shenyu-bootstrap"
"app.kubernetes.io/instance": "{{ .Release.Name }}"
spec:
selector:
"app.kubernetes.io/component": "shenyu-bootstrap"
"app.kubernetes.io/instance": "{{ .Release.Name }}"
type: NodePort
ports:
- protocol: TCP
port: 9195
targetPort: 9195
nodePort: {{ .Values.bootstrap.nodePort }}
{{- end -}}