* chore(argo-cd): Remove deprecated features Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Remove wildcard catch all ingress rule Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Add ingress extra rules Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Remove unnecessary ingress variables Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Improve documentation Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Replace ingress paths and hosts with single backend service Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Use only port number to support all ingress controllers Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Minor gRPC fixes Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Simplify TLS configuration Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Decouple AWS and GKE ALB from generic ingress Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Remove map nesting for ApplicationSet ingress Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Use example.com domain Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Remove fallback for argocd-cm checksum annotation Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Add revisionHistoryLimit for controller Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Update README Signed-off-by: Petr Drastil <petr.drastil@gmail.com> * Update README Signed-off-by: Petr Drastil <petr.drastil@gmail.com> --------- Signed-off-by: Petr Drastil <petr.drastil@gmail.com>
64 lines
2.3 KiB
YAML
64 lines
2.3 KiB
YAML
{{- if and .Values.server.ingress.enabled (eq .Values.server.ingress.controller "generic") }}
|
|
{{- $insecure := index .Values.configs.params "server.insecure" | toString -}}
|
|
{{- $servicePort := eq $insecure "true" | ternary .Values.server.service.servicePortHttp .Values.server.service.servicePortHttps -}}
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: {{ include "argo-cd.server.fullname" . }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
labels:
|
|
{{- include "argo-cd.labels" (dict "context" . "component" .Values.server.name "name" .Values.server.name) | nindent 4 }}
|
|
{{- with .Values.server.ingress.labels }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- with .Values.server.ingress.annotations }}
|
|
annotations:
|
|
{{- range $key, $value := . }}
|
|
{{ $key }}: {{ $value | quote }}
|
|
{{- end }}
|
|
{{- end }}
|
|
spec:
|
|
{{- with .Values.server.ingress.ingressClassName }}
|
|
ingressClassName: {{ . }}
|
|
{{- end }}
|
|
rules:
|
|
- host: {{ .Values.server.ingress.hostname }}
|
|
http:
|
|
paths:
|
|
{{- with .Values.server.ingress.extraPaths }}
|
|
{{- toYaml . | nindent 10 }}
|
|
{{- end }}
|
|
- path: {{ .Values.server.ingress.path }}
|
|
pathType: {{ $.Values.server.ingress.pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "argo-cd.server.fullname" . }}
|
|
port:
|
|
number: {{ $servicePort }}
|
|
{{- range .Values.server.ingress.extraHosts }}
|
|
- host: {{ .name | quote }}
|
|
http:
|
|
paths:
|
|
- path: {{ default .Values.server.ingress.path .path }}
|
|
pathType: {{ default .Values.server.ingress.pathType .pathType }}
|
|
backend:
|
|
service:
|
|
name: {{ include "argo-cd.server.fullname" . }}
|
|
port:
|
|
number: {{ $servicePort }}
|
|
{{- end }}
|
|
{{- with .Values.server.ingress.extraRules }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- if or .Values.server.ingress.tls .Values.server.ingress.extraTls }}
|
|
tls:
|
|
{{- if .Values.server.ingress.tls }}
|
|
- hosts:
|
|
- {{ .Values.server.ingress.hostname }}
|
|
secretName: argocd-server-tls
|
|
{{- end }}
|
|
{{- with .Values.server.ingress.extraTls }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|