Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 29d31470ab |
@@ -1,6 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: apps
|
||||
labels:
|
||||
kubernetes.io/metadata.name: apps
|
||||
@@ -1,59 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: bitwarden
|
||||
namespace: security
|
||||
labels:
|
||||
app: bitwarden
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: bitwarden
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: bitwarden
|
||||
spec:
|
||||
containers:
|
||||
- name: bitwarden
|
||||
image: bitwarden/server:latest
|
||||
ports:
|
||||
- containerPort: 80
|
||||
env:
|
||||
- name: SIGNUPS_ALLOWED
|
||||
value: "true"
|
||||
- name: WEBVAULT_ENABLED
|
||||
value: "true"
|
||||
- name: IDENTITY_URL
|
||||
value: "https://bitwarden.khalisio.com"
|
||||
- name: API_URL
|
||||
value: "https://bitwarden.khalisio.com"
|
||||
- name: DATABASE_URL
|
||||
value: "/bitwarden/data/bitwarden.db"
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
volumeMounts:
|
||||
- name: bitwarden-data
|
||||
mountPath: /bitwarden
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 80
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 80
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
volumes:
|
||||
- name: bitwarden-data
|
||||
persistentVolumeClaim:
|
||||
claimName: bitwarden-data
|
||||
@@ -1,26 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: bitwarden
|
||||
namespace: security
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||
traefik.ingress.kubernetes.io/router.tls: "true"
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- bitwarden.khalisio.com
|
||||
secretName: bitwarden-tls
|
||||
rules:
|
||||
- host: bitwarden.khalisio.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: bitwarden
|
||||
port:
|
||||
number: 80
|
||||
@@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: bitwarden-data
|
||||
namespace: security
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
@@ -1,13 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: bitwarden
|
||||
namespace: security
|
||||
spec:
|
||||
selector:
|
||||
app: bitwarden
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
type: ClusterIP
|
||||
@@ -1,7 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: security
|
||||
labels:
|
||||
app.kubernetes.io/name: bitwarden
|
||||
app.kubernetes.io/managed-by: orion
|
||||
@@ -1,7 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: game-servers
|
||||
labels:
|
||||
app.kubernetes.io/name: game-servers
|
||||
app.kubernetes.io/managed-by: orion
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-7d2d
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-7d2d-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-7d2d.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-7d2d-api
|
||||
port: 8081
|
||||
@@ -1,121 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: wings-ark-sa
|
||||
namespace: game-servers
|
||||
labels:
|
||||
app: wings-ark-sa
|
||||
game: ark-sa
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wings-ark-sa
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wings-ark-sa
|
||||
game: ark-sa
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
affinity:
|
||||
podAntiAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
- labelSelector:
|
||||
matchExpressions:
|
||||
- key: game
|
||||
operator: In
|
||||
values: [ark-sa]
|
||||
topologyKey: "kubernetes.io/hostname"
|
||||
volumes:
|
||||
- name: wings-config
|
||||
secret:
|
||||
secretName: wings-ark-sa-config
|
||||
- name: game-data
|
||||
persistentVolumeClaim:
|
||||
claimName: wings-ark-sa-data
|
||||
- name: docker-socket
|
||||
emptyDir: {}
|
||||
- name: autostart-token
|
||||
secret:
|
||||
secretName: pelican-autostart-key
|
||||
containers:
|
||||
- name: dind
|
||||
image: docker:dind
|
||||
args:
|
||||
- "--storage-driver=vfs"
|
||||
- "--iptables=false"
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- name: docker-socket
|
||||
mountPath: /var/run/docker.sock
|
||||
env:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: ""
|
||||
resources:
|
||||
requests:
|
||||
cpu: "500m"
|
||||
memory: "512Mi"
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: "1Gi"
|
||||
- name: wings
|
||||
image: ghcr.io/pelican-dev/wings:latest
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
export DOCKER_HOST=tcp://localhost:2375
|
||||
exec wings
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: wings-ark-sa-config
|
||||
env:
|
||||
- name: DOCKER_HOST
|
||||
value: tcp://localhost:2375
|
||||
- name: WATCHDOG_ENABLED
|
||||
value: "true"
|
||||
volumeMounts:
|
||||
- name: wings-config
|
||||
mountPath: /etc/pterodactyl
|
||||
readOnly: true
|
||||
- name: game-data
|
||||
mountPath: /mnt/server
|
||||
- name: docker-socket
|
||||
mountPath: /var/run/docker.sock
|
||||
resources:
|
||||
requests:
|
||||
cpu: "2"
|
||||
memory: "4Gi"
|
||||
limits:
|
||||
cpu: "4"
|
||||
memory: "8Gi"
|
||||
- name: game-autostart
|
||||
image: curlimages/curl:latest
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
while true; do
|
||||
sleep 60
|
||||
curl -sf -X POST "https://pelican.khalisio.com/api/client/servers/3fd0b08d-7393-4d0f-b11c-bad5e1d1f771/power" \
|
||||
-H "Authorization: Bearer $(cat /etc/secrets/autostart/api_key)" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"signal":"start"}' > /dev/null 2>&1 || true
|
||||
done
|
||||
volumeMounts:
|
||||
- name: autostart-token
|
||||
mountPath: /etc/secrets/autostart
|
||||
readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
cpu: "50m"
|
||||
memory: "64Mi"
|
||||
limits:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
restartPolicy: Always
|
||||
@@ -1,26 +0,0 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: wings-ark-sa-config
|
||||
namespace: game-servers
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: vault
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: wings-ark-sa-config
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: WINGS_UUID
|
||||
remoteRef:
|
||||
key: wings/ark-sa
|
||||
property: uuid
|
||||
- secretKey: WINGS_TOKEN
|
||||
remoteRef:
|
||||
key: wings/ark-sa
|
||||
property: token
|
||||
- secretKey: LOCALE
|
||||
remoteRef:
|
||||
key: wings/ark-sa
|
||||
property: locale
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-ark-sa
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-ark-sa-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-ark-sa.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-ark-sa-api
|
||||
port: 8081
|
||||
@@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: wings-ark-sa-data
|
||||
namespace: game-servers
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 150Gi
|
||||
@@ -1,18 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wings-ark-sa-api
|
||||
namespace: game-servers
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- name: api
|
||||
port: 8081
|
||||
targetPort: 8081
|
||||
protocol: TCP
|
||||
- name: sftp
|
||||
port: 2023
|
||||
targetPort: 2023
|
||||
protocol: TCP
|
||||
selector:
|
||||
app: wings-ark-sa
|
||||
@@ -1,25 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wings-ark-sa-game
|
||||
namespace: game-servers
|
||||
annotations:
|
||||
metallb.universe.tf/address-pool: default-lb-pool
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
loadBalancerIP: 10.4.4.200
|
||||
ports:
|
||||
- name: ark-game
|
||||
port: 7777
|
||||
protocol: UDP
|
||||
targetPort: 7777
|
||||
- name: ark-query
|
||||
port: 27015
|
||||
protocol: UDP
|
||||
targetPort: 27015
|
||||
- name: ark-tcp
|
||||
port: 27016
|
||||
protocol: TCP
|
||||
targetPort: 27016
|
||||
selector:
|
||||
app: wings-ark-sa
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-enshrouded
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-enshrouded-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-enshrouded.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-enshrouded-api
|
||||
port: 8081
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-moria
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-moria-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-moria.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-moria-api
|
||||
port: 8081
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-palworld
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-palworld-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-palworld.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-palworld-api
|
||||
port: 8081
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-satisfactory
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-satisfactory-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-satisfactory.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-satisfactory-api
|
||||
port: 8081
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-sotf
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-sotf-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-sotf.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-sotf-api
|
||||
port: 8081
|
||||
@@ -1,118 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: wings-valheim
|
||||
namespace: game-servers
|
||||
labels:
|
||||
app.kubernetes.io/name: wings
|
||||
app.kubernetes.io/component: game-server
|
||||
app.kubernetes.io/part-of: pelican
|
||||
game: valheim
|
||||
spec:
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wings-valheim
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wings-valheim
|
||||
game: valheim
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
containers:
|
||||
- name: wings
|
||||
image: ghcr.io/pelican-dev/wings:latest
|
||||
env:
|
||||
- name: DOCKER_HOST
|
||||
value: tcp://localhost:2375
|
||||
- name: WINGS_UID
|
||||
value: "1000"
|
||||
- name: WINGS_GID
|
||||
value: "1000"
|
||||
- name: WINGS_PORT
|
||||
value: "8081"
|
||||
- name: WINGS_API_SFTP_PORT
|
||||
value: "2023"
|
||||
- name: WINGS_SERVER_UUID
|
||||
value: "9d09e83d-00c3-4404-07c0522a6c25"
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: wings-valheim-config
|
||||
volumeMounts:
|
||||
- name: docker-socket
|
||||
mountPath: /var/run/docker.sock
|
||||
- name: wings-data
|
||||
mountPath: /var/lib/wings
|
||||
- name: server-data
|
||||
mountPath: /mnt/server
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /ready
|
||||
port: 8081
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: 8081
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 30
|
||||
- name: dind
|
||||
image: docker:24-dind
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: ""
|
||||
volumeMounts:
|
||||
- name: docker-socket
|
||||
mountPath: /var/run
|
||||
- name: dind-storage
|
||||
mountPath: /var/lib/docker
|
||||
readinessProbe:
|
||||
exec:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- '[ -S /var/run/docker.sock ]'
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
- name: game-autostart
|
||||
image: curlimages/curl:latest
|
||||
env:
|
||||
- name: PELICAN_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-autostart-key
|
||||
key: api_key
|
||||
- name: SERVER_UUID
|
||||
value: "9d09e83d-00c3-4404-07c0522a6c25"
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting for Wings API to be ready..."
|
||||
while ! curl -sf http://localhost:8081/ready; do
|
||||
sleep 2
|
||||
done
|
||||
echo "Wings ready. Starting game server..."
|
||||
while true; do
|
||||
sleep 60
|
||||
echo "Checking game server status..."
|
||||
done
|
||||
volumeMounts:
|
||||
- name: server-data
|
||||
mountPath: /mnt/server
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
emptyDir: {}
|
||||
- name: dind-storage
|
||||
emptyDir: {}
|
||||
- name: wings-data
|
||||
emptyDir: {}
|
||||
- name: server-data
|
||||
persistentVolumeClaim:
|
||||
claimName: wings-valheim-data
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-valheim
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-valheim-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-valheim.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-valheim-api
|
||||
port: 8081
|
||||
@@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: media-data
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 500Gi
|
||||
@@ -5,7 +5,7 @@ metadata:
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- ReadWriteMany
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pelican-data
|
||||
namespace: pelican
|
||||
name: readarr-config
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 20Gi
|
||||
storage: 2Gi
|
||||
storageClassName: longhorn
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pelican-logs
|
||||
namespace: pelican
|
||||
name: readarr-books
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
storage: 2Gi
|
||||
storageClassName: longhorn
|
||||
@@ -0,0 +1,56 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: readarr
|
||||
namespace: media
|
||||
labels:
|
||||
app: readarr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: readarr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: readarr
|
||||
spec:
|
||||
containers:
|
||||
- name: readarr
|
||||
image: ghcr.io/readarr/readarr:develop
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 8787
|
||||
name: http
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: Etc/UTC
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /config
|
||||
- name: media-data
|
||||
mountPath: /media
|
||||
- name: books
|
||||
mountPath: /books
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: readarr-config
|
||||
- name: media-data
|
||||
persistentVolumeClaim:
|
||||
claimName: media-data
|
||||
- name: books
|
||||
persistentVolumeClaim:
|
||||
claimName: readarr-books
|
||||
@@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: readarr
|
||||
namespace: media
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
spec:
|
||||
tls:
|
||||
- hosts:
|
||||
- readarr.khalisio.com
|
||||
secretName: readarr-tls
|
||||
rules:
|
||||
- host: readarr.khalisio.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: readarr
|
||||
port:
|
||||
name: http
|
||||
@@ -0,0 +1,14 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: readarr
|
||||
namespace: media
|
||||
spec:
|
||||
selector:
|
||||
app: readarr
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 8787
|
||||
targetPort: 8787
|
||||
type: ClusterIP
|
||||
@@ -1,107 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: pelican-panel
|
||||
namespace: pelican
|
||||
labels:
|
||||
app.kubernetes.io/name: pelican
|
||||
app.kubernetes.io/component: panel
|
||||
app.kubernetes.io/managed-by: orion
|
||||
spec:
|
||||
replicas: 2
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: pelican
|
||||
app.kubernetes.io/component: panel
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: pelican
|
||||
app.kubernetes.io/component: panel
|
||||
spec:
|
||||
containers:
|
||||
- name: panel
|
||||
image: ghcr.io/pelican-dev/panel:latest
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: APP_ENV
|
||||
value: production
|
||||
- name: APP_NAME
|
||||
value: "Pelican"
|
||||
- name: APP_URL
|
||||
value: "https://pelican.khalisio.com"
|
||||
- name: DB_HOST
|
||||
value: postgres.pelican.svc.cluster.local
|
||||
- name: DB_PORT
|
||||
value: "5432"
|
||||
- name: DB_DATABASE
|
||||
value: pelican
|
||||
- name: DB_USERNAME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-panel-db
|
||||
key: DB_USER
|
||||
- name: DB_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-panel-db
|
||||
key: DB_PASSWORD
|
||||
- name: APP_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-panel-app
|
||||
key: APP_KEY
|
||||
- name: SESSION_SECURE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-panel-app
|
||||
key: SESSION_SECURE
|
||||
- name: OAUTH_CLIENT_SECRET
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pelican-panel-app
|
||||
key: OAUTH_CLIENT_SECRET
|
||||
- name: OAUTH_CLIENT_ID
|
||||
value: pelican-panel
|
||||
- name: OAUTH_BASE_URI
|
||||
value: "https://pelican.khalisio.com"
|
||||
- name: OAUTH_AUTH_SERVER_URI
|
||||
value: "https://auth.khalisio.com"
|
||||
- name: OAUTH_CLIENT_PORTAL_URI
|
||||
value: "https://auth.khalisio.com"
|
||||
- name: OAUTH_CLIENT_ADMIN_URI
|
||||
value: "https://auth.khalisio.com"
|
||||
- name: CACHE_DRIVER
|
||||
value: file
|
||||
- name: SESSION_DRIVER
|
||||
value: file
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/www/app/storage
|
||||
- name: logs
|
||||
mountPath: /var/www/app/storage/logs
|
||||
- name: uploads
|
||||
mountPath: /var/www/app/public/uploads
|
||||
- name: pufferpanel
|
||||
mountPath: /var/www/app/storage/pufferpanel
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: pelican-data
|
||||
- name: logs
|
||||
persistentVolumeClaim:
|
||||
claimName: pelican-logs
|
||||
- name: uploads
|
||||
persistentVolumeClaim:
|
||||
claimName: pelican-data
|
||||
- name: pufferpanel
|
||||
persistentVolumeClaim:
|
||||
claimName: pelican-data
|
||||
@@ -1,23 +0,0 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: pelican-panel-app
|
||||
namespace: pelican
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
target:
|
||||
name: pelican-panel-app
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: APP_KEY
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/pelican/panel/app
|
||||
property: APP_KEY
|
||||
- secretKey: SESSION_SECURE
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/pelican/panel/app
|
||||
property: SESSION_SECURE
|
||||
- secretKey: OAUTH_CLIENT_SECRET
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/pelican/panel/app
|
||||
property: OAUTH_CLIENT_SECRET
|
||||
@@ -1,15 +0,0 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: pelican-autostart-key
|
||||
namespace: pelican
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
target:
|
||||
name: pelican-autostart-key
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: api_key
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/pelican/panel/autostart
|
||||
property: api_key
|
||||
@@ -1,19 +0,0 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: pelican-panel-db
|
||||
namespace: pelican
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
target:
|
||||
name: pelican-panel-db
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: DB_PASSWORD
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/pelican/panel/db
|
||||
property: DB_PASSWORD
|
||||
- secretKey: DB_USER
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/pelican/panel/db
|
||||
property: DB_USER
|
||||
@@ -1,19 +0,0 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: pelican-panel
|
||||
namespace: pelican
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: pelican-panel-tls
|
||||
routes:
|
||||
- match: Host(`pelican.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: pelican-panel
|
||||
port: 80
|
||||
scheme: http
|
||||
@@ -1,7 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: pelican
|
||||
labels:
|
||||
app.kubernetes.io/name: pelican
|
||||
app.kubernetes.io/managed-by: orion
|
||||
@@ -1,18 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pelican-panel
|
||||
namespace: pelican
|
||||
labels:
|
||||
app.kubernetes.io/name: pelican
|
||||
app.kubernetes.io/component: panel
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app.kubernetes.io/name: pelican
|
||||
app.kubernetes.io/component: panel
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user