This patch introduces a new structure of the it/dep repo.
[it/dep.git] / infra / 10-Nexus / helm / templates / service.yaml
diff --git a/infra/10-Nexus/helm/templates/service.yaml b/infra/10-Nexus/helm/templates/service.yaml
new file mode 100644 (file)
index 0000000..cc9b518
--- /dev/null
@@ -0,0 +1,23 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: {{ include "nexus.fullname" . }}
+  labels:
+    app: {{ template "nexus.name" . }}
+    chart: {{ template "nexus.chart" . }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
+spec:
+  type: ClusterIP
+  ports:
+    - port: {{ .Values.service.port.nexus }}
+      targetPort: nexus
+      protocol: TCP
+      name: nexus
+    - port: {{ .Values.service.port.docker }}
+      targetPort: docker
+      protocol: TCP
+      name: docker
+  selector:
+    app: {{ template "nexus.name" . }}
+    release: {{ .Release.Name }}