feat: add chart source

This commit is contained in:
merlin
2025-11-06 14:51:57 +08:00
commit 4587944164
80 changed files with 9621 additions and 0 deletions

34
templates/service.yaml Normal file
View File

@@ -0,0 +1,34 @@
apiVersion: v1
kind: Service
metadata:
name: {{.Release.Name}}-web
labels:
{{- include "chart.labels" . | nindent 4 }}
spec:
type: {{ .Values.web.service.type }}
ports:
- port: 80
targetPort: {{ .Values.web.service.port }}
protocol: TCP
name: web
selector:
app.kubernetes.io/component: web
{{- include "chart.selectorLabels" . | nindent 4 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{.Release.Name}}-backend
labels:
{{- include "chart.labels" . | nindent 4 }}
spec:
type: {{ .Values.backend.service.type }}
ports:
- port: 80
targetPort: {{ .Values.backend.service.port }}
protocol: TCP
name: backend
selector:
app.kubernetes.io/component: backend
{{- include "chart.selectorLabels" . | nindent 4 }}