1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- ---
- apiVersion: v1
- kind: Namespace
- metadata:
- name: selfoss
- ---
- apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: selfoss-pvc
- namespace: selfoss
- labels:
- app: selfoss
- spec:
- storageClassName: ceph-block
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 2Gi
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: selfoss
- namespace: selfoss
- spec:
- strategy:
- type: Recreate
- selector:
- matchLabels:
- app: selfoss
- replicas: 1
- template:
- metadata:
- labels:
- app: selfoss
- spec:
- containers:
- - name: selfoss
- image: jibby0/selfoss:2.18
- ports:
- - containerPort: 8888
- name: http-web-svc
- volumeMounts:
- - mountPath: "/selfoss/data"
- name: data
- env:
- - name: CRON_PERIOD
- value: 5m
- livenessProbe:
- httpGet:
- path: /
- port: 8888
- failureThreshold: 10
- initialDelaySeconds: 30
- periodSeconds: 10
- volumes:
- - name: data
- persistentVolumeClaim:
- claimName: selfoss-pvc
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: selfoss-service
- namespace: selfoss
- spec:
- selector:
- app: selfoss
- type: ClusterIP
- ports:
- - name: selfoss-web-port
- protocol: TCP
- port: 8888
- targetPort: http-web-svc
- ---
- apiVersion: traefik.containo.us/v1alpha1
- kind: IngressRoute
- metadata:
- name: selfoss
- namespace: selfoss
- spec:
- entryPoints:
- - websecure
- routes:
- - kind: Rule
- match: Host(`selfoss.jibby.org`)
- services:
- - kind: Service
- name: selfoss-service
- port: 8888
|