feat: 🎸 add argocd dns
This commit is contained in:
@@ -14,8 +14,32 @@
|
||||
/snap/bin/helm upgrade --install argocd argo/argo-cd
|
||||
--namespace argocd
|
||||
--create-namespace
|
||||
--set server.service.type=NodePort
|
||||
--set configs.params."server\.insecure"=true
|
||||
--wait
|
||||
become: false
|
||||
register: argocd_install
|
||||
changed_when: "'Release \"argocd\" does not exist' in argocd_install.stdout or 'Happy Helming' in argocd_install.stdout"
|
||||
|
||||
- name: Create HTTPRoute for ArgoCD
|
||||
kubernetes.core.k8s:
|
||||
definition:
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: argocd-route
|
||||
namespace: argocd
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: main-gateway
|
||||
namespace: traefik
|
||||
sectionName: argocd-https
|
||||
hostnames:
|
||||
- "argocd.svc.pguia.com"
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: argocd-server
|
||||
port: 80
|
||||
|
||||
Reference in New Issue
Block a user