Compare commits
12
Commits
0e78da4d2b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2942a2c21b | ||
|
|
271e350a12 | ||
|
|
b3eff0ec5c | ||
|
|
fea5e5053a | ||
|
|
49113c5d05 | ||
|
|
21fc31f5ff | ||
|
|
de1d329326 | ||
|
|
effe112983 | ||
|
|
09c30f39cb | ||
|
|
7c6fdd0cad | ||
|
|
a8ec6f13b1 | ||
|
|
b208259bdc |
No files matched your search
@@ -84,7 +84,7 @@ spec:
|
|||||||
- secretName: jellyseerr-ingress
|
- secretName: jellyseerr-ingress
|
||||||
hosts:
|
hosts:
|
||||||
- jellyseerr.ntwl.xyz
|
- jellyseerr.ntwl.xyz
|
||||||
- get.ntwl.xyz
|
- js.ntwl.xyz
|
||||||
rules:
|
rules:
|
||||||
- host: jellyseerr.ntwl.xyz
|
- host: jellyseerr.ntwl.xyz
|
||||||
http:
|
http:
|
||||||
@@ -96,7 +96,7 @@ spec:
|
|||||||
name: web
|
name: web
|
||||||
path: /
|
path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
- host: get.ntwl.xyz
|
- host: js.ntwl.xyz
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- backend:
|
- backend:
|
||||||
|
|||||||
File renamed without changes.
+25
-53
@@ -1,18 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Secret
|
|
||||||
metadata:
|
|
||||||
name: gitea-admin-secret
|
|
||||||
namespace: ops
|
|
||||||
type: Opaque
|
|
||||||
stringData:
|
|
||||||
username: ntr
|
|
||||||
password: "REDACTED"
|
|
||||||
email: "ntr@strix.systems"
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
@@ -28,36 +15,6 @@ spec:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: gitea-redis
|
|
||||||
namespace: ops
|
|
||||||
spec:
|
|
||||||
storageClassName: fast
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 4Gi
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: gitea-pg
|
|
||||||
namespace: ops
|
|
||||||
spec:
|
|
||||||
storageClassName: fast
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 4Gi
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
apiVersion: helm.cattle.io/v1
|
apiVersion: helm.cattle.io/v1
|
||||||
kind: HelmChart
|
kind: HelmChart
|
||||||
metadata:
|
metadata:
|
||||||
@@ -66,9 +23,13 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
repo: https://dl.gitea.com/charts/
|
repo: https://dl.gitea.com/charts/
|
||||||
chart: gitea
|
chart: gitea
|
||||||
|
version: 12.7.0
|
||||||
targetNamespace: ops
|
targetNamespace: ops
|
||||||
valuesContent: |-
|
valuesContent: |-
|
||||||
|
|
||||||
|
image:
|
||||||
|
tag: "28.0.0"
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
className: haproxy
|
className: haproxy
|
||||||
@@ -95,27 +56,33 @@ spec:
|
|||||||
port: 60022
|
port: 60022
|
||||||
externalTrafficPolicy: Local
|
externalTrafficPolicy: Local
|
||||||
|
|
||||||
redis-cluster:
|
valkey-cluster:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
redis:
|
valkey:
|
||||||
enabled: true
|
enabled: true
|
||||||
persistence:
|
architecture: standalone
|
||||||
enabled: true
|
primary:
|
||||||
existingClaim: gitea-redis
|
persistence:
|
||||||
|
enabled: true
|
||||||
|
storageClass: zfs-fast
|
||||||
|
size: 8Gi
|
||||||
|
|
||||||
postgresql:
|
postgresql:
|
||||||
enabled: true
|
enabled: true
|
||||||
persistence:
|
primary:
|
||||||
enabled: true
|
persistence:
|
||||||
existingClaim: gitea-pg
|
enabled: true
|
||||||
|
storageClass: zfs-fast
|
||||||
|
size: 10Gi
|
||||||
|
|
||||||
postgresql-ha:
|
postgresql-ha:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
existingClaim: gitea-data
|
create: false
|
||||||
|
claimName: gitea-data
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
config:
|
config:
|
||||||
@@ -124,7 +91,12 @@ spec:
|
|||||||
indexer:
|
indexer:
|
||||||
ISSUE_INDEXER_TYPE: bleve
|
ISSUE_INDEXER_TYPE: bleve
|
||||||
REPO_INDEXER_ENABLED: true
|
REPO_INDEXER_ENABLED: true
|
||||||
|
audit:
|
||||||
|
RECORD_OUTPUT: database
|
||||||
|
RETENTION_DAYS: 120
|
||||||
server:
|
server:
|
||||||
SSH_PORT: 60022
|
SSH_PORT: 60022
|
||||||
|
LFS_START_SERVER: true
|
||||||
|
LFS_ALLOW_PURE_SSH: true
|
||||||
admin:
|
admin:
|
||||||
existingSecret: gitea-admin-secret
|
existingSecret: gitea-admin-secret
|
||||||
Executable
+21
@@ -0,0 +1,21 @@
|
|||||||
|
gen_password() { head -c 16 /dev/urandom | sha256sum | cut -d " " -f 1; }
|
||||||
|
|
||||||
|
MINIO_ROOT_USER="minioadmin"
|
||||||
|
MINIO_ROOT_PASSWORD=$(gen_password)
|
||||||
|
|
||||||
|
kubectl create secret generic minio \
|
||||||
|
-n ops \
|
||||||
|
--from-literal=MINIO_ROOT_USER=${MINIO_ROOT_USER} \
|
||||||
|
--from-literal=MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD} \
|
||||||
|
|
||||||
|
# cat <<EOF | ssh root@strix tee /etc/rancher/k3s/registries.yaml
|
||||||
|
# mirrors:
|
||||||
|
# registry.ntwl.xyz:
|
||||||
|
# endpoint:
|
||||||
|
# - "https://registry.ntwl.xyz"
|
||||||
|
# configs:
|
||||||
|
# "registry.ntwl.xyz":
|
||||||
|
# auth:
|
||||||
|
# username: ntr
|
||||||
|
# password: pw
|
||||||
|
# EOF
|
||||||
+205
-17
@@ -18,27 +18,58 @@ metadata:
|
|||||||
name: cssds-data
|
name: cssds-data
|
||||||
namespace: surf
|
namespace: surf
|
||||||
spec:
|
spec:
|
||||||
storageClassName: zfs-fast
|
storageClassName: fast
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 50Gi
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
metadata:
|
metadata:
|
||||||
name: tf2ds-data
|
name: fastdl-maps
|
||||||
namespace: surf
|
namespace: surf
|
||||||
spec:
|
spec:
|
||||||
storageClassName: zfs-fast
|
storageClassName: fast
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 10Gi
|
storage: 200Gi
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: cfg
|
||||||
|
namespace: surf
|
||||||
|
data:
|
||||||
|
mapcycle.txt: |
|
||||||
|
surf_fortum_fix
|
||||||
|
surf_anzchamps
|
||||||
|
surf_andromeda
|
||||||
|
surf_boreas
|
||||||
|
surf_deathstar
|
||||||
|
surf_ebony
|
||||||
|
surf_fornax
|
||||||
|
surf_garden
|
||||||
|
surf_in_space
|
||||||
|
surf_kepler
|
||||||
|
surf_kitsune
|
||||||
|
surf_kitsune2
|
||||||
|
surf_lt_omnific
|
||||||
|
surf_pantheon
|
||||||
|
surf_utopia_njv
|
||||||
|
surf_nyx
|
||||||
|
surf_stonks
|
||||||
|
surf_serenity
|
||||||
|
surf_tendies
|
||||||
|
surf_zoomboys
|
||||||
|
surf_calzone
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -49,23 +80,30 @@ spec:
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: megastructure-surf
|
name: cssds
|
||||||
namespace: surf
|
namespace: surf
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: megastructure-surf
|
app: cssds
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: megastructure-surf
|
app: cssds
|
||||||
spec:
|
spec:
|
||||||
|
initContainers:
|
||||||
|
- name: fix-permissions
|
||||||
|
image: busybox
|
||||||
|
command: ['sh', '-c', 'chown -R 1000:1000 /home/steam/cssds']
|
||||||
|
volumeMounts:
|
||||||
|
- name: cssds
|
||||||
|
mountPath: /home/steam/cssds
|
||||||
containers:
|
containers:
|
||||||
- name: megastructure-surf
|
- name: cssds
|
||||||
image: registry.ntwl.xyz/megastructure-surf
|
image: registry.ntwl.xyz/megastructure-surf-cssds
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
command: ["sleep", "100000000"]
|
# command: ["sleep", "100000000"]
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 27015
|
- containerPort: 27015
|
||||||
- containerPort: 27005
|
- containerPort: 27005
|
||||||
@@ -75,15 +113,22 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: cssds
|
- name: cssds
|
||||||
mountPath: /home/steam/cssds
|
mountPath: /home/steam/cssds
|
||||||
- name: tf2ds
|
- name: fastdl-maps
|
||||||
mountPath: /home/steam/tf2ds
|
mountPath: /fastdl/maps
|
||||||
|
readOnly: true
|
||||||
|
- name: cfg
|
||||||
|
mountPath: /home/steam/cfg
|
||||||
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: cssds
|
- name: cssds
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: cssds-data
|
claimName: cssds-data
|
||||||
- name: tf2ds
|
- name: fastdl-maps
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: tf2ds-data
|
claimName: fastdl-maps
|
||||||
|
- name: cfg
|
||||||
|
configMap:
|
||||||
|
name: cfg
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -94,22 +139,165 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: megastructure-surf
|
name: cssds
|
||||||
namespace: surf
|
namespace: surf
|
||||||
spec:
|
spec:
|
||||||
type: NodePort
|
type: NodePort
|
||||||
selector:
|
selector:
|
||||||
app: megastructure-surf
|
app: cssds
|
||||||
ports:
|
ports:
|
||||||
- name: game-port
|
- name: game-port
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
port: 27015
|
port: 27015
|
||||||
targetPort: 27015
|
targetPort: 27015
|
||||||
nodePort: 32015
|
nodePort: 32015
|
||||||
|
- name: rcon
|
||||||
|
protocol: TCP
|
||||||
|
port: 27015
|
||||||
|
targetPort: 27015
|
||||||
|
nodePort: 32015
|
||||||
- name: client-port
|
- name: client-port
|
||||||
protocol: UDP
|
protocol: UDP
|
||||||
port: 27005
|
port: 27005
|
||||||
targetPort: 27005
|
targetPort: 27005
|
||||||
nodePort: 32005
|
nodePort: 32005
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# MAP DOWNLOADER
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
apiVersion: batch/v1
|
||||||
|
kind: CronJob
|
||||||
|
metadata:
|
||||||
|
name: mapsdl
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
schedule: "*/1 * * * *"
|
||||||
|
concurrencyPolicy: Forbid
|
||||||
|
successfulJobsHistoryLimit: 1
|
||||||
|
failedJobsHistoryLimit: 3
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
restartPolicy: Never
|
||||||
|
containers:
|
||||||
|
- name: mapsdl
|
||||||
|
image: registry.ntwl.xyz/megastructure-surf-mapsdl:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
command:
|
||||||
|
- "deno"
|
||||||
|
- "run"
|
||||||
|
- "-A"
|
||||||
|
- "mapsdl.ts"
|
||||||
|
env:
|
||||||
|
- name: MAPS_DIR
|
||||||
|
value: "/maps"
|
||||||
|
- name: TEMP_DIR
|
||||||
|
value: "/tmp/mapsdl"
|
||||||
|
- name: GOOGLE_APPLICATION_CREDENTIALS
|
||||||
|
value: "/app/credentials/service-account.json"
|
||||||
|
- name: MAPS_LIST_FILE
|
||||||
|
value: "/cfg/mapcycle.txt"
|
||||||
|
volumeMounts:
|
||||||
|
- name: fastdl-maps
|
||||||
|
mountPath: /maps
|
||||||
|
- name: credentials
|
||||||
|
mountPath: /app/credentials
|
||||||
|
readOnly: true
|
||||||
|
- name: cfg
|
||||||
|
mountPath: /cfg
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: fastdl-maps
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: fastdl-maps
|
||||||
|
- name: credentials
|
||||||
|
secret:
|
||||||
|
secretName: mapsdl-credentials
|
||||||
|
- name: cfg
|
||||||
|
configMap:
|
||||||
|
name: cfg
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
# FASTDL
|
||||||
|
# -----------------------------------------------------------------------
|
||||||
|
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: fastdl
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: fastdl
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: fastdl
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: fastdl
|
||||||
|
image: registry.ntwl.xyz/megastructure-surf-fastdl
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
volumeMounts:
|
||||||
|
- name: fastdl-maps
|
||||||
|
mountPath: /srv/maps
|
||||||
|
readOnly: true
|
||||||
|
volumes:
|
||||||
|
- name: fastdl-maps
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: fastdl-maps
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: fastdl
|
||||||
|
namespace: surf
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: fastdl
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: fastdl
|
||||||
|
namespace: surf
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||||
|
spec:
|
||||||
|
ingressClassName: haproxy
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- fastdl.megastructure.surf
|
||||||
|
secretName: fastdl-megastructure-surf-tls
|
||||||
|
rules:
|
||||||
|
- host: fastdl.megastructure.surf
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: fastdl
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
|
|
||||||
---
|
---
|
||||||
Reference in new issue
Block a user