Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 81c25c3cff | |||
| 180af608af | |||
| b4c52bfebf | |||
| bb3ce2849a | |||
| 2a0a5244af | |||
| 5788ebd360 | |||
| 6c951c9420 |
@@ -3,8 +3,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: excalidraw
|
name: excalidraw
|
||||||
namespace: apps
|
namespace: apps
|
||||||
labels:
|
|
||||||
app: excalidraw
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
|
|||||||
@@ -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,50 +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:1.30.1
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
env:
|
|
||||||
- name: WEBSOCKET_ENABLED
|
|
||||||
value: "true"
|
|
||||||
- name: SIGNUPS_ALLOWED
|
|
||||||
value: "true"
|
|
||||||
- name: ADMIN_TOKEN
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: bitwarden-secret
|
|
||||||
key: admin-token
|
|
||||||
- name: DB_CERT_FORMAT
|
|
||||||
value: "pem"
|
|
||||||
- name: SIGNUP_ORIGINS
|
|
||||||
value: "https://bitwarden.khalisio.com"
|
|
||||||
volumeMounts:
|
|
||||||
- name: bitwarden-data
|
|
||||||
mountPath: /data
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
limits:
|
|
||||||
cpu: 500m
|
|
||||||
memory: 512Mi
|
|
||||||
volumes:
|
|
||||||
- name: bitwarden-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: bitwarden-data
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
|
||||||
kind: IngressRoute
|
|
||||||
metadata:
|
|
||||||
name: bitwarden
|
|
||||||
namespace: security
|
|
||||||
annotations:
|
|
||||||
kubernetes.io/ingress.class: traefik
|
|
||||||
spec:
|
|
||||||
entryPoints:
|
|
||||||
- websecure
|
|
||||||
routes:
|
|
||||||
- match: Host(`bitwarden.khalisio.com`)
|
|
||||||
kind: Rule
|
|
||||||
services:
|
|
||||||
- name: bitwarden
|
|
||||||
port: 80
|
|
||||||
tls:
|
|
||||||
secretName: bitwarden-tls
|
|
||||||
options:
|
|
||||||
name: default
|
|
||||||
kind: ClusterEntrypoint
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: security
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: bitwarden
|
|
||||||
app.kubernetes.io/managed-by: orion
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: bitwarden-data
|
|
||||||
namespace: security
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: bitwarden
|
|
||||||
namespace: security
|
|
||||||
labels:
|
|
||||||
app: bitwarden
|
|
||||||
spec:
|
|
||||||
type: ClusterIP
|
|
||||||
ports:
|
|
||||||
- port: 80
|
|
||||||
targetPort: 80
|
|
||||||
protocol: TCP
|
|
||||||
selector:
|
|
||||||
app: bitwarden
|
|
||||||
@@ -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,25 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: bazarr-config
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 2Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: bazarr-podcasts
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 2Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
@@ -3,8 +3,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: bazarr
|
name: bazarr
|
||||||
namespace: media
|
namespace: media
|
||||||
labels:
|
|
||||||
app: bazarr
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -26,26 +24,21 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: UTC
|
value: "America/New_York"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: tv
|
- name: media
|
||||||
mountPath: /tv
|
mountPath: /media
|
||||||
- name: movies
|
|
||||||
mountPath: /movies
|
|
||||||
- name: podcasts
|
- name: podcasts
|
||||||
mountPath: /podcasts
|
mountPath: /podcasts
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: bazarr-config
|
claimName: bazarr-config
|
||||||
- name: tv
|
- name: media
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: sonarr-downloads
|
claimName: media-data
|
||||||
- name: movies
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: radarr-downloads
|
|
||||||
- name: podcasts
|
- name: podcasts
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: bazarr-podcasts
|
claimName: bazarr-podcasts
|
||||||
@@ -5,7 +5,6 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
@@ -21,4 +20,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: bazarr
|
name: bazarr
|
||||||
port:
|
port:
|
||||||
name: http
|
number: 6767
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
- websecure
|
||||||
@@ -7,8 +7,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: bazarr
|
app: bazarr
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- port: 6767
|
||||||
protocol: TCP
|
|
||||||
port: 6767
|
|
||||||
targetPort: 6767
|
targetPort: 6767
|
||||||
|
protocol: TCP
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: emby-config
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 10Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
@@ -3,8 +3,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: emby
|
name: emby
|
||||||
namespace: media
|
namespace: media
|
||||||
labels:
|
|
||||||
app: emby
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -27,7 +25,7 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: UTC
|
value: "America/New_York"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
@@ -21,4 +20,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: emby
|
name: emby
|
||||||
port:
|
port:
|
||||||
name: http
|
number: 8096
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
- websecure
|
||||||
@@ -7,12 +7,10 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: emby
|
app: emby
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- port: 8096
|
||||||
protocol: TCP
|
|
||||||
port: 8096
|
|
||||||
targetPort: 8096
|
targetPort: 8096
|
||||||
- name: https
|
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
port: 8920
|
- port: 8920
|
||||||
targetPort: 8920
|
targetPort: 8920
|
||||||
|
protocol: TCP
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: lidarr-config
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: lidarr-downloads
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 50Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
@@ -3,8 +3,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: lidarr
|
name: lidarr
|
||||||
namespace: media
|
namespace: media
|
||||||
labels:
|
|
||||||
app: lidarr
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -26,19 +24,19 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: UTC
|
value: "America/New_York"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: music
|
- name: media
|
||||||
mountPath: /music
|
mountPath: /media
|
||||||
- name: downloads
|
- name: downloads
|
||||||
mountPath: /downloads
|
mountPath: /downloads
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: lidarr-config
|
claimName: lidarr-config
|
||||||
- name: music
|
- name: media
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: media-data
|
claimName: media-data
|
||||||
- name: downloads
|
- name: downloads
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
@@ -21,4 +20,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: lidarr
|
name: lidarr
|
||||||
port:
|
port:
|
||||||
name: http
|
number: 8686
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
- websecure
|
||||||
@@ -7,8 +7,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: lidarr
|
app: lidarr
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- port: 8686
|
||||||
protocol: TCP
|
|
||||||
port: 8686
|
|
||||||
targetPort: 8686
|
targetPort: 8686
|
||||||
|
protocol: TCP
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: media-data
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteMany
|
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 500Gi
|
|
||||||
@@ -5,8 +5,8 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteMany
|
||||||
storageClassName: longhorn
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 500Gi
|
storage: 500Gi
|
||||||
|
storageClassName: longhorn
|
||||||
@@ -3,4 +3,4 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: media
|
name: media
|
||||||
labels:
|
labels:
|
||||||
name: media
|
app.kubernetes.io/managed-by: orion
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: prowlarr-config
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 2Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
@@ -3,8 +3,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: prowlarr
|
name: prowlarr
|
||||||
namespace: media
|
namespace: media
|
||||||
labels:
|
|
||||||
app: prowlarr
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -26,7 +24,7 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: UTC
|
value: "America/New_York"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
@@ -21,4 +20,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: prowlarr
|
name: prowlarr
|
||||||
port:
|
port:
|
||||||
name: http
|
number: 9696
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
- websecure
|
||||||
@@ -7,8 +7,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: prowlarr
|
app: prowlarr
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- port: 9696
|
||||||
protocol: TCP
|
|
||||||
port: 9696
|
|
||||||
targetPort: 9696
|
targetPort: 9696
|
||||||
|
protocol: TCP
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: radarr-config
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: radarr-downloads
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 50Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
@@ -3,8 +3,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: radarr
|
name: radarr
|
||||||
namespace: media
|
namespace: media
|
||||||
labels:
|
|
||||||
app: radarr
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -26,19 +24,19 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: UTC
|
value: "America/New_York"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: movies
|
- name: media
|
||||||
mountPath: /movies
|
mountPath: /media
|
||||||
- name: downloads
|
- name: downloads
|
||||||
mountPath: /downloads
|
mountPath: /downloads
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: radarr-config
|
claimName: radarr-config
|
||||||
- name: movies
|
- name: media
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: media-data
|
claimName: media-data
|
||||||
- name: downloads
|
- name: downloads
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
@@ -21,4 +20,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: radarr
|
name: radarr
|
||||||
port:
|
port:
|
||||||
name: http
|
number: 7878
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
- websecure
|
||||||
@@ -7,8 +7,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: radarr
|
app: radarr
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- port: 7878
|
||||||
protocol: TCP
|
|
||||||
port: 7878
|
|
||||||
targetPort: 7878
|
targetPort: 7878
|
||||||
|
protocol: TCP
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: readarr
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: readarr
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: readarr
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: readarr
|
||||||
|
image: lscr.io/linuxserver/readarr:develop
|
||||||
|
ports:
|
||||||
|
- containerPort: 8787
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: "America/New_York"
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: books
|
||||||
|
mountPath: /books
|
||||||
|
- name: downloads
|
||||||
|
mountPath: /downloads
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: readarr-config
|
||||||
|
- name: books
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: readarr-books
|
||||||
|
- name: downloads
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: readarr-downloads
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: readarr
|
||||||
|
namespace: media
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- readarr.khalisio.com
|
||||||
|
secretName: readarr-tls
|
||||||
|
rules:
|
||||||
|
- host: readarr.khalisio.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: readarr
|
||||||
|
port:
|
||||||
|
number: 8787
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
- websecure
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: readarr
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: readarr
|
||||||
|
ports:
|
||||||
|
- port: 8787
|
||||||
|
targetPort: 8787
|
||||||
|
protocol: TCP
|
||||||
|
type: ClusterIP
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: sonarr-config
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: sonarr-downloads
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 50Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
@@ -3,15 +3,11 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: sonarr
|
name: sonarr
|
||||||
namespace: media
|
namespace: media
|
||||||
labels:
|
|
||||||
app: sonarr
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: sonarr
|
app: sonarr
|
||||||
strategy:
|
|
||||||
type: Recreate
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -19,38 +15,30 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sonarr
|
- name: sonarr
|
||||||
image: lscr.io/linuxserver/sonarr:latest
|
image: lscr.io/linuxserver/sonarr:develop
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8989
|
- containerPort: 8989
|
||||||
name: http
|
|
||||||
env:
|
env:
|
||||||
- name: PUID
|
- name: PUID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: Etc/UTC
|
value: "America/New_York"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
- name: media
|
||||||
|
mountPath: /media
|
||||||
- name: downloads
|
- name: downloads
|
||||||
mountPath: /downloads
|
mountPath: /downloads
|
||||||
- name: media-data
|
|
||||||
mountPath: /media
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 256Mi
|
|
||||||
limits:
|
|
||||||
cpu: 500m
|
|
||||||
memory: 512Mi
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: sonarr-config
|
claimName: sonarr-config
|
||||||
|
- name: media
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: media-data
|
||||||
- name: downloads
|
- name: downloads
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: sonarr-downloads
|
claimName: sonarr-downloads
|
||||||
- name: media-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: media-data
|
|
||||||
@@ -5,7 +5,6 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
|
||||||
spec:
|
spec:
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
@@ -21,4 +20,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: sonarr
|
name: sonarr
|
||||||
port:
|
port:
|
||||||
name: http
|
number: 8989
|
||||||
|
entryPoints:
|
||||||
|
- web
|
||||||
|
- websecure
|
||||||
@@ -7,8 +7,7 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: sonarr
|
app: sonarr
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- port: 8989
|
||||||
protocol: TCP
|
|
||||||
port: 8989
|
|
||||||
targetPort: 8989
|
targetPort: 8989
|
||||||
|
protocol: TCP
|
||||||
type: ClusterIP
|
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
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: pelican-data
|
|
||||||
namespace: pelican
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 20Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
name: pelican-logs
|
|
||||||
namespace: pelican
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
storageClassName: longhorn
|
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: tailscale-auth
|
||||||
|
namespace: tailscale
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: orion-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: tailscale-auth
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: TS_AUTH_KEY
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/tailscale
|
||||||
|
property: TS_AUTH_KEY
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: tailscale
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRole
|
||||||
|
metadata:
|
||||||
|
name: tailscale-operator
|
||||||
|
rules:
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources: ["secrets", "configmaps", "services", "pods", "endpoints"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
|
- apiGroups: ["apps"]
|
||||||
|
resources: ["deployments", "statefulsets", "daemonsets"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
|
- apiGroups: ["networking.k8s.io"]
|
||||||
|
resources: ["ingresses"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
|
- apiGroups: ["tailscale.com"]
|
||||||
|
resources: ["*"]
|
||||||
|
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||||||
|
kind: ClusterRoleBinding
|
||||||
|
metadata:
|
||||||
|
name: tailscale-operator
|
||||||
|
roleRef:
|
||||||
|
apiGroup: rbac.authorization.k8s.io
|
||||||
|
kind: ClusterRole
|
||||||
|
name: tailscale-operator
|
||||||
|
subjects:
|
||||||
|
- kind: ServiceAccount
|
||||||
|
name: tailscale-operator
|
||||||
|
namespace: tailscale
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: tailscale-operator
|
||||||
|
namespace: tailscale
|
||||||
|
labels:
|
||||||
|
app: tailscale-operator
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: tailscale-operator
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: tailscale-operator
|
||||||
|
spec:
|
||||||
|
serviceAccountName: tailscale-operator
|
||||||
|
containers:
|
||||||
|
- name: operator
|
||||||
|
image: ghcr.io/tailscale/k8s-operator:v1.78.3
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
env:
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: CLIENT_ID_FILE
|
||||||
|
value: /etc/tailscale/oauth/client-id
|
||||||
|
- name: CLIENT_SECRET_FILE
|
||||||
|
value: /etc/tailscale/oauth/client-secret
|
||||||
|
volumeMounts:
|
||||||
|
- name: oauth-secret
|
||||||
|
mountPath: /etc/tailscale/oauth
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: oauth-secret
|
||||||
|
secret:
|
||||||
|
secretName: tailscale-operator-secret
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: tailscale-operator-secret
|
||||||
|
namespace: tailscale
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: orion-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: tailscale-operator-secret
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: client-id
|
||||||
|
remoteRef:
|
||||||
|
key: tailscale/operator
|
||||||
|
property: CLIENT_ID_FILE
|
||||||
|
- secretKey: client-secret
|
||||||
|
remoteRef:
|
||||||
|
key: tailscale/operator
|
||||||
|
property: CLIENT_SECRET_FILE
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ServiceAccount
|
||||||
|
metadata:
|
||||||
|
name: tailscale-operator
|
||||||
|
namespace: tailscale
|
||||||
|
labels:
|
||||||
|
app: tailscale-operator
|
||||||
Reference in New Issue
Block a user