Simon Kaiser 3 лет назад
Родитель
Сommit
bd007d4bec

+ 51
- 0
application-longhorn-kaisers-info.yaml Просмотреть файл

@@ -0,0 +1,51 @@
1
+apiVersion: argoproj.io/v1alpha1
2
+kind: AppProject
3
+metadata:
4
+  name: longhorn-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: Longhorn distributed block storage 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: longhorn-kaisers-info
38
+  namespace: argocd
39
+spec:
40
+  destination:
41
+    name: in-cluster
42
+    namespace: argocd
43
+  project: longhorn-kaisers-info
44
+  source:
45
+    repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info
46
+    path: longhorn-kaisers-info
47
+    targetRevision: master
48
+  syncPolicy:
49
+    automated:
50
+      prune: true
51
+      selfHeal: true

+ 23
- 0
longhorn-kaisers-info/Chart.yaml Просмотреть файл

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

+ 48
- 0
longhorn-kaisers-info/templates/authentik.yaml Просмотреть файл

@@ -0,0 +1,48 @@
1
+apiVersion: argoproj.io/v1alpha1
2
+kind: Application
3
+metadata:
4
+  name: "longhorn"
5
+  namespace: {{ .Values.spec.namespace }}
6
+  finalizers:
7
+  - resources-finalizer.argocd.argoproj.io
8
+spec:
9
+  destination:
10
+    namespace: "longhorn-system"
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: "longhorn"
19
+    repoURL: "https://charts.longhorn.io"
20
+    targetRevision: "1.2.4"
21
+    helm:
22
+      releaseName: "longhorn"
23
+      values: |
24
+        
25
+        ingress:
26
+          ## Set to true to enable ingress record generation
27
+          enabled: true
28
+
29
+          host: "longhorn.kaisers.info"
30
+
31
+          ## Set this to true in order to enable TLS on the ingress record
32
+          ## A side effect of this will be that the backend service will be connected at port 443
33
+          tls: true
34
+
35
+          ## If TLS is set to true, you must declare what secret will store the key/certificate for TLS
36
+          tlsSecret: longhorn-kaisers-info-tls
37
+
38
+          ## Ingress annotations done as key:value pairs
39
+          ## If you're using kube-lego, you will want to add:
40
+          ## kubernetes.io/tls-acme: true
41
+          ##
42
+          ## For a full list of possible ingress annotations, please see
43
+          ## ref: https://github.com/kubernetes/ingress-nginx/blob/master/docs/annotations.md
44
+          ##
45
+          ## If tls is set to true, annotation ingress.kubernetes.io/secure-backends: "true" will automatically be set
46
+          annotations:
47
+            cert-manager.io/cluster-issuer: "letsencrypt-prod"
48
+            traefik.ingress.kubernetes.io/redirect-entry-point: "https"

+ 6
- 0
longhorn-kaisers-info/templates/namespaces.yaml Просмотреть файл

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

+ 13
- 0
longhorn-kaisers-info/values.yaml Просмотреть файл

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

+ 1
- 1
services-kaisers-info/values.yaml Просмотреть файл

@@ -2,7 +2,7 @@ spec:
2 2
   destination:
3 3
     name: in-cluster
4 4
   source:
5
-    path: gitops-kaisers-info
5
+    path: services-kaisers-info
6 6
     repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info.git
7 7
     targetRevision: master
8 8
   project: services-kaisers-info