a
This commit is contained in:
parent
938db68be9
commit
ffef0a5d92
48
factorio/deployment.yaml
Normal file
48
factorio/deployment.yaml
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: factorio
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: factorio
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: factorio
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: factorio
|
||||||
|
- name: data
|
||||||
|
hostPath:
|
||||||
|
path: /data/factorio
|
||||||
|
containers:
|
||||||
|
- name: factorio
|
||||||
|
image: factoriotools/factorio
|
||||||
|
env:
|
||||||
|
- name: SAVE_NAME
|
||||||
|
value: server_krastorio_se
|
||||||
|
- name: LOAD_LATEST_SAVE
|
||||||
|
value: "false"
|
||||||
|
- name: GENERATE_NEW_SAVE
|
||||||
|
value: "false"
|
||||||
|
- name: CONFIG
|
||||||
|
value: /config
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: "2"
|
||||||
|
memory: "8Gi"
|
||||||
|
ports:
|
||||||
|
- containerPort: 34197
|
||||||
|
protocol: UDP
|
||||||
|
name: factorio
|
||||||
|
- containerPort: 27015
|
||||||
|
protocol: TCP
|
||||||
|
name: rcon
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /factorio
|
||||||
|
name: data
|
||||||
|
- mountPath: /config
|
||||||
|
name: config
|
23
factorio/kustomization.yaml
Normal file
23
factorio/kustomization.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||||
|
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: game
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- services.yaml
|
||||||
|
configMapGenerator:
|
||||||
|
- name: factorio
|
||||||
|
files:
|
||||||
|
- config/rconpw
|
||||||
|
- config/server-adminlist.json
|
||||||
|
- config/server-banlist.json
|
||||||
|
- config/server-settings.json
|
||||||
|
- config/server-whitelist.json
|
||||||
|
- config/map-settings.json
|
||||||
|
- config/map-gen-settings.json
|
||||||
|
commonLabels:
|
||||||
|
app: factorio
|
||||||
|
images:
|
||||||
|
- name: factoriotools/factorio
|
||||||
|
newTag: 1.1.69
|
33
factorio/services.yaml
Normal file
33
factorio/services.yaml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: factorio-game
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: factorio
|
||||||
|
type: LoadBalancer
|
||||||
|
ipFamilyPolicy: PreferDualStack
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
|
- IPv6
|
||||||
|
ports:
|
||||||
|
- port: 34197
|
||||||
|
protocol: UDP
|
||||||
|
targetPort: factorio
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: factorio-rcon
|
||||||
|
spec:
|
||||||
|
ipFamilyPolicy: PreferDualStack
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
|
- IPv6
|
||||||
|
selector:
|
||||||
|
app: factorio
|
||||||
|
ports:
|
||||||
|
- port: 27015
|
||||||
|
targetPort: rcon
|
||||||
|
protocol: TCP
|
||||||
|
|
36
headscale/server/daemonset.yaml
Normal file
36
headscale/server/daemonset.yaml
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
name: headscale
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: headscale
|
||||||
|
spec:
|
||||||
|
hostNetwork: true
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: headscale
|
||||||
|
- name: certs
|
||||||
|
secret:
|
||||||
|
secretName: wetofu-me-certs
|
||||||
|
- name: config
|
||||||
|
configMap:
|
||||||
|
name: headscale
|
||||||
|
containers:
|
||||||
|
- name: headscale
|
||||||
|
image: ghcr.io/juanfont/headscale
|
||||||
|
args:
|
||||||
|
- serve
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /var/lib/headscale
|
||||||
|
- name: certs
|
||||||
|
mountPath: /certs
|
||||||
|
- name: config
|
||||||
|
mountPath: /etc/headscale
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: headscale
|
25
headscale/server/ingress.yaml
Normal file
25
headscale/server/ingress.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: headscale
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: letsencrypt
|
||||||
|
kubernetes.io/ingress.class: traefik
|
||||||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||||||
|
traefik.ingress.kubernetes.io/router.tls: 'true'
|
||||||
|
spec:
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- '*.wetofu.me'
|
||||||
|
secretName: wetofu-me-certs
|
||||||
|
rules:
|
||||||
|
- host: hs.wetofu.me
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: headscale
|
||||||
|
port:
|
||||||
|
number: 8080
|
13
headscale/server/kustomization.yaml
Normal file
13
headscale/server/kustomization.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||||
|
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- daemonset.yaml
|
||||||
|
- pvc.yaml
|
||||||
|
- service.yaml
|
||||||
|
- ingress.yaml
|
||||||
|
configMapGenerator:
|
||||||
|
- name: headscale
|
||||||
|
files:
|
||||||
|
- config/config.yaml
|
10
headscale/server/pvc.yaml
Normal file
10
headscale/server/pvc.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: headscale
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1G
|
15
headscale/server/service.yaml
Normal file
15
headscale/server/service.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: headscale
|
||||||
|
spec:
|
||||||
|
ipFamilyPolicy: PreferDualStack
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
|
- IPv6
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 8080
|
||||||
|
targetPort: 8081
|
||||||
|
selector:
|
||||||
|
app: headscale
|
38
ksp-dmpserver/deployment.yaml
Normal file
38
ksp-dmpserver/deployment.yaml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: ksp-dmpserver
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ksp-dmpserver
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: ksp-dmpserver
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
hostPath:
|
||||||
|
path: /data/ksp-server
|
||||||
|
containers:
|
||||||
|
- name: ksp-dmpserver
|
||||||
|
image: ksp-dmpserver
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: '1'
|
||||||
|
memory: '512Mi'
|
||||||
|
ports:
|
||||||
|
- name: ksp
|
||||||
|
protocol: TCP
|
||||||
|
containerPort: 6702
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /opt/DMPServer/Config
|
||||||
|
subPath: Config
|
||||||
|
- name: data
|
||||||
|
mountPath: /opt/DMPServer/Plugins
|
||||||
|
subPath: Plugins
|
||||||
|
- name: data
|
||||||
|
mountPath: /opt/DMPServer/Universe
|
||||||
|
subPath: Universe
|
13
ksp-dmpserver/kustomization.yaml
Normal file
13
ksp-dmpserver/kustomization.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||||
|
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
images:
|
||||||
|
- name: ksp-dmpserver
|
||||||
|
newName: ghcr.io/midymidy-mc/ksp-dmpserver
|
||||||
|
newTag: v0.3.8.3
|
||||||
|
namespace: game
|
16
ksp-dmpserver/service.yaml
Normal file
16
ksp-dmpserver/service.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: ksp-dmpserver
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: ksp-dmpserver
|
||||||
|
type: LoadBalancer
|
||||||
|
ipFamilyPolicy: PreferDualStack
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
|
- IPv6
|
||||||
|
ports:
|
||||||
|
- port: 6702
|
||||||
|
protocol: TCP
|
||||||
|
targetPort: ksp
|
28
ksp-forward/daemonset.yaml
Normal file
28
ksp-forward/daemonset.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: DaemonSet
|
||||||
|
metadata:
|
||||||
|
name: ksp-forwarder
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ksp-forwarder
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: ksp-forwarder
|
||||||
|
spec:
|
||||||
|
hostNetwork: true
|
||||||
|
containers:
|
||||||
|
- name: ksp-forwarder
|
||||||
|
image: alpine/socat:1.7.4.3-r0
|
||||||
|
args:
|
||||||
|
- '-ls'
|
||||||
|
- UDP-LISTEN:8800,reuseaddr,fork
|
||||||
|
- UDP6:ksp.midymidy.tk:8800
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 32Mi
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 8Mi
|
6
ksp-forward/kustomization.yaml
Normal file
6
ksp-forward/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||||
|
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- daemonset.yaml
|
44
ksp-lmpserver/deployment.yaml
Normal file
44
ksp-lmpserver/deployment.yaml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: ksp-lmpserver
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ksp-lmpserver
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: ksp-lmpserver
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: data
|
||||||
|
hostPath:
|
||||||
|
path: /data/ksp-lmpserver
|
||||||
|
containers:
|
||||||
|
- name: ksp-lmpserver
|
||||||
|
image: ghcr.io/lunamultiplayer/lunamultiplayer/server:master
|
||||||
|
imagePullPolicy: Always
|
||||||
|
stdin: true
|
||||||
|
tty: true
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: '1'
|
||||||
|
memory: '512Mi'
|
||||||
|
ports:
|
||||||
|
- name: ksp
|
||||||
|
protocol: UDP
|
||||||
|
containerPort: 8800
|
||||||
|
- protocol: TCP
|
||||||
|
containerPort: 8900
|
||||||
|
name: nport
|
||||||
|
volumeMounts:
|
||||||
|
- name: data
|
||||||
|
mountPath: /LMPServer/Config
|
||||||
|
subPath: Config
|
||||||
|
- name: data
|
||||||
|
mountPath: /LMPServer/Plugins
|
||||||
|
subPath: Plugins
|
||||||
|
- name: data
|
||||||
|
mountPath: /LMPServer/Universe
|
||||||
|
subPath: Universe
|
9
ksp-lmpserver/kustomization.yaml
Normal file
9
ksp-lmpserver/kustomization.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||||
|
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- service.yaml
|
||||||
|
namespace: game
|
16
ksp-lmpserver/service.yaml
Normal file
16
ksp-lmpserver/service.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: ksp-lmpserver
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
ipFamilyPolicy: PreferDualStack
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
|
- IPv6
|
||||||
|
selector:
|
||||||
|
app: ksp-lmpserver
|
||||||
|
ports:
|
||||||
|
- port: 8800
|
||||||
|
protocol: UDP
|
||||||
|
targetPort: ksp
|
28
pac-server/deployment.yaml
Normal file
28
pac-server/deployment.yaml
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: pac-server
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: pac-server
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: pac-server
|
||||||
|
spec:
|
||||||
|
volumes:
|
||||||
|
- name: conf
|
||||||
|
configMap:
|
||||||
|
name: pac-config
|
||||||
|
defaultMode: 420
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: nginx
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 256Mi
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /usr/share/nginx/html
|
||||||
|
name: conf
|
13
pac-server/kustomization.yaml
Normal file
13
pac-server/kustomization.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||||
|
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
- server.yaml
|
||||||
|
configMapGenerator:
|
||||||
|
- name: pac-config
|
||||||
|
files:
|
||||||
|
- config/proxy.pac
|
||||||
|
commonLabels:
|
||||||
|
app: pac-server
|
15
pac-server/server.yaml
Normal file
15
pac-server/server.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: pac-server
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: pac-server
|
||||||
|
ports:
|
||||||
|
- port: 8089
|
||||||
|
targetPort: 80
|
||||||
|
type: LoadBalancer
|
||||||
|
ipFamilies:
|
||||||
|
- IPv4
|
||||||
|
- IPv6
|
||||||
|
ipFamilyPolicy: PreferDualStack
|
Loading…
Reference in New Issue
Block a user