mirror of
https://github.com/gwg313/homelab-gitops.git
synced 2026-06-26 08:20:13 +00:00
add linkwarden
Signed-off-by: gwg313 <gwg313@pm.me>
This commit is contained in:
parent
6112c40702
commit
d4f0396eca
16 changed files with 304 additions and 0 deletions
43
linkwarden/postgres-deployment.yml
Normal file
43
linkwarden/postgres-deployment.yml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: postgres
|
||||
namespace: linkwarden
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: postgres
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: postgres
|
||||
spec:
|
||||
securityContext:
|
||||
fsGroup: 999 # PostgreSQL's default GID (postgres group)
|
||||
containers:
|
||||
- name: postgres
|
||||
image: bitnami/postgresql:latest
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
env:
|
||||
- name: POSTGRESQL_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: postgresql-secret-linkwarden
|
||||
key: POSTGRESQL_PASSWORD
|
||||
- name: POSTGRESQL_PERFORM_RESTORE
|
||||
value: "true"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: postgresql-config
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/postgresql/data
|
||||
name: postgres-storage
|
||||
volumes:
|
||||
- name: postgres-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: linkwarden-postgres-pvc
|
||||
securityContext:
|
||||
runAsUser: 999 # Ensure the container runs as the 'postgres' user (UID 999)
|
||||
fsGroup: 999 # Ensure the filesystem group is 'postgres' (GID 999)
|
||||
Loading…
Add table
Add a link
Reference in a new issue