-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(argo-cd): expose argo cd (#18001)
- Loading branch information
1 parent
1762e8d
commit c6262c5
Showing
12 changed files
with
100 additions
and
17 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...frastructure/terraform/environments/production/aws/data/files/argo-cd/helm/my-values.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
argo-cd-app-create: | ||
argocd app create hm-argo-cd --file=manifests/hm-argo-cd-application.yaml | ||
argo-cd-app-update: | ||
argocd app create hm-argo-cd --file=manifests/hm-argo-cd-application.yaml --upsert | ||
argo-cd-app-delete: | ||
argocd app delete hm-argo-cd --yes |
22 changes: 22 additions & 0 deletions
22
ops/argo-cd/applications/production-hm/argo-cd/argo-cd-manifests/hm-argo-cd-application.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: hm-argo-cd | ||
namespace: production-hm-argo-cd | ||
labels: | ||
app.kubernetes.io/name: hm-argo-cd | ||
spec: | ||
project: production-hm | ||
source: | ||
repoURL: [email protected]:hongbo-miao/hongbomiao.com.git | ||
targetRevision: HEAD | ||
path: ops/argo-cd/applications/production-hm/argo-cd/kubernetes-manifests | ||
destination: | ||
namespace: production-hm-argo-cd | ||
server: https://kubernetes.default.svc | ||
syncPolicy: | ||
syncOptions: | ||
- ServerSideApply=true | ||
automated: | ||
prune: true |
34 changes: 34 additions & 0 deletions
34
ops/argo-cd/applications/production-hm/argo-cd/kubernetes-manifests/hm-argo-cd-ingress.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: hm-argo-cd-ingress | ||
namespace: production-hm-argo-cd | ||
annotations: | ||
kubernetes.io/ingress.class: traefik | ||
# https://doc.traefik.io/traefik/routing/providers/kubernetes-ingress/#on-ingress | ||
traefik.ingress.kubernetes.io/router.entrypoints: websecure | ||
traefik.ingress.kubernetes.io/router.tls: "true" | ||
# https://kubernetes-sigs.github.io/external-dns/latest/annotations/annotations | ||
external-dns.alpha.kubernetes.io/hostname: hm-argo-cd.internal.hongbomiao.com | ||
# https://cert-manager.io/docs/usage/ingress/#supported-annotations | ||
cert-manager.io/cluster-issuer: production-lets-encrypt-cluster-issuer | ||
labels: | ||
app.kubernetes.io/name: hm-argo-cd-ingress | ||
app.kubernetes.io/part-of: production-hm-argo-cd | ||
spec: | ||
rules: | ||
- host: hm-argo-cd.internal.hongbomiao.com | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: hm-argo-cd-argocd-server | ||
port: | ||
number: 80 | ||
tls: | ||
- hosts: | ||
- hm-argo-cd.internal.hongbomiao.com | ||
secretName: production-hm-argo-cd-certificate |
14 changes: 14 additions & 0 deletions
14
...cations/production-hm/argo-cd/kubernetes-manifests/production-hm-argo-cd-certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: production-hm-argo-cd-certificate | ||
namespace: production-hm-argo-cd | ||
spec: | ||
commonName: hm-argo-cd.internal.hongbomiao.com | ||
secretName: production-hm-argo-cd-certificate | ||
dnsNames: | ||
- hm-argo-cd.internal.hongbomiao.com | ||
issuerRef: | ||
kind: ClusterIssuer | ||
name: production-lets-encrypt-cluster-issuer |
14 changes: 14 additions & 0 deletions
14
...plications/production-hm/argo-cd/kubernetes-manifests/staging-hm-argo-cd-certificate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
name: staging-hm-argo-cd-certificate | ||
namespace: production-hm-argo-cd | ||
spec: | ||
commonName: hm-argo-cd.internal.hongbomiao.com | ||
secretName: staging-hm-argo-cd-certificate | ||
dnsNames: | ||
- hm-argo-cd.internal.hongbomiao.com | ||
issuerRef: | ||
kind: ClusterIssuer | ||
name: staging-lets-encrypt-cluster-issuer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,7 +68,7 @@ spec: | |
useCredentialsInSecret: true | ||
- repoURL: [email protected]:hongbo-miao/hongbomiao.com.git | ||
targetRevision: HEAD | ||
path: mlflow/manifests | ||
path: ops/argo-cd/applications/production-hm/mlflow/kubernetes-manifests | ||
destination: | ||
namespace: production-hm-mlflow | ||
server: https://kubernetes.default.svc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,7 +85,7 @@ spec: | |
enabled: false | ||
- repoURL: [email protected]:hongbo-miao/hongbomiao.com.git | ||
targetRevision: HEAD | ||
path: ops/argo-cd/applications/production-hm/metadata/kubernetes-manifests | ||
path: ops/argo-cd/applications/production-hm/netadata/kubernetes-manifests | ||
destination: | ||
namespace: production-hm-netdata | ||
server: https://kubernetes.default.svc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,7 @@ spec: | |
memory: 512Mi | ||
- repoURL: [email protected]:hongbo-miao/hongbomiao.com.git | ||
targetRevision: HEAD | ||
path: ops/argo-cd/applications/production-hm/opencost/kubernetes-manifests | ||
path: ops/argo-cd/applications/production-hm/prometheus/kubernetes-manifests | ||
destination: | ||
namespace: production-hm-prometheus | ||
server: https://kubernetes.default.svc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ spec: | |
ports: [] | ||
- repoURL: [email protected]:hongbo-miao/hongbomiao.com.git | ||
targetRevision: HEAD | ||
path: ray-cluster/manifests | ||
path: ops/argo-cd/applications/production-hm/ray-cluster/kubernetes-manifests | ||
destination: | ||
namespace: production-hm-ray-cluster | ||
server: https://kubernetes.default.svc | ||
|