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>
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
{{- $app := .Values.server }}
|
|
{{- $ingress := $app.ingress }}
|
|
{{- if $ingress.enabled }}
|
|
{{- $ctx := dict "helm" . "appKey" "server" }}
|
|
{{- $fullname := include "vm.plain.fullname" $ctx }}
|
|
{{- $ns := include "vm.namespace" $ctx }}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
{{- with $ingress.annotations }}
|
|
annotations: {{ toYaml .| nindent 4 }}
|
|
{{- end }}
|
|
{{- $_ := set $ctx "extraLabels" $ingress.extraLabels }}
|
|
labels: {{ include "vm.labels" $ctx | nindent 4 }}
|
|
{{- $_ := unset $ctx "extraLabels" }}
|
|
name: {{ $fullname }}
|
|
namespace: {{ $ns }}
|
|
spec:
|
|
{{- with $ingress.ingressClassName }}
|
|
ingressClassName: {{ . }}
|
|
{{- end }}
|
|
{{- with $ingress.tls }}
|
|
tls: {{ tpl (toYaml .) $ | nindent 4 }}
|
|
{{- end }}
|
|
rules:
|
|
{{- range $host := $ingress.hosts }}
|
|
{{- $paths := ternary (list $host.path) $host.path (kindIs "string" $host.path) }}
|
|
- host: {{ tpl $host.name $ | quote }}
|
|
http:
|
|
paths:
|
|
{{- range $path := $paths }}
|
|
- path: {{ $path }}
|
|
{{- with $ingress.pathType }}
|
|
pathType: {{ . }}
|
|
{{- end }}
|
|
backend:
|
|
service:
|
|
name: {{ $fullname }}
|
|
port: {{ include "vm.ingress.port" $host | nindent 18 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|