compatible with two clusters
This commit is contained in:
@ -18,7 +18,7 @@ kind: Service
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-svc
|
||||
spec:
|
||||
type: {{ .Values.svc.type | default "NodePort" }}
|
||||
type: {{ .Values.svc.type | default "LoadBalancer" }}
|
||||
{{- if gt (int .Values.workerSize) 1 }}
|
||||
selector:
|
||||
leaderworkerset.sigs.k8s.io/name: {{ .Release.Name }}
|
||||
@ -29,7 +29,7 @@ spec:
|
||||
{{- end }}
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: {{ .Values.svc.port | default 8080 }}
|
||||
targetPort: {{ .Values.svc.port | default 8080 }}
|
||||
nodePort: {{ .Values.svc.nodePort | default 30080 }}
|
||||
port: {{ .Values.svc.port | default 80 }}
|
||||
targetPort: {{ .Values.svc.targetPort | default 8080 }}
|
||||
# nodePort: {{ .Values.svc.nodePort | default 30080 }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user