浏览代码

Wordpress

Simon Kaiser 3 年前
父节点
当前提交
ba1ee241a5

+ 23
- 0
blog-kaisers-info/Chart.yaml 查看文件

@@ -0,0 +1,23 @@
1
+apiVersion: v2
2
+name: blog-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
blog-kaisers-info/templates/namespaces.yaml 查看文件

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

+ 33
- 0
blog-kaisers-info/templates/wordpress.yaml 查看文件

@@ -0,0 +1,33 @@
1
+apiVersion: argoproj.io/v1alpha1
2
+kind: Application
3
+metadata:
4
+  name: wordpress
5
+  namespace: {{ .Values.spec.namespace }}
6
+  finalizers:
7
+  - resources-finalizer.argocd.argoproj.io
8
+spec:
9
+  destination:
10
+    namespace: wordpress
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: wordpress
19
+    repoURL: https://charts.bitnami.com/bitnami
20
+    targetRevision: 13.1.0
21
+    helm:
22
+      releaseName: wordpress
23
+      values: |
24
+        ingress:
25
+          enabled: true
26
+          annotations: 
27
+            cert-manager.io/cluster-issuer: "letsencrypt-prod"
28
+          tls: true
29
+          secrets:
30
+            - "newblog-kaisers-info-tls"
31
+          hostname: newblog.kaisers.info
32
+          path: /
33
+          pathType: Prefix

+ 13
- 0
blog-kaisers-info/values.yaml 查看文件

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