mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
argocd: mv all namespaces to a separate app
This commit is contained in:
parent
cbd796ec91
commit
5bb0281478
8 changed files with 22 additions and 14 deletions
|
|
@ -1,16 +1,17 @@
|
|||
|
||||
create namespaces
|
||||
|
||||
$ kubectl --context=gullfaxi apply -R apps/namespaces
|
||||
|
||||
install nginx-ingress
|
||||
|
||||
$ helm dep update apps/system/nginx-ingress
|
||||
$ kubectl --context=gullfaxi create ns nginx-ingress
|
||||
$ helm template --name nginx-ingress --namespace nginx-ingress apps/system/nginx-ingress | kubectl --context=gullfaxi --namespace nginx-ingress apply -f -
|
||||
|
||||
install cert-manager with cluster issuer
|
||||
|
||||
$ helm repo add jetstack https://charts.jetstack.io
|
||||
$ helm dep update apps/system/cert-manager
|
||||
$ kubectl --context=gullfaxi create ns cert-manager
|
||||
$ helm template --name cert-manager --namespace cert-manager apps/system/cert-manager | kubectl --context=gullfaxi --namespace cert-manager apply -f -
|
||||
|
||||
install argocd
|
||||
|
|
|
|||
|
|
@ -2,5 +2,3 @@ apiVersion: v1
|
|||
kind: Namespace
|
||||
metadata:
|
||||
name: argocd
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
|
|
@ -2,5 +2,3 @@ apiVersion: v1
|
|||
kind: Namespace
|
||||
metadata:
|
||||
name: cert-manager
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
|
|
@ -2,5 +2,3 @@ apiVersion: v1
|
|||
kind: Namespace
|
||||
metadata:
|
||||
name: nginx-ingress
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
|
|
@ -2,5 +2,3 @@ apiVersion: v1
|
|||
kind: Namespace
|
||||
metadata:
|
||||
name: oauth2-proxy
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
|
|
@ -2,5 +2,3 @@ apiVersion: v1
|
|||
kind: Namespace
|
||||
metadata:
|
||||
name: prometheus-operator
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
|
|
@ -2,5 +2,3 @@ apiVersion: v1
|
|||
kind: Namespace
|
||||
metadata:
|
||||
name: sealedsecrets
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "-1"
|
||||
|
|
|
|||
19
main/templates/namespaces.yaml
Normal file
19
main/templates/namespaces.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: namespaces
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
destination:
|
||||
namespace: default
|
||||
server: https://kubernetes.default.svc
|
||||
project: default
|
||||
source:
|
||||
path: apps/namespaces
|
||||
repoURL: git@github.com:gorilych/gf-k8s
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
Loading…
Reference in a new issue