diff --git a/templates/service.yaml b/templates/service.yaml index cc9c5d8..6cdc67f 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -1,7 +1,11 @@ apiVersion: v1 kind: Service metadata: +{{- if .Values.service.name }} + name: {{ .Values.service.name }} +{{- else }} name: {{ template "docker-registry.fullname" . }} +{{- end }} namespace: {{ .Values.namespace | default .Release.Namespace }} labels: app: {{ template "docker-registry.name" . }} diff --git a/values.yaml b/values.yaml index 7f9c558..0e49010 100644 --- a/values.yaml +++ b/values.yaml @@ -24,7 +24,7 @@ image: # imagePullSecrets: # - name: docker service: - name: registry + name: "" type: ClusterIP # sessionAffinity: None # sessionAffinityConfig: {}