Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 231d9439ff | |||
| df5d59cac6 | |||
| 6a5f2b51c4 | |||
| c486cc2eb7 | |||
| c2c7cf457c | |||
| 5044e7fcf0 |
@@ -1,54 +0,0 @@
|
||||
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"]
|
||||
@@ -1,35 +0,0 @@
|
||||
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
|
||||
@@ -1,13 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: khalisio
|
||||
namespace: apps
|
||||
spec:
|
||||
selector:
|
||||
app: khalisio
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
type: ClusterIP
|
||||
@@ -1,48 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: n8n
|
||||
namespace: apps
|
||||
labels:
|
||||
app: n8n
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: n8n
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: n8n
|
||||
spec:
|
||||
containers:
|
||||
- name: n8n
|
||||
image: n8nio/n8n:1.57.0
|
||||
ports:
|
||||
- containerPort: 5678
|
||||
env:
|
||||
- name: N8N_HOST
|
||||
value: "n8n.khalisio.com"
|
||||
- name: N8N_PROTOCOL
|
||||
value: "https"
|
||||
- name: WEBHOOK_URL
|
||||
value: "https://n8n.khalisio.com/"
|
||||
- name: N8N_ENCRYPTION_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: n8n-secret
|
||||
key: N8N_ENCRYPTION_KEY
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: 1000m
|
||||
memory: 1Gi
|
||||
volumeMounts:
|
||||
- name: n8n-data
|
||||
mountPath: /home/node/.n8n
|
||||
volumes:
|
||||
- name: n8n-data
|
||||
persistentVolumeClaim:
|
||||
claimName: n8n-data
|
||||
@@ -1,18 +0,0 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: n8n-secret
|
||||
namespace: apps
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: vault
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: n8n-secret
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: N8N_ENCRYPTION_KEY
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/apps/n8n
|
||||
property: N8N_ENCRYPTION_KEY
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: n8n
|
||||
namespace: apps
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`n8n.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: n8n
|
||||
port: 80
|
||||
tls:
|
||||
secretName: n8n-tls
|
||||
certResolver: letsencrypt
|
||||
@@ -1,11 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: n8n-data
|
||||
namespace: apps
|
||||
spec:
|
||||
accessModes: [ReadWriteOnce]
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
@@ -1,12 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: n8n
|
||||
namespace: apps
|
||||
spec:
|
||||
selector:
|
||||
app: n8n
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 5678
|
||||
type: ClusterIP
|
||||
@@ -5,4 +5,3 @@ metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: game-servers
|
||||
app.kubernetes.io/managed-by: orion
|
||||
pod-security.kubernetes.io/enforce: privileged
|
||||
|
||||
@@ -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
|
||||
@@ -71,6 +71,9 @@ spec:
|
||||
- |
|
||||
export DOCKER_HOST=tcp://localhost:2375
|
||||
exec wings
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: wings-ark-sa-config
|
||||
env:
|
||||
- name: DOCKER_HOST
|
||||
value: tcp://localhost:2375
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: wings-ark-sa-config
|
||||
@@ -6,13 +6,21 @@ metadata:
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: orion-vault
|
||||
name: vault
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: wings-ark-sa-config
|
||||
creationPolicy: Owner
|
||||
data:
|
||||
- secretKey: config.yml
|
||||
- secretKey: WINGS_UUID
|
||||
remoteRef:
|
||||
key: Talos Cluster/wings/ark-sa
|
||||
property: config
|
||||
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 +1,27 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-ark-sa
|
||||
name: wings-ark-sa-api
|
||||
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
|
||||
scheme: https
|
||||
serversTransport: wings-ark-sa-st
|
||||
---
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: ServersTransport
|
||||
metadata:
|
||||
name: wings-ark-sa-st
|
||||
namespace: game-servers
|
||||
spec:
|
||||
serverTransport:
|
||||
insecureSkipVerify: true
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: wings-enshrouded
|
||||
namespace: game-servers
|
||||
labels:
|
||||
app: wings-enshrouded
|
||||
game: enshrouded
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: wings-enshrouded
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: wings-enshrouded
|
||||
game: enshrouded
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
containers:
|
||||
- name: dind
|
||||
image: docker:24-dind
|
||||
securityContext:
|
||||
privileged: true
|
||||
env:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: ""
|
||||
resources:
|
||||
requests:
|
||||
cpu: "500m"
|
||||
memory: "1Gi"
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: "2Gi"
|
||||
- name: wings
|
||||
image: ghcr.io/pelican-dev/wings:latest
|
||||
env:
|
||||
- name: DOCKER_HOST
|
||||
value: tcp://localhost:2375
|
||||
- name: WINGS_Umask
|
||||
value: "0002"
|
||||
- name: GRPC_PORT
|
||||
value: "50051"
|
||||
- name: WINGS_API_LISTEN
|
||||
value: "0.0.0.0:8081"
|
||||
- name: WINGS_SFTP_LISTEN
|
||||
value: "0.0.0.0:2023"
|
||||
- name: WINGS_SERVER_UUID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wings-enshrouded-config
|
||||
key: server_uuid
|
||||
- name: WINGS_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: wings-enshrouded-config
|
||||
key: api_key
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: wings-enshrouded-config
|
||||
ports:
|
||||
- containerPort: 8081
|
||||
- containerPort: 2023
|
||||
resources:
|
||||
requests:
|
||||
cpu: "2"
|
||||
memory: "8Gi"
|
||||
limits:
|
||||
cpu: "4"
|
||||
memory: "16Gi"
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /home/container
|
||||
- name: game-autostart
|
||||
image: curlimages/curl:latest
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
while true; do
|
||||
WINGS_READY=false
|
||||
while [ "$WINGS_READY" = "false" ]; do
|
||||
if curl -sf http://localhost:8081/health > /dev/null 2>&1; then
|
||||
WINGS_READY=true
|
||||
echo "Wings is ready, sending start signal..."
|
||||
sleep 30
|
||||
curl -sf -X POST \
|
||||
-H "Authorization: Bearer $PELICAN_API_KEY" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"signal":"start"}' \
|
||||
https://pelican.khalisio.com/api/client/servers/8448d68c-dec4-4025-97fa-9b49e36c75bb/power || echo "Start signal failed, retrying..."
|
||||
break
|
||||
fi
|
||||
echo "Waiting for Wings to be ready..."
|
||||
sleep 5
|
||||
done
|
||||
sleep 60
|
||||
done
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: pelican-autostart-key
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "256Mi"
|
||||
limits:
|
||||
cpu: "500m"
|
||||
memory: "512Mi"
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: wings-enshrouded-data
|
||||
@@ -0,0 +1,23 @@
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: wings-enshrouded-config
|
||||
namespace: game-servers
|
||||
spec:
|
||||
refreshInterval: 1h
|
||||
secretStoreRef:
|
||||
name: vault-secret-store
|
||||
kind: ClusterSecretStore
|
||||
target:
|
||||
name: wings-enshrouded-config
|
||||
template:
|
||||
engineVersion: v2
|
||||
data:
|
||||
- secretKey: config
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/wings/enshrouded
|
||||
property: config
|
||||
- secretKey: api_key
|
||||
remoteRef:
|
||||
key: secret/data/Talos Cluster/wings/enshrouded
|
||||
property: api_key
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: wings-valheim-data
|
||||
name: wings-enshrouded-data
|
||||
namespace: game-servers
|
||||
spec:
|
||||
accessModes:
|
||||
@@ -9,4 +9,4 @@ spec:
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
storage: 50Gi
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wings-enshrouded-api
|
||||
namespace: game-servers
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: wings-enshrouded
|
||||
ports:
|
||||
- name: api
|
||||
port: 8081
|
||||
targetPort: 8081
|
||||
protocol: TCP
|
||||
- name: sftp
|
||||
port: 2023
|
||||
targetPort: 2023
|
||||
protocol: TCP
|
||||
@@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: wings-enshrouded-game
|
||||
namespace: game-servers
|
||||
annotations:
|
||||
metallb.io/address-pool: "default"
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
loadBalancerIP: 10.4.4.204
|
||||
selector:
|
||||
app: wings-enshrouded
|
||||
ports:
|
||||
- name: udp
|
||||
port: 27015
|
||||
targetPort: 27015
|
||||
protocol: UDP
|
||||
- name: tcp
|
||||
port: 27015
|
||||
targetPort: 27015
|
||||
protocol: TCP
|
||||
@@ -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,111 +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:
|
||||
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"
|
||||
@@ -1,18 +0,0 @@
|
||||
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
|
||||
@@ -1,17 +0,0 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: wings-valheim
|
||||
namespace: game-servers
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
tls:
|
||||
secretName: wings-valheim-tls
|
||||
certResolver: letsencrypt
|
||||
routes:
|
||||
- match: Host(`wings-valheim.khalisio.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: wings-valheim-api
|
||||
port: 8081
|
||||
@@ -1,12 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: bitwarden-data
|
||||
namespace: security
|
||||
name: media-data
|
||||
namespace: media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
- ReadWriteMany
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
storage: 500Gi
|
||||
@@ -9,5 +9,4 @@ spec:
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 3Ti
|
||||
|
||||
storage: 500Gi
|
||||
@@ -1,7 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: transmission-config
|
||||
namespace: media
|
||||
data:
|
||||
peer-port: "0"
|
||||
@@ -1,85 +0,0 @@
|
||||
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
|
||||
@@ -1,20 +0,0 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: transmission
|
||||
namespace: media
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
spec:
|
||||
rules:
|
||||
- host: transmission.khalis.corp
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: transmission
|
||||
port:
|
||||
name: http
|
||||
@@ -1,13 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: transmission
|
||||
namespace: media
|
||||
spec:
|
||||
selector:
|
||||
app: transmission
|
||||
ports:
|
||||
- name: http
|
||||
port: 9091
|
||||
targetPort: http
|
||||
type: ClusterIP
|
||||
@@ -1,12 +0,0 @@
|
||||
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
|
||||
@@ -8,9 +8,12 @@ metadata:
|
||||
app.kubernetes.io/component: panel
|
||||
app.kubernetes.io/managed-by: orion
|
||||
spec:
|
||||
replicas: 1
|
||||
replicas: 2
|
||||
strategy:
|
||||
type: Recreate
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: pelican
|
||||
@@ -21,19 +24,12 @@ spec:
|
||||
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
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: APP_ENV
|
||||
@@ -42,10 +38,6 @@ spec:
|
||||
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
|
||||
@@ -93,8 +85,23 @@ spec:
|
||||
value: file
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /pelican-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,26 +1,23 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
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
|
||||
key: secret/data/Talos Cluster/pelican/panel/app
|
||||
property: APP_KEY
|
||||
- secretKey: SESSION_SECURE
|
||||
remoteRef:
|
||||
key: Talos Cluster/pelican/panel/app
|
||||
key: secret/data/Talos Cluster/pelican/panel/app
|
||||
property: SESSION_SECURE
|
||||
- secretKey: OAUTH_CLIENT_SECRET
|
||||
remoteRef:
|
||||
key: Talos Cluster/pelican/panel/app
|
||||
key: secret/data/Talos Cluster/pelican/panel/app
|
||||
property: OAUTH_CLIENT_SECRET
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
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
|
||||
key: secret/data/Talos Cluster/pelican/panel/autostart
|
||||
property: api_key
|
||||
|
||||
@@ -1,22 +1,19 @@
|
||||
apiVersion: external-secrets.io/v1
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
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
|
||||
key: secret/data/Talos Cluster/pelican/panel/db
|
||||
property: DB_PASSWORD
|
||||
- secretKey: DB_USER
|
||||
remoteRef:
|
||||
key: Talos Cluster/pelican/panel/db
|
||||
key: secret/data/Talos Cluster/pelican/panel/db
|
||||
property: DB_USER
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: pelican-panel
|
||||
@@ -17,4 +17,3 @@ spec:
|
||||
- name: pelican-panel
|
||||
port: 80
|
||||
scheme: http
|
||||
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
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
|
||||
@@ -14,5 +14,5 @@ spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
|
||||
@@ -1,45 +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: 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
|
||||
@@ -1,25 +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
|
||||
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,13 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: bitwarden
|
||||
namespace: security
|
||||
spec:
|
||||
selector:
|
||||
app: bitwarden
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
type: ClusterIP
|
||||
@@ -1,7 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: security
|
||||
labels:
|
||||
app.kubernetes.io/name: security
|
||||
app.kubernetes.io/managed-by: orion
|
||||
Reference in New Issue
Block a user