6290322f1b
- VM stack 10 charts: victoria-metrics-cluster/auth, victoria-logs-cluster, victoria-metrics-agent/alert, opentelemetry-collector, kube-state-metrics, prometheus-node-exporter, alertmanager, perses (JWT/OIDC, Infisical-ready) - ArgoCD ApplicationSet (syncWave) + per-chart dip-values overlays - doc/victoria-metrics-architecture.md, define-chart-resources updates - includes pending working-tree changes (mlflow, kubeflow, apisix, CLAUDE.md) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
55 lines
1.6 KiB
YAML
55 lines
1.6 KiB
YAML
{{- $app := .Values.server }}
|
|
{{- $service := $app.service }}
|
|
{{- $ctx := dict "helm" . "appKey" "server" }}
|
|
{{- $fullname := include "vm.plain.fullname" $ctx }}
|
|
{{- $ns := include "vm.namespace" $ctx }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
namespace: {{ $ns }}
|
|
{{- with $service.annotations }}
|
|
annotations: {{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- $_ := set $ctx "extraLabels" $app.service.labels }}
|
|
labels: {{ include "vm.labels" $ctx | nindent 4 }}
|
|
{{- $_ := unset $ctx "extraLabels" }}
|
|
name: {{ $fullname }}
|
|
spec:
|
|
{{- with $service.trafficDistribution }}
|
|
trafficDistribution: {{ . }}
|
|
{{- end }}
|
|
{{- with $service.clusterIP }}
|
|
clusterIP: {{ . }}
|
|
{{- end }}
|
|
{{- with $service.externalIPs }}
|
|
externalIPs: {{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with $service.loadBalancerIP }}
|
|
loadBalancerIP: {{ . }}
|
|
{{- end }}
|
|
{{- with $service.loadBalancerSourceRanges }}
|
|
loadBalancerSourceRanges: {{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
type: {{ $service.type }}
|
|
{{- with $service.healthCheckNodePort }}
|
|
healthCheckNodePort: {{ . }}
|
|
{{- end }}
|
|
{{- with $service.externalTrafficPolicy }}
|
|
externalTrafficPolicy: {{ . }}
|
|
{{- end }}
|
|
{{- with $service.ipFamilyPolicy }}
|
|
ipFamilyPolicy: {{ . }}
|
|
{{- end }}
|
|
{{- with $service.ipFamilies }}
|
|
ipFamilies: {{ toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
ports:
|
|
- name: http
|
|
port: {{ $service.servicePort }}
|
|
targetPort: http
|
|
protocol: TCP
|
|
{{- with $service.nodePort }}
|
|
nodePort: {{ . }}
|
|
{{- end }}
|
|
selector: {{ include "vm.selectorLabels" $ctx | nindent 4 }}
|