* add admin and worker to helm charts * workers are stateless, admin is stateful * removed the duplicate admin-deployment.yaml * address comments * address comments * purge * Update README.md * Update k8s/charts/seaweedfs/templates/admin/admin-ingress.yaml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * address comments * address comments * supports Kubernetes versions from v1.14 to v1.30+, ensuring broad compatibility * add probe for workers * address comments * add a todo * chore: trigger CI * use port name for probes in admin statefulset * fix: remove trailing blank line in values.yaml * address code review feedback - Quote admin credentials in shell command to handle special characters - Remove unimplemented capabilities (remote, replication) from worker defaults - Add security note about admin password character restrictions --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
{{- if .Values.admin.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "seaweedfs.name" . }}-admin
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
|
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
|
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/component: admin
|
|
{{- if .Values.admin.service.annotations }}
|
|
annotations:
|
|
{{- toYaml .Values.admin.service.annotations | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
type: {{ .Values.admin.service.type }}
|
|
ports:
|
|
- name: "http"
|
|
port: {{ .Values.admin.port }}
|
|
targetPort: {{ .Values.admin.port }}
|
|
protocol: TCP
|
|
- name: "grpc"
|
|
port: {{ .Values.admin.grpcPort }}
|
|
targetPort: {{ .Values.admin.grpcPort }}
|
|
protocol: TCP
|
|
{{- if .Values.admin.metricsPort }}
|
|
- name: "metrics"
|
|
port: {{ .Values.admin.metricsPort }}
|
|
targetPort: {{ .Values.admin.metricsPort }}
|
|
protocol: TCP
|
|
{{- end }}
|
|
selector:
|
|
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
|
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
app.kubernetes.io/component: admin
|
|
{{- end }}
|
|
|