From 17946edef5099419c22551e5a82e64b0dac470c5 Mon Sep 17 00:00:00 2001 From: wbsong111 Date: Tue, 18 Feb 2025 16:49:20 +0900 Subject: [PATCH] Update custom-values.yaml for modify annotations for kong --- charts/argo-cd/CUSTOM-README.md | 25 +++++++++++++++++++++++++ charts/argo-cd/custom-values.yaml | 23 +++++++++++++++++++++-- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/charts/argo-cd/CUSTOM-README.md b/charts/argo-cd/CUSTOM-README.md index e697ccf..428a839 100644 --- a/charts/argo-cd/CUSTOM-README.md +++ b/charts/argo-cd/CUSTOM-README.md @@ -44,3 +44,28 @@ | server.ingress.labels | object | `{}` | Ingress에 추가할 Label을 정의합니다. | | server.ingress.path | string | `"/"` | The path to Argo CD server | | server.ingress.pathType | string | `"Prefix"` | Ingress path type. One of `Exact`, `Prefix` or `ImplementationSpecific` | + + +#### Kong Ingress Controller 사용 시 필요 설정 + +- argocd를 배포할 때, kong ingress controller를 사용하면 다음과 같은 kong의 설정이 필요합니다. +``` yaml +server: + ingress: + enabled: true + annotations: + # kong ingress controller 설정 + konghq.com/https-redirect-status-code: "301" + konghq.com/preserve-host: "true" + konghq.com/protocols: https + hostname: argocd.example.org + ingressClassName: "kong" + extraTls: + - hosts: + - argocd.example.org + secretName: argocd-tls + service: + annotations: + # argocd에서 발생하는 too many redirect 발생 방지를 위해 추가 + konghq.com/protocol: https +``` \ No newline at end of file diff --git a/charts/argo-cd/custom-values.yaml b/charts/argo-cd/custom-values.yaml index 53bf050..1e26832 100644 --- a/charts/argo-cd/custom-values.yaml +++ b/charts/argo-cd/custom-values.yaml @@ -1,2 +1,21 @@ -global: - domain: argocd.example.org +server: + ingress: + enabled: true + annotations: + # kong ingress controller 설정 + konghq.com/https-redirect-status-code: "301" + konghq.com/preserve-host: "true" + konghq.com/protocols: https + # cert manager 설정 + cert-manager.io/cluster-issuer: "selfsigned-issuer" + cert-manager.io/duration: 8760h + cert-manager.io/renew-before: 720h + hostname: argocd.example.org + ingressClassName: "kong" + extraTls: + - hosts: + - argocd.example.org + secretName: argocd-tls + service: + annotations: + konghq.com/protocol: https \ No newline at end of file