Simon Kaiser 3 vuotta sitten
vanhempi
commit
d8868bda22
2 muutettua tiedostoa jossa 51 lisäystä ja 2 poistoa
  1. 51
    0
      application-blog-kaisers-info.yaml
  2. 0
    2
      blog-kaisers-info/templates/wordpress.yaml

+ 51
- 0
application-blog-kaisers-info.yaml Näytä tiedosto

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

+ 0
- 2
blog-kaisers-info/templates/wordpress.yaml Näytä tiedosto

@@ -26,8 +26,6 @@ spec:
26 26
           annotations: 
27 27
             cert-manager.io/cluster-issuer: "letsencrypt-prod"
28 28
           tls: true
29
-          secrets:
30
-            - "newblog-kaisers-info-tls"
31 29
           hostname: newblog.kaisers.info
32 30
           path: /
33 31
           pathType: Prefix