Adds wiki

This commit is contained in:
Simon Kaiser committed 2022-07-07 23:59:21 +02:00
1 parent 0ff8d7e077
commit 84ba4dd6ae
6 files changed
+137 -1

No files matched your search

+6 -1
View File
@@ -20,7 +20,6 @@ kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/
```
helm install -n argocd argo-cd argo/argo-cd --create-namespace
// Currently not unused: kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/applicationset/v0.3.0/manifests/install.yaml
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
```
### Cluster
@@ -28,6 +27,12 @@ kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.pas
kubectl apply -f application-cluster-kaisers-info.yaml
```
MISSING: argo cli call to sync applications
kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d
argocd login argo-cd.kaisers.info --grpc-web
ODER
argocd login SERVER-IP --grpc-web
argocd app sync cluster-kaisers-info
```
kubectl apply -f gitops-kaisers-info/templates/argocd-kaisers-info-secrets-sealed.yaml
```
+51
View File
@@ -0,0 +1,51 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: wiki-kaisers-info
namespace: argocd
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: Wiki.js for kaisers.info
clusterResourceWhitelist:
- group: '*'
kind: '*'
destinations:
- name: '*'
namespace: '*'
server: '*'
namespaceResourceWhitelist:
- group: '*'
kind: '*'
sourceRepos:
- '*'
---
apiVersion: v1
kind: Secret
metadata:
name: repo-k8s-kaisers-info
namespace: argocd
labels:
argocd.argoproj.io/secret-type: repository
stringData:
url: https://git.kaisers.info/simonkaiser/k8s-kaisers-info
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wiki-kaisers-info
namespace: argocd
spec:
destination:
name: in-cluster
namespace: argocd
project: wiki-kaisers-info
source:
repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info
path: wiki-kaisers-info
targetRevision: master
syncPolicy:
automated:
prune: true
selfHeal: true
+23
View File
@@ -0,0 +1,23 @@
apiVersion: v2
name: wiki-kaisers-info
description: Applications
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: "0.1.0"
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: wikijs
annotations:
argocd.argoproj.io/sync-wave: "-1"
+38
View File
@@ -0,0 +1,38 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: wordpress
namespace: {{ .Values.spec.namespace }}
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: wordpress
name: {{ .Values.spec.destination.name }}
project: {{ .Values.spec.project }}
syncPolicy:
automated:
prune: true
selfHeal: true
source:
chart: wiki
repoURL: https://charts.js.wiki
targetRevision: 14.3.1
helm:
releaseName: wiki
values: |
ingress:
enabled: true
className: ""
annotations: {}
cert-manager.io/cluster-issuer: "letsencrypt-prod"
hosts:
- host: wiki.kaisers.info
paths:
- path: "/"
pathType: Prefix
tls:
- secretName: "wikijs-kaisers-info-tls"
hosts:
- "wiki.kaisers.info"
+13
View File
@@ -0,0 +1,13 @@
spec:
destination:
name: in-cluster
source:
path: wiki-kaisers-info
repoURL: https://git.kaisers.info/simonkaiser/k8s-kaisers-info.git
targetRevision: master
project: wiki-kaisers-info
namespace: argocd
syncPolicy:
automated:
prune: true
selfHeal: true