add Pelican panel manifests
This commit is contained in:
20
pelican/configmap.yaml
Normal file
20
pelican/configmap.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: pelican-config
|
||||
namespace: pelican
|
||||
data:
|
||||
APP_NAME: Pelican
|
||||
APP_URL: https://pelican.jsme.be
|
||||
BEHIND_PROXY: "true"
|
||||
ADMIN_EMAIL: jeffreysmeets@jsme.be
|
||||
DB_CONNECTION: pgsql
|
||||
DB_HOST: pelican-postgres
|
||||
DB_PORT: "5432"
|
||||
CACHE_STORE: redis
|
||||
QUEUE_CONNECTION: redis
|
||||
SESSION_DRIVER: redis
|
||||
REDIS_HOST: pelican-redis
|
||||
REDIS_PORT: "6379"
|
||||
XDG_DATA_HOME: /pelican-data
|
||||
AWS_USE_PATH_STYLE_ENDPOINT: "true"
|
||||
12
pelican/data-pvc.yaml
Normal file
12
pelican/data-pvc.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pelican-data-pvc
|
||||
namespace: pelican
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 2Gi
|
||||
57
pelican/deployment.yaml
Normal file
57
pelican/deployment.yaml
Normal file
@@ -0,0 +1,57 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pelican
|
||||
namespace: pelican
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pelican
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pelican
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
securityContext:
|
||||
fsGroup: 82
|
||||
containers:
|
||||
- name: pelican
|
||||
image: ghcr.io/pelican-dev/panel:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 1Gi
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: pelican-config
|
||||
env:
|
||||
- name: DB_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-secrets
|
||||
key: DB_USERNAME
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-secrets
|
||||
key: DB_PASSWORD
|
||||
- name: DB_DATABASE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-secrets
|
||||
key: DB_DATABASE
|
||||
volumeMounts:
|
||||
- name: pelican-data
|
||||
mountPath: /pelican-data
|
||||
volumes:
|
||||
- name: pelican-data
|
||||
persistentVolumeClaim:
|
||||
claimName: pelican-data-pvc
|
||||
12
pelican/postgres-pvc.yaml
Normal file
12
pelican/postgres-pvc.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pelican-postgres-pvc
|
||||
namespace: pelican
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
11
pelican/postgres-svc.yaml
Normal file
11
pelican/postgres-svc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pelican-postgres
|
||||
namespace: pelican
|
||||
spec:
|
||||
selector:
|
||||
app: pelican-postgres
|
||||
ports:
|
||||
- port: 5432
|
||||
targetPort: 5432
|
||||
55
pelican/postgres.yaml
Normal file
55
pelican/postgres.yaml
Normal file
@@ -0,0 +1,55 @@
|
||||
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
|
||||
env:
|
||||
- name: PGDATA
|
||||
value: /var/lib/postgresql/data/pgdata
|
||||
- name: POSTGRES_USER
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-secrets
|
||||
key: DB_USERNAME
|
||||
- name: POSTGRES_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-secrets
|
||||
key: DB_PASSWORD
|
||||
- name: POSTGRES_DB
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-secrets
|
||||
key: DB_DATABASE
|
||||
volumes:
|
||||
- name: pelican-postgres-data
|
||||
persistentVolumeClaim:
|
||||
claimName: pelican-postgres-pvc
|
||||
11
pelican/redis-svc.yaml
Normal file
11
pelican/redis-svc.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pelican-redis
|
||||
namespace: pelican
|
||||
spec:
|
||||
selector:
|
||||
app: pelican-redis
|
||||
ports:
|
||||
- port: 6379
|
||||
targetPort: 6379
|
||||
28
pelican/redis.yaml
Normal file
28
pelican/redis.yaml
Normal file
@@ -0,0 +1,28 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pelican-redis
|
||||
namespace: pelican
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: pelican-redis
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: pelican-redis
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
containers:
|
||||
- name: valkey
|
||||
image: valkey/valkey:8-alpine
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
Reference in New Issue
Block a user