infra/k8s/shlink/shlink.yaml
Finn 01ffa3e40c
All checks were successful
/ build-keycloak (push) Successful in 48s
Pin a bunch of things that were on :latest
2024-10-01 16:05:20 -07:00

46 lines
1,014 B
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: shlink
namespace: shlink
spec:
selector:
matchLabels:
app: shlink
serviceName: shlink
replicas: 1
template:
metadata:
labels:
app: shlink
spec:
securityContext:
fsGroup: 1001
fsGroupChangePolicy: "OnRootMismatch"
containers:
- image: ghcr.io/shlinkio/shlink:4.2.0
name: shlink
resources: {}
ports:
- name: web
containerPort: 8080
env:
- name: DEFAULT_DOMAIN
value: s.janky.bot
- name: IS_HTTPS_ENABLED
value: "true"
- name: DISABLE_TRACKING
value: "true"
- name: RR_NUM_WORKERS
value: "2"
volumeMounts:
- name: storage
mountPath: /etc/shlink/data
volumeClaimTemplates:
- metadata:
name: storage
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi