From 70e589ef45dcd0f2abe71a8394213ac209e1e450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Wed, 14 Aug 2024 06:58:28 +0300 Subject: [PATCH] etherpad: Cleanup --- etherpad/README.md | 13 ++++++++++++- etherpad/application.yml | 30 ++++++++++++++++-------------- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/etherpad/README.md b/etherpad/README.md index c1a60cf..b7464d1 100644 --- a/etherpad/README.md +++ b/etherpad/README.md @@ -1,4 +1,15 @@ -To apply changes: +# Etherpad namespace + +# For users + +Etherpad is a simple publicly available application for taking notes +running at [pad.k-space.ee](https://pad.k-space.ee/) + +# For administrators + +This application is managed by [ArgoCD](https://argocd.k-space.ee/applications/argocd/etherpad) + +In case ArgoCD is broken you can manually deploy changes with: ``` kubectl apply -n etherpad -f application.yml diff --git a/etherpad/application.yml b/etherpad/application.yml index 87d3853..f7bfe6f 100644 --- a/etherpad/application.yml +++ b/etherpad/application.yml @@ -3,6 +3,7 @@ apiVersion: codemowers.io/v1alpha1 kind: OIDCGWMiddlewareClient metadata: name: sso + namespace: etherpad spec: displayName: Etherpad uri: 'https://pad.k-space.ee/' @@ -15,6 +16,7 @@ metadata: spec: # Etherpad does NOT support running multiple replicas due to # in-application caching https://github.com/ether/etherpad-lite/issues/3680 + revisionHistoryLimit: 0 replicas: 1 serviceName: etherpad selector: @@ -75,8 +77,8 @@ spec: selector: app: etherpad ports: - - protocol: TCP - port: 9001 + - protocol: TCP + port: 9001 --- apiVersion: networking.k8s.io/v1 kind: Ingress @@ -90,19 +92,19 @@ metadata: external-dns.alpha.kubernetes.io/target: traefik.k-space.ee spec: rules: - - host: pad.k-space.ee - http: - paths: - - pathType: Prefix - path: "/" - backend: - service: - name: etherpad - port: - number: 9001 + - host: pad.k-space.ee + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: etherpad + port: + number: 9001 tls: - - hosts: - - "*.k-space.ee" + - hosts: + - "*.k-space.ee" --- apiVersion: networking.k8s.io/v1 kind: NetworkPolicy