Compare commits
174 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 78fe8748dd | |||
| f4be4e0f01 | |||
| f4f2a7229d | |||
| ece7b8d562 | |||
| a194beb7b7 | |||
| 9e2562897c | |||
| 277e834d5c | |||
| c4e088cc49 | |||
| 5d5e004e71 | |||
| 2124c128d9 | |||
| b26ef35c7e | |||
| 059d189677 | |||
| 472783d3d9 | |||
| 044c123dfa | |||
| fe012ea282 | |||
| bbbfeaf155 | |||
| e17934a749 | |||
| a98c45decd | |||
| c71b31fab2 | |||
| d961fcde77 | |||
| 074c2e764e | |||
| 27cf0e28c3 | |||
| 63d453ef07 | |||
| 22efb57ced | |||
| 1b71d5e100 | |||
| 196ee24009 | |||
| 301cfc25bc | |||
| 667bdf52c4 | |||
| 7dc5bfab48 | |||
| 6cf0a26c9b | |||
| afe794aea3 | |||
| e23c5f5b7f | |||
| 61bbe21b90 | |||
| 5aa5eefdf2 | |||
| d822cbe546 | |||
| 9386134fc7 | |||
| 1286ebae4a | |||
| 6b434e5230 | |||
| 3676a5de46 | |||
| f4a9de8b82 | |||
| 37cb3bbeb6 | |||
| 56320aa920 | |||
| 86e817e3c3 | |||
| 91f0184941 | |||
| 644f777b7c | |||
| f2b20d549a | |||
| 70a9f23b7f | |||
| 36d3a45e02 | |||
| 71348a5a65 | |||
| 2d1b6cf487 | |||
| 1436def461 | |||
| 309c291917 | |||
| 0b35e7500a | |||
| 96e4179de5 | |||
| 18c7a798d4 | |||
| 4a170e2a7b | |||
| 61faadcea3 | |||
| 6619978c47 | |||
| ce7384d92e | |||
| 082a79b613 | |||
| e44858053c | |||
| 56141866cb | |||
| 808f2aff06 | |||
| b03242120e | |||
| 96cf67dfa0 | |||
| f882fbff41 | |||
| 3259058743 | |||
| a25bd791ee | |||
| 0db41645f1 | |||
| 8b2476f98e | |||
| e412ed2f37 | |||
| 54afdb38c6 | |||
| b2ec5765b2 | |||
| c2d7fcd637 | |||
| c6b30bb4b5 | |||
| f68f033c1d | |||
| b1cb35b14f | |||
| bc05720128 | |||
| c13886552a | |||
| bd464ac1c9 | |||
| c5f7b5d9fc | |||
| 0a07edeacd | |||
| 3ab8a15189 | |||
| 38703cfa9f | |||
| 6f85288138 | |||
| 484a0a1f79 | |||
| 8827f5f8d1 | |||
| e24a9e4389 | |||
| c212339187 | |||
| 613b584630 | |||
| 8e7c1a2ffd | |||
| c797588088 | |||
| 3254971789 | |||
| 2445c058fc | |||
| b4452ceb6c | |||
| 928b3dcfce | |||
| b7fa149297 | |||
| 2f6bd457b7 | |||
| 9a3f5ba344 | |||
| 0f667bdb5b | |||
| 2aeb3be256 | |||
| 77fded0e99 | |||
| 9be88040a3 | |||
| 8ec36c72fb | |||
| 4a14e3f6d0 | |||
| c045e7698c | |||
| e9673606c8 | |||
| 29e90352cb | |||
| c87944b3c3 | |||
| dd00e71632 | |||
| 0e225e1278 | |||
| da8a88b949 | |||
| 0a53d8e0c8 | |||
| 1fe9a17874 | |||
| f8318860c8 | |||
| 45f6a49863 | |||
| 6a88b2d6dd | |||
| 92ac61ff37 | |||
| af05ba5105 | |||
| 90fded0414 | |||
| e13d468bbf | |||
| 6e4c3d75ad | |||
| f7141b5d49 | |||
| b127b5969d | |||
| 395924acca | |||
| 002df812ad | |||
| ef6365f0bd | |||
| 4eafe1a274 | |||
| 5f017dcb7d | |||
| b3f293dfae | |||
| d5c5df166f | |||
| a144e3c91d | |||
| 8c0a0bcae5 | |||
| 373cfc3c85 | |||
| 42bd4a24d8 | |||
| 68216a2d0f | |||
| 1fd07cb6ff | |||
| 0d347a1043 | |||
| 5e424ec3e7 | |||
| f6664abe8a | |||
| c97032b5fd | |||
| df88693c58 | |||
| de56f95000 | |||
| 1486de806a | |||
| edfcd2156a | |||
| 82e35b1cde | |||
| 4c9bb8397b | |||
| 769d190f44 | |||
| a264bf554b | |||
| a26b86ee77 | |||
| dbe3a32eec | |||
| 4af4fb632e | |||
| fcf312457b | |||
| 8e41ff5f0b | |||
| 207863e95b | |||
| ef7ff36746 | |||
| 1182af12f0 | |||
| 28ad13bb64 | |||
| 680b8b4da1 | |||
| ff34bd0087 | |||
| 9f39336724 | |||
| e4e3489d27 | |||
| 193aaf572b | |||
| 614ac48682 | |||
| 0629960253 | |||
| 3091aea164 | |||
| 9b89d84f35 | |||
| 1b265e2664 | |||
| 44a2fcede8 | |||
| 34e5828393 | |||
| 47ac1479bb | |||
| 98aeed94ea | |||
| 254898bef4 | |||
| b9a0711dd6 |
@@ -0,0 +1,54 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: khalisio
|
||||||
|
namespace: apps
|
||||||
|
labels:
|
||||||
|
app: khalisio
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: khalisio
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 0
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: khalisio
|
||||||
|
spec:
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: ghcr-pull-secret
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
containers:
|
||||||
|
- name: web
|
||||||
|
image: ghcr.io/richard-callis/portfolio:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8080
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 16Mi
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 64Mi
|
||||||
|
readinessProbe:
|
||||||
|
httpGet: { path: /, port: http }
|
||||||
|
initialDelaySeconds: 2
|
||||||
|
periodSeconds: 5
|
||||||
|
livenessProbe:
|
||||||
|
httpGet: { path: /, port: http }
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 30
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 101
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: khalisio
|
||||||
|
namespace: apps
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
|
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- khalisio.com
|
||||||
|
- www.khalisio.com
|
||||||
|
secretName: khalisio-tls
|
||||||
|
rules:
|
||||||
|
- host: khalisio.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: khalisio
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
- host: www.khalisio.com
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: khalisio
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: khalisio
|
||||||
|
namespace: apps
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: khalisio
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 8080
|
||||||
|
type: ClusterIP
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: apps
|
||||||
|
labels:
|
||||||
|
kubernetes.io/metadata.name: apps
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: game-servers
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: game-servers
|
||||||
|
app.kubernetes.io/managed-by: orion
|
||||||
|
pod-security.kubernetes.io/enforce: privileged
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,118 @@
|
|||||||
|
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
|
||||||
|
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
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: wings-ark-sa-config
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: orion-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: wings-ark-sa-config
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: config.yml
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/wings/ark-sa
|
||||||
|
property: config
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: wings-ark-sa-data
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 150Gi
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
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:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: wings-valheim
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: wings-valheim
|
||||||
|
game: valheim
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: amd64
|
||||||
|
volumes:
|
||||||
|
- name: wings-config
|
||||||
|
secret:
|
||||||
|
secretName: wings-valheim-config
|
||||||
|
- name: docker-socket
|
||||||
|
emptyDir: {}
|
||||||
|
- name: dind-storage
|
||||||
|
emptyDir: {}
|
||||||
|
- name: server-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: wings-valheim-data
|
||||||
|
- name: autostart-token
|
||||||
|
secret:
|
||||||
|
secretName: pelican-autostart-key
|
||||||
|
containers:
|
||||||
|
- 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
|
||||||
|
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
|
||||||
|
env:
|
||||||
|
- name: DOCKER_HOST
|
||||||
|
value: tcp://localhost:2375
|
||||||
|
- name: WATCHDOG_ENABLED
|
||||||
|
value: "true"
|
||||||
|
volumeMounts:
|
||||||
|
- name: wings-config
|
||||||
|
mountPath: /etc/pterodactyl
|
||||||
|
readOnly: true
|
||||||
|
- name: docker-socket
|
||||||
|
mountPath: /var/run/docker.sock
|
||||||
|
- name: server-data
|
||||||
|
mountPath: /mnt/server
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "1"
|
||||||
|
memory: "2Gi"
|
||||||
|
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/9d09e83d-00c3-4404-8f81-07c0522a6c25/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"
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: wings-valheim-config
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: orion-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: wings-valheim-config
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: config.yml
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/wings/valheim
|
||||||
|
property: config
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
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
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: wings-valheim-data
|
||||||
|
namespace: game-servers
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 100Gi
|
||||||
@@ -3,6 +3,8 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: bazarr
|
name: bazarr
|
||||||
namespace: media
|
namespace: media
|
||||||
|
labels:
|
||||||
|
app: bazarr
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -24,21 +26,26 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "America/New_York"
|
value: UTC
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: media
|
- name: tv
|
||||||
mountPath: /media
|
mountPath: /tv
|
||||||
|
- 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: media
|
- name: tv
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: media-data
|
claimName: sonarr-downloads
|
||||||
|
- name: movies
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: radarr-downloads
|
||||||
- name: podcasts
|
- name: podcasts
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: bazarr-podcasts
|
claimName: bazarr-podcasts
|
||||||
@@ -5,6 +5,7 @@ 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:
|
||||||
@@ -20,7 +21,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: bazarr
|
name: bazarr
|
||||||
port:
|
port:
|
||||||
number: 6767
|
name: http
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
- websecure
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
@@ -7,7 +7,8 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: bazarr
|
app: bazarr
|
||||||
ports:
|
ports:
|
||||||
- port: 6767
|
- name: http
|
||||||
targetPort: 6767
|
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
port: 6767
|
||||||
|
targetPort: 6767
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -3,6 +3,8 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: emby
|
name: emby
|
||||||
namespace: media
|
namespace: media
|
||||||
|
labels:
|
||||||
|
app: emby
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -25,7 +27,7 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "America/New_York"
|
value: UTC
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ 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:
|
||||||
@@ -20,7 +21,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: emby
|
name: emby
|
||||||
port:
|
port:
|
||||||
number: 8096
|
name: http
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
- websecure
|
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: emby-config
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
storageClassName: longhorn
|
||||||
@@ -7,10 +7,12 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: emby
|
app: emby
|
||||||
ports:
|
ports:
|
||||||
- port: 8096
|
- name: http
|
||||||
|
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
|
||||||
@@ -3,6 +3,8 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: lidarr
|
name: lidarr
|
||||||
namespace: media
|
namespace: media
|
||||||
|
labels:
|
||||||
|
app: lidarr
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -24,19 +26,19 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "America/New_York"
|
value: UTC
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: media
|
- name: music
|
||||||
mountPath: /media
|
mountPath: /music
|
||||||
- name: downloads
|
- name: downloads
|
||||||
mountPath: /downloads
|
mountPath: /downloads
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: lidarr-config
|
claimName: lidarr-config
|
||||||
- name: media
|
- name: music
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: media-data
|
claimName: media-data
|
||||||
- name: downloads
|
- name: downloads
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ 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:
|
||||||
@@ -20,7 +21,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: lidarr
|
name: lidarr
|
||||||
port:
|
port:
|
||||||
number: 8686
|
name: http
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
- websecure
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
@@ -7,7 +7,8 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: lidarr
|
app: lidarr
|
||||||
ports:
|
ports:
|
||||||
- port: 8686
|
- name: http
|
||||||
targetPort: 8686
|
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
port: 8686
|
||||||
|
targetPort: 8686
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -3,4 +3,4 @@ kind: Namespace
|
|||||||
metadata:
|
metadata:
|
||||||
name: media
|
name: media
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/managed-by: orion
|
name: media
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: prowlarr
|
name: prowlarr
|
||||||
namespace: media
|
namespace: media
|
||||||
|
labels:
|
||||||
|
app: prowlarr
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -24,7 +26,7 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "America/New_York"
|
value: UTC
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ 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:
|
||||||
@@ -20,7 +21,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: prowlarr
|
name: prowlarr
|
||||||
port:
|
port:
|
||||||
number: 9696
|
name: http
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
- websecure
|
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: prowlarr-config
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 2Gi
|
||||||
|
storageClassName: longhorn
|
||||||
@@ -7,7 +7,8 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: prowlarr
|
app: prowlarr
|
||||||
ports:
|
ports:
|
||||||
- port: 9696
|
- name: http
|
||||||
targetPort: 9696
|
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
port: 9696
|
||||||
|
targetPort: 9696
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -5,8 +5,9 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 500Gi
|
storage: 3Ti
|
||||||
storageClassName: longhorn
|
|
||||||
@@ -3,6 +3,8 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: radarr
|
name: radarr
|
||||||
namespace: media
|
namespace: media
|
||||||
|
labels:
|
||||||
|
app: radarr
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -24,19 +26,19 @@ spec:
|
|||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: "America/New_York"
|
value: UTC
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: media
|
- name: movies
|
||||||
mountPath: /media
|
mountPath: /movies
|
||||||
- name: downloads
|
- name: downloads
|
||||||
mountPath: /downloads
|
mountPath: /downloads
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: radarr-config
|
claimName: radarr-config
|
||||||
- name: media
|
- name: movies
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: media-data
|
claimName: media-data
|
||||||
- name: downloads
|
- name: downloads
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ 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:
|
||||||
@@ -20,7 +21,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: radarr
|
name: radarr
|
||||||
port:
|
port:
|
||||||
number: 7878
|
name: http
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
- websecure
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
@@ -7,7 +7,8 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: radarr
|
app: radarr
|
||||||
ports:
|
ports:
|
||||||
- port: 7878
|
- name: http
|
||||||
targetPort: 7878
|
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
port: 7878
|
||||||
|
targetPort: 7878
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: readarr
|
|
||||||
namespace: media
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: readarr
|
|
||||||
ports:
|
|
||||||
- port: 8787
|
|
||||||
targetPort: 8787
|
|
||||||
protocol: TCP
|
|
||||||
type: ClusterIP
|
|
||||||
@@ -3,11 +3,15 @@ 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:
|
||||||
@@ -15,30 +19,38 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sonarr
|
- name: sonarr
|
||||||
image: lscr.io/linuxserver/sonarr:develop
|
image: lscr.io/linuxserver/sonarr:latest
|
||||||
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: "America/New_York"
|
value: Etc/UTC
|
||||||
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,6 +5,7 @@ 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:
|
||||||
@@ -20,7 +21,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: sonarr
|
name: sonarr
|
||||||
port:
|
port:
|
||||||
number: 8989
|
name: http
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
- websecure
|
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
@@ -7,7 +7,8 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
app: sonarr
|
app: sonarr
|
||||||
ports:
|
ports:
|
||||||
- port: 8989
|
- name: http
|
||||||
targetPort: 8989
|
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
port: 8989
|
||||||
|
targetPort: 8989
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: transmission-config
|
||||||
|
namespace: media
|
||||||
|
data:
|
||||||
|
peer-port: "0"
|
||||||
@@ -0,0 +1,85 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: transmission
|
||||||
|
namespace: media
|
||||||
|
labels:
|
||||||
|
app: transmission
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: transmission
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: transmission
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: gluetun
|
||||||
|
image: ghcr.io/qmcgaw/gluetun:v3.40.0
|
||||||
|
env:
|
||||||
|
- name: OPENVPN_PROVIDER
|
||||||
|
value: "PROTONVPN"
|
||||||
|
- name: OPENVPN_USERNAME
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: transmission-vpn-secret
|
||||||
|
key: username
|
||||||
|
- name: OPENVPN_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: transmission-vpn-secret
|
||||||
|
key: password
|
||||||
|
- name: SERVER_COUNTRIES
|
||||||
|
value: "US"
|
||||||
|
- name: FIREWALL_ENABLED
|
||||||
|
value: "off"
|
||||||
|
- name: DOT_ENABLED
|
||||||
|
value: "true"
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 8000
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: transmission
|
||||||
|
image: lscr.io/linuxserver/transmission:latest
|
||||||
|
env:
|
||||||
|
- name: PUID
|
||||||
|
value: "1000"
|
||||||
|
- name: PGID
|
||||||
|
value: "1000"
|
||||||
|
- name: TZ
|
||||||
|
value: "America/New_York"
|
||||||
|
- name: USER
|
||||||
|
value: "admin"
|
||||||
|
- name: PASS
|
||||||
|
value: "admin"
|
||||||
|
- name: TRANSMISSION_WEB_HOME
|
||||||
|
value: "/combui"
|
||||||
|
- name: PEER_PORT
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
name: transmission-config
|
||||||
|
key: peer-port
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 9091
|
||||||
|
- name: peer
|
||||||
|
containerPort: 0
|
||||||
|
protocol: TCP
|
||||||
|
- name: peer-udp
|
||||||
|
containerPort: 0
|
||||||
|
protocol: UDP
|
||||||
|
volumeMounts:
|
||||||
|
- name: config
|
||||||
|
mountPath: /config
|
||||||
|
- name: downloads
|
||||||
|
mountPath: /downloads
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
emptyDir: {}
|
||||||
|
- name: downloads
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: media-data
|
||||||
+5
-11
@@ -1,26 +1,20 @@
|
|||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: readarr
|
name: transmission
|
||||||
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:
|
|
||||||
- hosts:
|
|
||||||
- readarr.khalisio.com
|
|
||||||
secretName: readarr-tls
|
|
||||||
rules:
|
rules:
|
||||||
- host: readarr.khalisio.com
|
- host: transmission.khalis.corp
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
service:
|
service:
|
||||||
name: readarr
|
name: transmission
|
||||||
port:
|
port:
|
||||||
number: 8787
|
name: http
|
||||||
entryPoints:
|
|
||||||
- web
|
|
||||||
- websecure
|
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: transmission
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: transmission
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 9091
|
||||||
|
targetPort: http
|
||||||
|
type: ClusterIP
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Certificate
|
||||||
|
metadata:
|
||||||
|
name: pelican-panel-tls
|
||||||
|
namespace: pelican
|
||||||
|
spec:
|
||||||
|
secretName: pelican-panel-tls
|
||||||
|
issuerRef:
|
||||||
|
name: letsencrypt-prod
|
||||||
|
kind: ClusterIssuer
|
||||||
|
dnsNames:
|
||||||
|
- pelican.khalisio.com
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
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: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
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:
|
||||||
|
initContainers:
|
||||||
|
- name: fix-perms
|
||||||
|
image: busybox
|
||||||
|
command: ["sh", "-c", "chown -R 82:82 /pelican-data && chmod -R 770 /pelican-data"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /pelican-data
|
||||||
|
containers:
|
||||||
|
- name: panel
|
||||||
|
image: ghcr.io/pelican-dev/panel:latest
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
env:
|
||||||
|
- name: APP_ENV
|
||||||
|
value: production
|
||||||
|
- name: APP_NAME
|
||||||
|
value: "Pelican"
|
||||||
|
- name: APP_URL
|
||||||
|
value: "https://pelican.khalisio.com"
|
||||||
|
- name: BEHIND_PROXY
|
||||||
|
value: "true"
|
||||||
|
- name: DB_CONNECTION
|
||||||
|
value: pgsql
|
||||||
|
- 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: /pelican-data
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: pelican-data
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: pelican-panel-app
|
||||||
|
namespace: pelican
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: orion-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: pelican-panel-app
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: APP_KEY
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/pelican/panel/app
|
||||||
|
property: APP_KEY
|
||||||
|
- secretKey: SESSION_SECURE
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/pelican/panel/app
|
||||||
|
property: SESSION_SECURE
|
||||||
|
- secretKey: OAUTH_CLIENT_SECRET
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/pelican/panel/app
|
||||||
|
property: OAUTH_CLIENT_SECRET
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: pelican-autostart-key
|
||||||
|
namespace: pelican
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: orion-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: pelican-autostart-key
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: api_key
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/pelican/panel/autostart
|
||||||
|
property: api_key
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: pelican-panel-db
|
||||||
|
namespace: pelican
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
name: orion-vault
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
target:
|
||||||
|
name: pelican-panel-db
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: DB_PASSWORD
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/pelican/panel/db
|
||||||
|
property: DB_PASSWORD
|
||||||
|
- secretKey: DB_USER
|
||||||
|
remoteRef:
|
||||||
|
key: Talos Cluster/pelican/panel/db
|
||||||
|
property: DB_USER
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
apiVersion: traefik.io/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
|
||||||
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: pelican
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: pelican
|
||||||
|
app.kubernetes.io/managed-by: orion
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: postgres-data
|
||||||
|
namespace: pelican
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: postgres
|
||||||
|
namespace: pelican
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: postgres
|
||||||
|
app.kubernetes.io/component: database
|
||||||
|
app.kubernetes.io/managed-by: orion
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: postgres
|
||||||
|
app.kubernetes.io/component: database
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: postgres
|
||||||
|
app.kubernetes.io/component: database
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: postgres
|
||||||
|
image: postgres:16
|
||||||
|
ports:
|
||||||
|
- containerPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
env:
|
||||||
|
- name: POSTGRES_DB
|
||||||
|
value: pelican
|
||||||
|
- name: POSTGRES_USER
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: pelican-panel-db
|
||||||
|
key: DB_USER
|
||||||
|
- name: POSTGRES_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: pelican-panel-db
|
||||||
|
key: DB_PASSWORD
|
||||||
|
- name: PGDATA
|
||||||
|
value: /var/lib/postgresql/data/pgdata
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /var/lib/postgresql/data
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: postgres-data
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: postgres
|
||||||
|
namespace: pelican
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: postgres
|
||||||
|
app.kubernetes.io/component: database
|
||||||
|
spec:
|
||||||
|
type: ClusterIP
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: postgres
|
||||||
|
app.kubernetes.io/component: database
|
||||||
|
ports:
|
||||||
|
- port: 5432
|
||||||
|
targetPort: 5432
|
||||||
|
protocol: TCP
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
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: 80
|
||||||
|
protocol: TCP
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
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,45 @@
|
|||||||
|
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: vaultwarden/server:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
env:
|
||||||
|
- name: BW_ADMIN_DOMAIN
|
||||||
|
value: bitwarden.khalisio.com
|
||||||
|
- name: WEBSOCKETS_ENABLED
|
||||||
|
value: "true"
|
||||||
|
- name: SIGNUPS_ALLOWED
|
||||||
|
value: "true"
|
||||||
|
- name: DOMAIN
|
||||||
|
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
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
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
|
||||||
|
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
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: bitwarden-data
|
||||||
|
namespace: security
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 5Gi
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: bitwarden
|
||||||
|
namespace: security
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: bitwarden
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
type: ClusterIP
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: security
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: security
|
||||||
|
app.kubernetes.io/managed-by: orion
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: tailscale
|
|
||||||
labels:
|
|
||||||
kubernetes.io/metadata.name: tailscale
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: ClusterRole
|
|
||||||
metadata:
|
|
||||||
name: tailscale-operator
|
|
||||||
rules:
|
|
||||||
- apiGroups: [""]
|
|
||||||
resources: ["pods", "services", "secrets", "configmaps"]
|
|
||||||
verbs: ["*"]
|
|
||||||
- apiGroups: ["apps"]
|
|
||||||
resources: ["deployments", "daemonsets", "statefulsets"]
|
|
||||||
verbs: ["*"]
|
|
||||||
- apiGroups: ["networking.k8s.io"]
|
|
||||||
resources: ["networkpolicies", "ingresses"]
|
|
||||||
verbs: ["*"]
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
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/operator:v1.70.0
|
|
||||||
env:
|
|
||||||
- name: DEPLOY_TYPE
|
|
||||||
value: k8s
|
|
||||||
volumeMounts:
|
|
||||||
- name: config
|
|
||||||
mountPath: /config
|
|
||||||
volumes:
|
|
||||||
- name: config
|
|
||||||
secret:
|
|
||||||
secretName: tailscale-operator-config
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
apiVersion: external-secrets.io/v1beta1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: tailscale-operator
|
|
||||||
namespace: tailscale
|
|
||||||
spec:
|
|
||||||
refreshInterval: 1h
|
|
||||||
secretStoreRef:
|
|
||||||
name: vault
|
|
||||||
kind: SecretStore
|
|
||||||
target:
|
|
||||||
name: tailscale-operator
|
|
||||||
template:
|
|
||||||
engineVersion: v2
|
|
||||||
data:
|
|
||||||
TS_AUTHKEY: "{{ .TS_AUTHKEY }}"
|
|
||||||
data:
|
|
||||||
- secretKey: TS_AUTHKEY
|
|
||||||
remoteRef:
|
|
||||||
key: secret/data/kubernetes/tailscale-operator
|
|
||||||
property: TS_AUTHKEY
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: ServiceAccount
|
|
||||||
metadata:
|
|
||||||
name: tailscale-operator
|
|
||||||
namespace: tailscale
|
|
||||||
Reference in New Issue
Block a user