gitops-zurrli/apps/zurrli/baserow/statefulset.yaml

53 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: StatefulSet
metadata:
name: baserow
labels:
app: baserow
spec:
serviceName: baserow
# Do not scale up
replicas: 1
selector:
matchLabels:
app: baserow
template:
metadata:
labels:
app: baserow
spec:
securityContext:
fsGroup: 10001
containers:
- name: baserow
image: docker.io/baserow/baserow:1.23.2
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
ports:
- containerPort: 80
env:
- name: BASEROW_PUBLIC_URL
value: "https://baserow.tbrnt.ch"
envFrom:
- secretRef:
name: baserow
volumeMounts:
- mountPath: /baserow/data
name: baserow-data
resources:
requests:
memory: 100Mi
cpu: 100m
limits:
cpu: 1000m
volumeClaimTemplates:
- metadata:
name: baserow-data
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 10Gi