Ver código fonte

Cluster as application

Simon Kaiser 3 anos atrás
pai
commit
5a43fda0d4

+ 51
- 0
application-cluster-kaisers-info.yaml Ver arquivo

@@ -0,0 +1,51 @@
1
+apiVersion: argoproj.io/v1alpha1
2
+kind: AppProject
3
+metadata:
4
+  name: cluster-kaisers-info
5
+  namespace: argocd
6
+  # Finalizer that ensures that project is not deleted until it is not referenced by any application
7
+  finalizers:
8
+    - resources-finalizer.argocd.argoproj.io
9
+spec:
10
+  description: Cluster for kaisers.info
11
+  clusterResourceWhitelist:
12
+  - group: '*'
13
+    kind: '*'
14
+  destinations:
15
+  - name: '*'
16
+    namespace: '*'
17
+    server: '*'
18
+  namespaceResourceWhitelist:
19
+  - group: '*'
20
+    kind: '*'
21
+  sourceRepos:
22
+  - '*'
23
+---
24
+apiVersion: v1
25
+kind: Secret
26
+metadata:
27
+  name: repo-k8s-kaisers-info
28
+  namespace: argocd
29
+  labels:
30
+    argocd.argoproj.io/secret-type: repository
31
+stringData:
32
+  url: https://git.kaisers.info/simonkaiser/k8s-kaisers-info
33
+---
34
+apiVersion: argoproj.io/v1alpha1
35
+kind: Application
36
+metadata:
37
+  name: cluster-kaisers-info
38
+  namespace: argocd
39
+spec:
40
+  destination:
41
+    name: in-cluster
42
+    namespace: argocd
43
+  project: cluster-kaisers-info
44
+  source:
45
+    repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info
46
+    path: cluster-kaisers-info
47
+    targetRevision: master
48
+  syncPolicy:
49
+    automated:
50
+      prune: true
51
+      selfHeal: true

+ 23
- 0
cluster-kaisers-info/Chart.yaml Ver arquivo

@@ -0,0 +1,23 @@
1
+apiVersion: v2
2
+name: gitops-kaisers-info
3
+description: Applications
4
+
5
+# A chart can be either an 'application' or a 'library' chart.
6
+#
7
+# Application charts are a collection of templates that can be packaged into versioned archives
8
+# to be deployed.
9
+#
10
+# Library charts provide useful utilities or functions for the chart developer. They're included as
11
+# a dependency of application charts to inject those utilities and functions into the rendering
12
+# pipeline. Library charts do not define any templates and therefore cannot be deployed.
13
+type: application
14
+
15
+# This is the chart version. This version number should be incremented each time you make changes
16
+# to the chart and its templates, including the app version.
17
+# Versions are expected to follow Semantic Versioning (https://semver.org/)
18
+version: 0.1.0
19
+
20
+# This is the version number of the application being deployed. This version number should be
21
+# incremented each time you make changes to the application. Versions are not expected to
22
+# follow Semantic Versioning. They should reflect the version the application is using.
23
+appVersion: "0.1.0"

gitops-kaisers-info/templates/cert-manager.yaml → cluster-kaisers-info/templates/cert-manager.yaml Ver arquivo


+ 13
- 0
cluster-kaisers-info/templates/namespaces.yaml Ver arquivo

@@ -0,0 +1,13 @@
1
+apiVersion: v1
2
+kind: Namespace
3
+metadata:
4
+  name: "cert-manager"
5
+  annotations:
6
+    argocd.argoproj.io/sync-wave: "-1"
7
+---
8
+apiVersion: v1
9
+kind: Namespace
10
+metadata:
11
+  name: "sealed-secrets"
12
+  annotations:
13
+    argocd.argoproj.io/sync-wave: "-1"

gitops-kaisers-info/templates/sealed-secrets.yaml → cluster-kaisers-info/templates/sealed-secrets.yaml Ver arquivo


+ 13
- 0
cluster-kaisers-info/values.yaml Ver arquivo

@@ -0,0 +1,13 @@
1
+spec:
2
+  destination:
3
+    name: in-cluster
4
+  source:
5
+    path: gitops-kaisers-info
6
+    repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info.git
7
+    targetRevision: master
8
+  project: gitops-kaisers-info
9
+  namespace: argocd
10
+  syncPolicy:
11
+    automated:
12
+      prune: true
13
+      selfHeal: true

gitops-kaisers-info/templates/argo-cd.yaml → gitops-kaisers-info/templates/argocd.yaml Ver arquivo


+ 0
- 14
gitops-kaisers-info/templates/namespaces.yaml Ver arquivo

@@ -16,19 +16,5 @@ apiVersion: v1
16 16
 kind: Namespace
17 17
 metadata:
18 18
   name: "crossplane-system"
19
-  annotations:
20
-    argocd.argoproj.io/sync-wave: "-1"
21
----
22
-apiVersion: v1
23
-kind: Namespace
24
-metadata:
25
-  name: "cert-manager"
26
-  annotations:
27
-    argocd.argoproj.io/sync-wave: "-1"
28
----
29
-apiVersion: v1
30
-kind: Namespace
31
-metadata:
32
-  name: "sealed-secrets"
33 19
   annotations:
34 20
     argocd.argoproj.io/sync-wave: "-1"