swarm
This commit is contained in:
18
helm/xxl-job-admin/templates/service.yaml
Normal file
18
helm/xxl-job-admin/templates/service.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
{{- if .Values.service.enabled -}}
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: {{ include "xxl-job-admin.fullname" . }}
|
||||
labels:
|
||||
{{- include "xxl-job-admin.labels" . | nindent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.service.content.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.content.port }}
|
||||
targetPort: {{ .Values.service.content.targetPort }}
|
||||
nodePort: {{ .Values.service.content.nodePort }}
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
{{- include "xxl-job-admin.selectorLabels" . | nindent 4 }}
|
||||
{{- end -}}
|
Reference in New Issue
Block a user