Kubernetes.K3s.installLog/services/Pterodactyl/deployment-pterodactyl.yaml

87 lines
2.4 KiB
YAML
Raw Normal View History

2025-06-07 13:21:56 +10:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: pterodactyl
namespace: pterodactyl
labels:
app: pterodactyl
spec:
replicas: 1
selector:
matchLabels:
app: pterodactyl
template:
metadata:
labels:
app: pterodactyl
spec:
containers:
- name: app
image: ghcr.io/pterodactyl/panel:latest
imagePullPolicy: Always
env:
- name: APP_URL
value: https://games.spamasaurus.com
- name: DB_HOST
value: pterodactyl.pterodactyl.svc.cluster.local
- name: DB_PORT
value: '3306'
- name: REDIS_HOST
value: pterodactyl.pterodactyl.svc.cluster.local
envFrom:
- secretRef:
name: pterodactyl-db-secret
ports:
- name: web
containerPort: 80
volumeMounts:
- mountPath: /app/var
name: flexvolsmb-pterodactyl-data
- mountPath: /etc/nginx/http.d/
name: flexvolsmb-pterodactyl-proxy
- mountPath: /app/storage/logs
name: flexvolsmb-pterodactyl-logs
- name: db
image: mariadb:10.5
args:
- --default-authentication-plugin=mysql_native_password
env:
- name: MYSQL_DATABASE
value: panel
- name: MYSQL_USER
value: pterodactyl
envFrom:
- secretRef:
name: pterodactyl-db-secret
volumeMounts:
- name: flexvolsmb-pterodactyl-db
mountPath: var/lib/mysql
ports:
- name: db
containerPort: 3306
# livenessProbe:
# exec:
# command: ["pg_isready" ,"-U" ,"$POSTGRES_USER", "-d" ,"$POSTGRES_DATABASE"]
- name: redis
image: redis:alpine
ports:
- name: redis
containerPort: 6379
# volumeMounts:
# - name: flexvolsmb-pterodactyl-redis
# mountPath: /data
volumes:
- name: flexvolsmb-pterodactyl-data
persistentVolumeClaim:
claimName: flexvolsmb-pterodactyl-data
- name: flexvolsmb-pterodactyl-proxy
persistentVolumeClaim:
claimName: flexvolsmb-pterodactyl-proxy
- name: flexvolsmb-pterodactyl-db
persistentVolumeClaim:
claimName: flexvolsmb-pterodactyl-db
- name: flexvolsmb-pterodactyl-logs
persistentVolumeClaim:
claimName: flexvolsmb-pterodactyl-logs