update deploy yaml

This commit is contained in:
2025-07-07 09:25:55 +08:00
parent 4d1eb20080
commit 9ffc73ddc7
7 changed files with 58 additions and 147 deletions

View File

@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "fastapi-k8s-app.name" -}}
{{- define "mark-word-fastapi.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
@@ -10,7 +10,7 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "fastapi-k8s-app.fullname" -}}
{{- define "mark-word-fastapi.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/*
Create chart name and version as part of the label.
*/}}
{{- define "fastapi-k8s-app.chart" -}}
{{- define "mark-word-fastapi.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "fastapi-k8s-app.labels" -}}
helm.sh/chart: {{ include "fastapi-k8s-app.chart" . }}
{{ include "fastapi-k8s-app.selectorLabels" . }}
{{- define "mark-word-fastapi.labels" -}}
helm.sh/chart: {{ include "mark-word-fastapi.chart" . }}
{{ include "mark-word-fastapi.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
@@ -45,7 +45,7 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
{{- define "fastapi-k8s-app.selectorLabels" -}}
app.kubernetes.io/name: {{ include "fastapi-k8s-app.name" . }}
{{- define "mark-word-fastapi.selectorLabels" -}}
app.kubernetes.io/name: {{ include "mark-word-fastapi.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}