From 09fbc7e597ed993c98d0b5c635e018bff104c81e Mon Sep 17 00:00:00 2001 From: David Landry Date: Fri, 1 Mar 2024 23:46:59 -0500 Subject: [PATCH] chore(argo): add ingress --- bootstrap/argo-cd/argogrpc.service.yaml | 17 ++++++++++++ bootstrap/argo-cd/ingress.yaml | 36 +++++++++++++++++++++++++ bootstrap/argo-cd/kustomization.yaml | 30 ++++++++++++--------- 3 files changed, 70 insertions(+), 13 deletions(-) create mode 100644 bootstrap/argo-cd/argogrpc.service.yaml create mode 100644 bootstrap/argo-cd/ingress.yaml diff --git a/bootstrap/argo-cd/argogrpc.service.yaml b/bootstrap/argo-cd/argogrpc.service.yaml new file mode 100644 index 0000000..e040db3 --- /dev/null +++ b/bootstrap/argo-cd/argogrpc.service.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + labels: + app: argogrpc + name: argogrpc +spec: + ports: + - name: "443" + port: 443 + protocol: TCP + targetPort: 8080 + selector: + app.kubernetes.io/name: argocd-server + sessionAffinity: None + type: NodePort diff --git a/bootstrap/argo-cd/ingress.yaml b/bootstrap/argo-cd/ingress.yaml new file mode 100644 index 0000000..2c203b9 --- /dev/null +++ b/bootstrap/argo-cd/ingress.yaml @@ -0,0 +1,36 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + cert-manager.io/cluster-issuer: letsencrypt-issuer + gethomepage.dev/enabled: "true" + gethomepage.dev/name: "ArgoCD" + gethomepage.dev/description: "Manage k8s applications" + gethomepage.dev/group: "System" + name: argocd + labels: + name: argocd +spec: + rules: + - host: argocd.int.nc.landry.land + http: + paths: + - path: / + backend: + service: + name: argogrpc + port: + number: 443 + pathType: Prefix + - path: / + backend: + service: + name: argocd-server + port: + number: 443 + pathType: Prefix + + tls: + - hosts: + - argocd.int.nc.landry.land + secretName: argocd-tls diff --git a/bootstrap/argo-cd/kustomization.yaml b/bootstrap/argo-cd/kustomization.yaml index 922c21a..5ae40dc 100644 --- a/bootstrap/argo-cd/kustomization.yaml +++ b/bootstrap/argo-cd/kustomization.yaml @@ -1,17 +1,21 @@ apiVersion: kustomize.config.k8s.io/v1beta1 -configMapGenerator: -- behavior: merge - literals: - - | - repository.credentials=- passwordSecret: - key: git_token - name: autopilot-secret - url: https://git.nc.landry.land/ - usernameSecret: - key: git_username - name: autopilot-secret - name: argocd-cm kind: Kustomization namespace: argocd + +configMapGenerator: + - name: argocd-cm + behavior: merge + literals: + - url=https://argocd.int.nc.landry.land + - | + repository.credentials=- passwordSecret: + key: git_token + name: autopilot-secret + url: https://git.nc.landry.land/ + usernameSecret: + key: git_username + name: autopilot-secret resources: -- github.com/argoproj-labs/argocd-autopilot/manifests/base?ref=v0.4.17 + - github.com/argoproj-labs/argocd-autopilot/manifests/base?ref=v0.4.17 + - ./ingress.yaml + - ./argogrpc.service.yaml