Browse Source

Introduces cloud

Simon Kaiser 3 years ago
parent
commit
0c52e30134

+ 18
- 0
application-cloud-kaisers-info.yaml View File

@@ -0,0 +1,18 @@
1
+apiVersion: argoproj.io/v1alpha1
2
+kind: Application
3
+metadata:
4
+  name: cloud-kaisers-info
5
+  namespace: argocd
6
+spec:
7
+  destination:
8
+    name: in-cluster
9
+    namespace: argocd
10
+  project: default
11
+  source:
12
+    repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info
13
+    path: cloud-kaisers-info
14
+    targetRevision: master
15
+  syncPolicy:
16
+    automated:
17
+      prune: true
18
+      selfHeal: true

+ 23
- 0
cloud-kaisers-info/Chart.yaml View File

@@ -0,0 +1,23 @@
1
+apiVersion: v2
2
+name: cloud-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"

+ 6
- 0
cloud-kaisers-info/templates/namespaces.yaml View File

@@ -0,0 +1,6 @@
1
+apiVersion: v1
2
+kind: Namespace
3
+metadata:
4
+  name: nextcloud
5
+  annotations:
6
+    argocd.argoproj.io/sync-wave: "-1"

+ 66
- 0
cloud-kaisers-info/templates/nextcloud.yaml View File

@@ -0,0 +1,66 @@
1
+apiVersion: argoproj.io/v1alpha1
2
+kind: Application
3
+metadata:
4
+  name: nextcloud
5
+  namespace: {{ .Values.spec.namespace }}
6
+  finalizers:
7
+  - resources-finalizer.argocd.argoproj.io
8
+spec:
9
+  destination:
10
+    namespace: {{ .Values.spec.namespace }}
11
+    name: {{ .Values.spec.destination.name }}
12
+  project: {{ .Values.spec.project }}
13
+  syncPolicy:
14
+    automated:
15
+      prune: true
16
+      selfHeal: true
17
+  source:
18
+    chart: nextcloud
19
+    repoURL: https://nextcloud.github.io/helm/
20
+    targetRevision: 2.12.1
21
+    helm:
22
+      releaseName: nextcloud
23
+      values: |
24
+        ingress:
25
+          enabled: true
26
+          # className: nginx
27
+          annotations: {}
28
+          #  nginx.ingress.kubernetes.io/proxy-body-size: 4G
29
+          #  kubernetes.io/tls-acme: "true"
30
+          #  cert-manager.io/cluster-issuer: letsencrypt-prod
31
+          #  nginx.ingress.kubernetes.io/server-snippet: |-
32
+          #    server_tokens off;
33
+          #    proxy_hide_header X-Powered-By;
34
+
35
+          #    rewrite ^/.well-known/webfinger /public.php?service=webfinger last;
36
+          #    rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
37
+          #    rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json;
38
+          #    location = /.well-known/carddav {
39
+          #      return 301 $scheme://$host/remote.php/dav;
40
+          #    }
41
+          #    location = /.well-known/caldav {
42
+          #      return 301 $scheme://$host/remote.php/dav;
43
+          #    }
44
+          #    location = /robots.txt {
45
+          #      allow all;
46
+          #      log_not_found off;
47
+          #      access_log off;
48
+          #    }
49
+          #    location ~ ^/(?:build|tests|config|lib|3rdparty|templates|data)/ {
50
+          #      deny all;
51
+          #    }
52
+          #    location ~ ^/(?:autotest|occ|issue|indie|db_|console) {
53
+          #      deny all;
54
+          #    }
55
+          # tls:
56
+          #   - secretName: nextcloud-tls
57
+          #     hosts:
58
+          #       - nextcloud.kube.home
59
+          labels: {}
60
+          path: /
61
+          pathType: Prefix
62
+
63
+        nextcloud:
64
+          host: newcloud.kaisers.info
65
+          username: admin
66
+          password: changeme

+ 13
- 0
cloud-kaisers-info/values.yaml View File

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

+ 1
- 1
gitops-kaisers-info/values.yaml View File

@@ -4,7 +4,7 @@ spec:
4 4
   source:
5 5
     path: gitops-kaisers-info
6 6
     repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info.git
7
-    targetRevision: HEAD
7
+    targetRevision: master
8 8
   project: default
9 9
   namespace: argocd
10 10
   syncPolicy: