pelican: migrate to envFrom with per-container InfisicalSecrets
Folds the pelican-config ConfigMap into Infisical so the container has a single envFrom. Pins imagePullPolicy to IfNotPresent because ghcr.io/pelican-dev/panel no longer allows anonymous pulls.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: pelican-postgres
|
||||
namespace: pelican
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pelican-postgres
|
||||
serviceName: pelican-postgres
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pelican-postgres
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 60
|
||||
containers:
|
||||
- name: postgres
|
||||
image: postgres:17-alpine
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
volumeMounts:
|
||||
- name: pelican-postgres-data
|
||||
mountPath: /var/lib/postgresql/data
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: pelican-postgres-secrets
|
||||
volumes:
|
||||
- name: pelican-postgres-data
|
||||
persistentVolumeClaim:
|
||||
claimName: pelican-postgres-pvc
|
||||
Reference in New Issue
Block a user