Skip to content

Commit

Permalink
fix(argocd): disable some apps from prod
Browse files Browse the repository at this point in the history
  • Loading branch information
isac322 committed Dec 17, 2023
1 parent 4ce0887 commit a70d185
Show file tree
Hide file tree
Showing 12 changed files with 112 additions and 123 deletions.
4 changes: 2 additions & 2 deletions apps/objects/cloudflare-origin-ca-issuer/origin-issuer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ spec:
requestType: OriginECC
auth:
serviceKeyRef:
name: cloudflare-ca-api-key
key: cloudflare_origin_ca_key
name: cloudflare-origin-ca-api-key
key: token
17 changes: 0 additions & 17 deletions apps/objects/external-dns/external-secrets.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions argocd/appprojects/cluster-management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ spec:
destinations:
- namespace: kube-system
name: backbone
- namespace: kube-system
name: prod
# - namespace: kube-system
# name: prod
clusterResourceWhitelist:
- group: '*'
kind: '*'
4 changes: 2 additions & 2 deletions argocd/appprojects/dfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ spec:
- https://github.com/isac322/homelab.git
- https://openebs.github.io/zfs-localpv
destinations:
- namespace: rook-ceph
name: prod
# - namespace: rook-ceph
# name: prod
- namespace: openebs
name: backbone
clusterResourceWhitelist:
Expand Down
12 changes: 6 additions & 6 deletions argocd/appprojects/monitoring.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ spec:
- https://grafana.github.io/helm-charts
- https://prometheus-community.github.io/helm-charts
destinations:
- namespace: prometheus
name: prod
- namespace: kube-system
name: prod
- namespace: mimir
name: prod
# - namespace: prometheus
# name: prod
# - namespace: kube-system
# name: prod
# - namespace: mimir
# name: prod
- namespace: prometheus
name: backbone
- namespace: kube-system
Expand Down
3 changes: 3 additions & 0 deletions argocd/apps/blackd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
limit: 100
syncOptions:
- CreateNamespace=true
managedNamespaceMetadata:
labels:
homelab.bhyoo.com/cloudflare-ca-required: 'true'
---
apiVersion: argoproj.io/v1alpha1
kind: Application
Expand Down
3 changes: 3 additions & 0 deletions argocd/apps/jay-india.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
limit: 100
syncOptions:
- CreateNamespace=true
managedNamespaceMetadata:
labels:
homelab.bhyoo.com/cloudflare-ca-required: 'true'
---
apiVersion: argoproj.io/v1alpha1
kind: Application
Expand Down
60 changes: 30 additions & 30 deletions argocd/apps/mimir.yaml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mimir
spec:
destination:
name: prod
namespace: mimir
project: monitoring
source:
chart: mimir-distributed
helm:
releaseName: mimir
valueFiles:
- values.yaml
- https://raw.githubusercontent.com/isac322/homelab/HEAD/values/mimir/prod.yaml
repoURL: https://grafana.github.io/helm-charts
targetRevision: 5.1.1
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
limit: 100
syncOptions:
- CreateNamespace=true
#apiVersion: argoproj.io/v1alpha1
#kind: Application
#metadata:
# name: mimir
#spec:
# destination:
# name: prod
# namespace: mimir
# project: monitoring
# source:
# chart: mimir-distributed
# helm:
# releaseName: mimir
# valueFiles:
# - values.yaml
# - https://raw.githubusercontent.com/isac322/homelab/HEAD/values/mimir/prod.yaml
# repoURL: https://grafana.github.io/helm-charts
# targetRevision: 5.1.1
# syncPolicy:
# automated:
# prune: true
# selfHeal: true
# retry:
# backoff:
# duration: 5s
# factor: 2
# maxDuration: 3m0s
# limit: 100
# syncOptions:
# - CreateNamespace=true
122 changes: 61 additions & 61 deletions argocd/apps/rook.yaml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: rook-ceph
spec:
destination:
name: prod
namespace: rook-ceph
project: dfs
source:
chart: rook-ceph
helm:
releaseName: rook-ceph
valueFiles:
- values.yaml
- https://raw.githubusercontent.com/isac322/homelab/HEAD/values/rook/operator.prod.yaml
repoURL: https://charts.rook.io/release
targetRevision: v1.12.5
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
limit: 100
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: rook-ceph-cluster
spec:
destination:
name: prod
namespace: rook-ceph
project: dfs
source:
chart: rook-ceph-cluster
helm:
valueFiles:
- values.yaml
- https://raw.githubusercontent.com/isac322/homelab/HEAD/values/rook/cluster.prod.yaml
repoURL: https://charts.rook.io/release
targetRevision: v1.12.5
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
backoff:
duration: 5s
factor: 2
maxDuration: 3m0s
limit: 100
syncOptions:
- CreateNamespace=true
#apiVersion: argoproj.io/v1alpha1
#kind: Application
#metadata:
# name: rook-ceph
#spec:
# destination:
# name: prod
# namespace: rook-ceph
# project: dfs
# source:
# chart: rook-ceph
# helm:
# releaseName: rook-ceph
# valueFiles:
# - values.yaml
# - https://raw.githubusercontent.com/isac322/homelab/HEAD/values/rook/operator.prod.yaml
# repoURL: https://charts.rook.io/release
# targetRevision: v1.12.5
# syncPolicy:
# automated:
# prune: true
# selfHeal: true
# retry:
# backoff:
# duration: 5s
# factor: 2
# maxDuration: 3m0s
# limit: 100
# syncOptions:
# - CreateNamespace=true
# - ServerSideApply=true
#---
#apiVersion: argoproj.io/v1alpha1
#kind: Application
#metadata:
# name: rook-ceph-cluster
#spec:
# destination:
# name: prod
# namespace: rook-ceph
# project: dfs
# source:
# chart: rook-ceph-cluster
# helm:
# valueFiles:
# - values.yaml
# - https://raw.githubusercontent.com/isac322/homelab/HEAD/values/rook/cluster.prod.yaml
# repoURL: https://charts.rook.io/release
# targetRevision: v1.12.5
# syncPolicy:
# automated:
# prune: true
# selfHeal: true
# retry:
# backoff:
# duration: 5s
# factor: 2
# maxDuration: 3m0s
# limit: 100
# syncOptions:
# - CreateNamespace=true
2 changes: 1 addition & 1 deletion argocd/appsets/descheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- list:
elements:
- cluster: backbone
- cluster: prod
# - cluster: prod
template:
metadata:
name: '{{cluster}}-descheduler'
Expand Down
2 changes: 1 addition & 1 deletion argocd/appsets/prometheus-stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- list:
elements:
- cluster: backbone
- cluster: prod
# - cluster: prod
template:
metadata:
name: '{{cluster}}-prometheus-stack'
Expand Down
2 changes: 1 addition & 1 deletion argocd/appsets/static-lb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- list:
elements:
- cluster: backbone
- cluster: prod
# - cluster: prod
template:
metadata:
name: '{{cluster}}-static-lb'
Expand Down

0 comments on commit a70d185

Please sign in to comment.