mirror of
https://github.com/2martens/cloud-configuration.git
synced 2026-10-17 16:46:51 +02:00
Made ingressClassName configurable
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{{- if .Values.gateway.enabled }}
|
||||
apiVersion: gateway.networking.k8s.io/v1beta1
|
||||
kind: Gateway
|
||||
metadata:
|
||||
name: argocd-server-gateway
|
||||
namespace: {{ .Release.Namespace }}
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: {{ .Values.gateway.certIssuer }}
|
||||
spec:
|
||||
gatewayClassName: cilium
|
||||
listeners:
|
||||
- name: {{ tpl (quote .Values.gateway.host) . }}
|
||||
protocol: HTTPS
|
||||
port: 443
|
||||
hostname: {{ tpl (quote .Values.gateway.host) . }}
|
||||
tls:
|
||||
certificateRefs:
|
||||
- kind: Secret
|
||||
name: argocd-server-tls
|
||||
---
|
||||
apiVersion: gateway.networking.k8s.io/v1beta1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: argocd-server-route
|
||||
namespace: {{ .Release.Namespace }}
|
||||
spec:
|
||||
hostnames:
|
||||
- {{ tpl (quote .Values.gateway.host) . }}
|
||||
parentRefs:
|
||||
- name: cilium-gateway
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: argo-cd-argocd-server
|
||||
port: https
|
||||
{{- end }}
|
||||
@@ -1,3 +1,4 @@
|
||||
{{- if .Values.ingress.enabled }}
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
@@ -27,4 +28,5 @@ spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- {{ tpl (quote .Values.ingress.host) . }}
|
||||
secretName: argocd-server-tls # as expected by argocd-server
|
||||
secretName: argocd-server-tls # as expected by argocd-server
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user