~xdavidwu/flux

aeb2e3435fafe5543560705ac4dff589167a2962 — Pinghao Wu a month ago e957d21
applications: sourcehut: move pages to flux
A applications/sourcehut/deployment-pages.yaml => applications/sourcehut/deployment-pages.yaml +34 -0
@@ 0,0 1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
  name: pages
spec:
  replicas: 1
  selector:
    matchLabels:
      component: pages
  template:
    metadata:
      labels:
        component: pages
    spec:
      containers:
        - name: main
          image: ghcr.io/xdavidwu/c/pagessrht:3533
          volumeMounts:
            - name: secrets
              mountPath: /etc/sr.ht
            - name: data
              mountPath: /srv/pagessrht
      volumes:
        - name: secrets
          secret:
            secretName: secrets
        - name: data
          cephfs:
            monitors:
              - 10.0.3.1:6789
            path: /volumes/_nogroup/pagessrht/c320a1a7-7857-4131-8ea0-2a0646c3113a
            user: pagessrht
            secretRef:
              name: ceph-pages

A applications/sourcehut/kustomization.yaml => applications/sourcehut/kustomization.yaml +12 -0
@@ 0,0 1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: sourcehut
labels:
  - pairs:
      app: sourcehut
    includeTemplates: true
    includeSelectors: true
resources:
  - namespace.yaml
  - deployment-pages.yaml
  - service-pages.yaml

A applications/sourcehut/namespace.yaml => applications/sourcehut/namespace.yaml +7 -0
@@ 0,0 1,7 @@
apiVersion: v1
kind: Namespace
metadata:
  creationTimestamp: null
  name: sourcehut
spec: {}
status: {}

A applications/sourcehut/service-pages.yaml => applications/sourcehut/service-pages.yaml +17 -0
@@ 0,0 1,17 @@
apiVersion: v1
kind: Service
metadata:
  name: pages
spec:
  selector:
    component: pages
  ports:
    - name: api
      protocol: TCP
      port: 5112
    - name: http
      protocol: TCP
      port: 5012
    - name: gemini
      protocol: TCP
      port: 1965