Skip to content

Commit

Permalink
Argocd: Prepare switch to explicit certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
lentzi90 committed Dec 28, 2024
1 parent 5851acd commit 201a123
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 3 deletions.
13 changes: 13 additions & 0 deletions argocd/overlays/jern.me/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: argocd-fi-cert
spec:
dnsNames:
- argocd.jern.fi
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: letsencrypt-staging
secretName: argocd-fi-cert
revisionHistoryLimit: 5
2 changes: 0 additions & 2 deletions argocd/overlays/jern.me/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ kind: Ingress
metadata:
name: argocd-server-ingress
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
# If you encounter a redirect loop or are getting a 307 response code
# then you need to force the nginx ingress to connect to the backend using HTTPS.
Expand Down
1 change: 1 addition & 0 deletions argocd/overlays/jern.me/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ labels:
resources:
- ../../bases/upstream
- ingress.yaml
- certificate.yaml
- namespace.yaml

patches:
Expand Down
13 changes: 13 additions & 0 deletions argocd/overlays/kind/certificate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: argocd-cert
spec:
dnsNames:
- argocd.local
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: selfsigner
secretName: argocd-secret
revisionHistoryLimit: 5
1 change: 0 additions & 1 deletion argocd/overlays/kind/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ metadata:
name: argocd-server-ingress
annotations:
cert-manager.io/cluster-issuer: selfsigned
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
# If you encounter a redirect loop or are getting a 307 response code
# then you need to force the nginx ingress to connect to the backend using HTTPS.
Expand Down
1 change: 1 addition & 0 deletions argocd/overlays/kind/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ resources:
- ../../bases/upstream
- namespace.yaml
- ingress.yaml
- certificate.yaml

0 comments on commit 201a123

Please sign in to comment.