Skip to content

Commit

Permalink
feat(k8s): add caddy ingress controller (#17543)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongbo-miao committed Jun 22, 2024
1 parent 4bd1357 commit e4e8d2e
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ terraform {

# https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release
resource "helm_release" "hm_argo_cd_helm_chart" {
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
name = var.name
version = var.argo_cd_version
values = [file(var.my_values_yaml_path)]
wait = true
namespace = var.namespace
repository = "https://argoproj.github.io/argo-helm"
chart = "argo-cd"
name = var.name
version = var.argo_cd_version
values = [file(var.my_values_yaml_path)]
reset_values = true
wait = true
namespace = var.namespace
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ spec:
project: production-hongbomiao
sources:
- repoURL: https://airbytehq.github.io/helm-charts
# https://artifacthub.io/packages/helm/airbyte/airbyte
targetRevision: 0.199.0
chart: airbyte
helm:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
argo-cd-app-create:
argocd app create hm-caddy-ingress-controller --file=manifests/hm-caddy-ingress-controller.yaml
argo-cd-app-update:
argocd app create hm-caddy-ingress-controller --file=manifests/hm-caddy-ingress-controller.yaml --upsert
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: hm-caddy-ingress-controller
namespace: production-hm-argo-cd
labels:
app.kubernetes.io/name: hm-caddy-ingress-controller
spec:
project: production-hm
source:
repoURL: https://caddyserver.github.io/ingress
# https://github.com/caddyserver/ingress/releases
targetRevision: 1.1.0
chart: caddy-ingress-controller
helm:
releaseName: hm-caddy-ingress-controller
destination:
namespace: production-hm-caddy-ingress-controller
server: https://kubernetes.default.svc
syncPolicy:
syncOptions:
- ServerSideApply=true
automated:
prune: true
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
project: production-hongbomiao
source:
repoURL: https://charts.fairwinds.com/stable
# https://artifacthub.io/packages/helm/fairwinds-stable/goldilocks
targetRevision: 8.0.2
chart: goldilocks
helm:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
project: production-hongbomiao
source:
repoURL: https://kubernetes-sigs.github.io/metrics-server
# https://artifacthub.io/packages/helm/metrics-server/metrics-server
targetRevision: 3.12.1
chart: metrics-server
helm:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
project: production-hongbomiao
source:
repoURL: https://opencost.github.io/opencost-helm-chart
# https://artifacthub.io/packages/helm/opencost/opencost
targetRevision: 1.39.0
chart: opencost
helm:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
project: production-hongbomiao
source:
repoURL: https://prometheus-community.github.io/helm-charts
# https://artifacthub.io/packages/helm/prometheus-community/kube-prometheus-stack
targetRevision: 60.1.0
chart: kube-prometheus-stack
helm:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
project: production-hongbomiao
source:
repoURL: https://bitnami-labs.github.io/sealed-secrets
# https://artifacthub.io/packages/helm/bitnami-labs/sealed-secrets
targetRevision: 2.15.4
chart: sealed-secrets
helm:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
project: production-hongbomiao
source:
repoURL: https://charts.fairwinds.com/stable
# https://artifacthub.io/packages/helm/fairwinds-stable/vpa
targetRevision: 4.5.0
chart: vpa
helm:
Expand Down

0 comments on commit e4e8d2e

Please sign in to comment.