aboutsummaryrefslogtreecommitdiff
path: root/grumpy/cgit/templates/service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'grumpy/cgit/templates/service.yaml')
-rw-r--r--grumpy/cgit/templates/service.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/grumpy/cgit/templates/service.yaml b/grumpy/cgit/templates/service.yaml
new file mode 100644
index 0000000..cb9361b
--- /dev/null
+++ b/grumpy/cgit/templates/service.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "cgit.fullname" . }}
+ labels:
+{{ include "cgit.labels" . | indent 4 }}
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - port: {{ .Values.service.port }}
+ targetPort: http
+ protocol: TCP
+ name: http
+ selector:
+ app.kubernetes.io/name: {{ include "cgit.name" . }}
+ app.kubernetes.io/instance: {{ .Release.Name }}