From 1cbbb0ec0ba1839a3b904ecebb8ecde3be9d613f Mon Sep 17 00:00:00 2001 From: Pinghao Wu <xdavidwuph@gmail.com> Date: Sun, 2 Mar 2025 14:32:53 +0800 Subject: [PATCH] sourcehut: migrate paste to flux --- applications/sourcehut/deployment-paste.yaml | 24 ++++++++++++++++++++ applications/sourcehut/kustomization.yaml | 2 ++ applications/sourcehut/service-paste.yaml | 14 ++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 applications/sourcehut/deployment-paste.yaml create mode 100644 applications/sourcehut/service-paste.yaml diff --git a/applications/sourcehut/deployment-paste.yaml b/applications/sourcehut/deployment-paste.yaml new file mode 100644 index 0000000..c040f08 --- /dev/null +++ b/applications/sourcehut/deployment-paste.yaml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: paste +spec: + replicas: 1 + selector: + matchLabels: + component: paste + template: + metadata: + labels: + component: paste + spec: + containers: + - name: main + image: ghcr.io/xdavidwu/c/pastesrht:3534 + volumeMounts: + - name: secrets + mountPath: /etc/sr.ht + volumes: + - name: secrets + secret: + secretName: secrets diff --git a/applications/sourcehut/kustomization.yaml b/applications/sourcehut/kustomization.yaml index 613bed6..f57d128 100644 --- a/applications/sourcehut/kustomization.yaml +++ b/applications/sourcehut/kustomization.yaml @@ -10,3 +10,5 @@ resources: - namespace.yaml - deployment-pages.yaml - service-pages.yaml + - deployment-paste.yaml + - service-paste.yaml diff --git a/applications/sourcehut/service-paste.yaml b/applications/sourcehut/service-paste.yaml new file mode 100644 index 0000000..0e0e5a2 --- /dev/null +++ b/applications/sourcehut/service-paste.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: paste +spec: + selector: + component: paste + ports: + - name: http + protocol: TCP + port: 5011 + - name: api + protocol: TCP + port: 5111 -- 2.45.2