@@ -1,31 +1,10 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: AppProject
|
|
||||||
metadata:
|
|
||||||
creationTimestamp: null
|
|
||||||
name: k3s-cluster
|
|
||||||
namespace: argocd
|
|
||||||
spec:
|
|
||||||
clusterResourceWhitelist:
|
|
||||||
- group: '*'
|
|
||||||
kind: '*'
|
|
||||||
description: k3s-cluster project
|
|
||||||
destinations:
|
|
||||||
- namespace: '*'
|
|
||||||
server: '*'
|
|
||||||
namespaceResourceWhitelist:
|
|
||||||
- group: '*'
|
|
||||||
kind: '*'
|
|
||||||
sourceRepos:
|
|
||||||
- '*'
|
|
||||||
status: {}
|
|
||||||
---
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: ApplicationSet
|
kind: ApplicationSet
|
||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "0"
|
argocd.argoproj.io/sync-wave: "4"
|
||||||
creationTimestamp: null
|
creationTimestamp: null
|
||||||
name: k3s-cluster
|
name: applications
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
generators:
|
generators:
|
||||||
69
projects/k3s-cluster-infra.yaml
Normal file
69
projects/k3s-cluster-infra.yaml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "3"
|
||||||
|
creationTimestamp: null
|
||||||
|
name: infrastructures
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
generators:
|
||||||
|
- git:
|
||||||
|
files:
|
||||||
|
- path: infrastructures/**/k3s-cluster/config.json
|
||||||
|
repoURL: https://github.com/3dwardch3ng/home-cluster-ops.git
|
||||||
|
requeueAfterSeconds: 20
|
||||||
|
revision: ""
|
||||||
|
template:
|
||||||
|
metadata: {}
|
||||||
|
spec:
|
||||||
|
destination: {}
|
||||||
|
project: ""
|
||||||
|
source:
|
||||||
|
repoURL: ""
|
||||||
|
- git:
|
||||||
|
files:
|
||||||
|
- path: infrastructures/**/k3s-cluster/config_dir.json
|
||||||
|
repoURL: https://github.com/3dwardch3ng/home-cluster-ops.git
|
||||||
|
requeueAfterSeconds: 20
|
||||||
|
revision: ""
|
||||||
|
template:
|
||||||
|
metadata: {}
|
||||||
|
spec:
|
||||||
|
destination: {}
|
||||||
|
project: ""
|
||||||
|
source:
|
||||||
|
directory:
|
||||||
|
exclude: '{{ exclude }}'
|
||||||
|
include: '{{ include }}'
|
||||||
|
jsonnet: {}
|
||||||
|
recurse: true
|
||||||
|
repoURL: ""
|
||||||
|
syncPolicy: {}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: argocd
|
||||||
|
app.kubernetes.io/name: '{{ appName }}'
|
||||||
|
name: '{{ userGivenName }}'
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: '{{ destNamespace }}'
|
||||||
|
server: '{{ destServer }}'
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: argoproj.io
|
||||||
|
jsonPointers:
|
||||||
|
- /status
|
||||||
|
kind: Application
|
||||||
|
project: k3s-cluster
|
||||||
|
source:
|
||||||
|
path: '{{ srcPath }}'
|
||||||
|
repoURL: '{{ srcRepoURL }}'
|
||||||
|
targetRevision: '{{ srcTargetRevision }}'
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
allowEmpty: true
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
status: {}
|
||||||
69
projects/k3s-cluster-res.yaml
Normal file
69
projects/k3s-cluster-res.yaml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: ApplicationSet
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "2"
|
||||||
|
creationTimestamp: null
|
||||||
|
name: resources
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
generators:
|
||||||
|
- git:
|
||||||
|
files:
|
||||||
|
- path: resources/**/k3s-cluster/config.json
|
||||||
|
repoURL: https://github.com/3dwardch3ng/home-cluster-ops.git
|
||||||
|
requeueAfterSeconds: 20
|
||||||
|
revision: ""
|
||||||
|
template:
|
||||||
|
metadata: {}
|
||||||
|
spec:
|
||||||
|
destination: {}
|
||||||
|
project: ""
|
||||||
|
source:
|
||||||
|
repoURL: ""
|
||||||
|
- git:
|
||||||
|
files:
|
||||||
|
- path: apps/**/k3s-cluster/config_dir.json
|
||||||
|
repoURL: https://github.com/3dwardch3ng/home-cluster-ops.git
|
||||||
|
requeueAfterSeconds: 20
|
||||||
|
revision: ""
|
||||||
|
template:
|
||||||
|
metadata: {}
|
||||||
|
spec:
|
||||||
|
destination: {}
|
||||||
|
project: ""
|
||||||
|
source:
|
||||||
|
directory:
|
||||||
|
exclude: '{{ exclude }}'
|
||||||
|
include: '{{ include }}'
|
||||||
|
jsonnet: {}
|
||||||
|
recurse: true
|
||||||
|
repoURL: ""
|
||||||
|
syncPolicy: {}
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/managed-by: argocd
|
||||||
|
app.kubernetes.io/name: '{{ appName }}'
|
||||||
|
name: '{{ userGivenName }}'
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: '{{ destNamespace }}'
|
||||||
|
server: '{{ destServer }}'
|
||||||
|
ignoreDifferences:
|
||||||
|
- group: argoproj.io
|
||||||
|
jsonPointers:
|
||||||
|
- /status
|
||||||
|
kind: Application
|
||||||
|
project: k3s-cluster
|
||||||
|
source:
|
||||||
|
path: '{{ srcPath }}'
|
||||||
|
repoURL: '{{ srcRepoURL }}'
|
||||||
|
targetRevision: '{{ srcTargetRevision }}'
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
allowEmpty: true
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
status: {}
|
||||||
22
projects/proj.yaml
Normal file
22
projects/proj.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: AppProject
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
|
creationTimestamp: null
|
||||||
|
name: k3s-cluster
|
||||||
|
namespace: argocd
|
||||||
|
spec:
|
||||||
|
clusterResourceWhitelist:
|
||||||
|
- group: '*'
|
||||||
|
kind: '*'
|
||||||
|
description: k3s-cluster project
|
||||||
|
destinations:
|
||||||
|
- namespace: '*'
|
||||||
|
server: '*'
|
||||||
|
namespaceResourceWhitelist:
|
||||||
|
- group: '*'
|
||||||
|
kind: '*'
|
||||||
|
sourceRepos:
|
||||||
|
- '*'
|
||||||
|
status: {}
|
||||||
Reference in New Issue
Block a user