From 6bb09b836103756d2cbc46ff2318b8b70a97f9df Mon Sep 17 00:00:00 2001 From: Eduardo Cuducos <4732915+cuducos@users.noreply.github.com> Date: Fri, 26 Jun 2026 22:51:46 -0400 Subject: [PATCH] Deploys PDS --- README.md | 2 +- apps/cloudflared/configmap.yaml | 2 ++ apps/pds/README.md | 15 +++++++++++++++ apps/pds/deployment.yaml | 33 +++++++++++++++++++++++++++++++++ apps/pds/namespace.yaml | 4 ++++ apps/pds/service.yaml | 12 ++++++++++++ 6 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 apps/pds/README.md create mode 100644 apps/pds/deployment.yaml create mode 100644 apps/pds/namespace.yaml create mode 100644 apps/pds/service.yaml diff --git a/README.md b/README.md index 29fc52e..afb4431 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ This is my Kubernetes setup to run a dozen things on it: - A [Navidrome](https://www.navidrome.org/) instance +- [`pds.minhareceita.org`](https://pds.minhareceita.org) - [`cloudflared`](https://github.com/cloudflare/cloudflared) to expose some of the above publicly Things running there that I need to migrate to this setup: @@ -16,6 +17,5 @@ Things running there that I need to migrate to this setup: - A [Nextcloud]() instance - [`repobirth.day`](https://repobirth.day) - A [Redlib](https://github.com/redlib-org/redlib) instance -- [`pds.minhareceita.org`](https://pds.minhareceita.org) - A [MailHog](https://github.com/mailhog/MailHog) instance - A [Pi-hole](https://pi-hole.net/) instance diff --git a/apps/cloudflared/configmap.yaml b/apps/cloudflared/configmap.yaml index 3116c9f..21afd86 100644 --- a/apps/cloudflared/configmap.yaml +++ b/apps/cloudflared/configmap.yaml @@ -6,6 +6,8 @@ metadata: data: config.yaml: | ingress: + - hostname: pds.minhareceita.org + service: http://pds.pds.svc.cluster.local:2583 - hostname: music.cuducos.me service: http://navidrome.navidrome.svc.cluster.local:4533 - service: http_status:404 diff --git a/apps/pds/README.md b/apps/pds/README.md new file mode 100644 index 0000000..f3ac641 --- /dev/null +++ b/apps/pds/README.md @@ -0,0 +1,15 @@ +# Bluesky PDS + +Deploy to the cluster: + +```bash +kubectl apply -f apps/pds/ +``` + +One-off secret creation from host `.env`: + +```bash +kubectl create secret generic pds-env \ + --namespace=pds \ + --from-env-file=/etc/pop0/pds/.env +``` diff --git a/apps/pds/deployment.yaml b/apps/pds/deployment.yaml new file mode 100644 index 0000000..a4050f3 --- /dev/null +++ b/apps/pds/deployment.yaml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: pds + namespace: pds +spec: + replicas: 1 + selector: + matchLabels: + app: pds + template: + metadata: + labels: + app: pds + spec: + nodeSelector: + kubernetes.io/hostname: tmpop + containers: + - name: pds + image: ghcr.io/bluesky-social/pds:0.4 + ports: + - containerPort: 2583 + envFrom: + - secretRef: + name: pds-env + volumeMounts: + - name: data + mountPath: /pds + volumes: + - name: data + hostPath: + path: /etc/pop0/pds/data + type: Directory diff --git a/apps/pds/namespace.yaml b/apps/pds/namespace.yaml new file mode 100644 index 0000000..e276fd0 --- /dev/null +++ b/apps/pds/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: pds diff --git a/apps/pds/service.yaml b/apps/pds/service.yaml new file mode 100644 index 0000000..314d6b2 --- /dev/null +++ b/apps/pds/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: pds + namespace: pds +spec: + selector: + app: pds + ports: + - protocol: TCP + port: 2583 + targetPort: 2583 -- knotmirror 0.0.1