Skip to content

Commit

Permalink
fix: broken argo ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
diabhey committed Feb 4, 2023
1 parent 5ae8e86 commit 9f87f19
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 9 additions & 1 deletion argocd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ To access Argo CD via an FQDN, we need to configure a few things.

```bash
# Disable internal TLS to avoid internal redirection loops from HTTP to HTTPS. The API server should run with TLS disabled.
kubectl patch deployment -n argocd argocd-server --patch-file argocd/no-tls.yaml
kubectl patch deployment -n argocd argocd-server --patch-file no-tls.yaml
# lets-encrypt-do-dns secret required for dns01 challenge
# @param access-token: DO access token
kubectl create ns cert-manager &&
kubectl create -n cert-manager secret generic lets-encrypt-do-dns \ --from-literal=access-token=<insert DO access token>
```

### ArgoCD Ingress

Fill in your custom domain `- host: argocd.{{ .Values.domain }}` in the [argo-ingress.yaml](./argo-ingress.yaml)

```bash
kubectl apply -f argo-ingress.yaml
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if .Values.domain }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
Expand All @@ -10,6 +9,7 @@ metadata:
cert-manager.io/cluster-issuer: letsencrypt-issuer
spec:
rules:
# Add domain
- host: argocd.{{ .Values.domain }}
http:
paths:
Expand All @@ -23,5 +23,5 @@ spec:
tls:
- secretName: argocd-secret-tls
hosts:
- argocd.{{ .Values.domain }}
{{- end }}
# Add domain
- argocd.{{ .Values.domain }}
2 changes: 1 addition & 1 deletion bootstrap/bootstrap-resources/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
bots:
enable: false
domain:
domain:

0 comments on commit 9f87f19

Please sign in to comment.