add kubernetes deployment files

This commit is contained in:
2025-07-06 18:56:50 +08:00
parent b4ec264858
commit 89aedbcdad
11 changed files with 635 additions and 11 deletions

View File

@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "fastapi-k8s-app.fullname" . }}
labels:
{{- include "fastapi-k8s-app.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "fastapi-k8s-app.selectorLabels" . | nindent 4 }}