feat(argocd): Add ingress and secret management

This commit is contained in:
Tanguy Herbron 2023-07-01 23:48:23 +02:00
parent 3984ac3a1c
commit 66e7ad8c3f
5 changed files with 47 additions and 18 deletions

View File

@ -1,15 +1,10 @@
apiVersion: v1 apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
name: argocd-cmd-params-cm
labels: labels:
app.kubernetes.io/name: argocd-cm app.kubernetes.io/name: argocd-cmd-params-cm
app.kubernetes.io/part-of: argocd app.kubernetes.io/part-of: argocd
name: argocd-cm
namespace: argocd
data: data:
resource.customizations: | server.insecure: "true"
networking.k8s.io/Ingress:
health.lua: |
hs = {}
hs.status = "Healthy"
return hs

15
argo/ingress-config.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/name: argocd-cm
app.kubernetes.io/part-of: argocd
name: argocd-cm
namespace: argocd
data:
resource.customizations: |
networking.k8s.io/Ingress:
health.lua: |
hs = {}
hs.status = "Healthy"
return hs

26
argo/ingress.yaml Normal file
View File

@ -0,0 +1,26 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: argocd-server
namespace: argocd
annotations:
kubernetes.io/ingress.class: "traefik-inter"
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`argo.beta.entos`)
priority: 10
services:
- name: argocd-server
port: 80
- kind: Rule
match: Host(`argo.beta.entos`) && Headers(`Content-Type`, `application/grpc`)
priority: 11
services:
- name: argocd-server
port: 80
scheme: h2c
tls:
certResolver: default

View File

@ -18605,15 +18605,6 @@ subjects:
--- ---
apiVersion: v1 apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/name: argocd-cmd-params-cm
app.kubernetes.io/part-of: argocd
name: argocd-cmd-params-cm
---
apiVersion: v1
kind: ConfigMap kind: ConfigMap
metadata: metadata:
labels: labels:

View File

@ -5,4 +5,6 @@ namespace: argocd
resources: resources:
- namespace.yaml - namespace.yaml
- config.yaml - config.yaml
- ingress-config.yaml
- ingress.yaml
- install.yaml - install.yaml