Update tf2 and shadowsocks

This commit is contained in:
Nikolai Rodionov 2024-05-26 19:23:19 +02:00
parent 4fd1ea57ae
commit 4331622a9a
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
10 changed files with 34 additions and 22 deletions

View File

@ -1,6 +1,6 @@
dependencies: dependencies:
- name: softplayer-lib-workload - name: softplayer-lib-workload
repository: oci://git.badhouseplants.net/softplayer repository: oci://git.badhouseplants.net/softplayer
version: 0.1.2 version: 0.1.8
digest: sha256:309dcf8ff3e54beea96a5f3397b4b0c121089c579202681a02dc372d75b2bb74 digest: sha256:705ec28e79232607706e15dbbdd936fb2fbcae4b253da37d1e08140ee8c7e897
generated: "2024-05-19T22:30:05.772517+02:00" generated: "2024-05-26T19:22:48.889256+02:00"

View File

@ -10,7 +10,7 @@ maintainers:
url: https://badhouseplants.net url: https://badhouseplants.net
dependencies: dependencies:
- name: softplayer-lib-workload - name: softplayer-lib-workload
version: 0.1.2 version: 0.1.8
repository: oci://git.badhouseplants.net/softplayer repository: oci://git.badhouseplants.net/softplayer
sources: sources:
- https://github.com/shadowsocks/shadowsocks-libev - https://github.com/shadowsocks/shadowsocks-libev

View File

@ -40,6 +40,3 @@ service:
port: 8388 port: 8388
targetPort: 8388 targetPort: 8388
protocol: TCP protocol: TCP
global: {}
softplayer-lib-workload: {}

View File

@ -1,6 +1,6 @@
dependencies: dependencies:
- name: softplayer-lib-workload - name: softplayer-lib-workload
repository: oci://git.badhouseplants.net/softplayer repository: oci://git.badhouseplants.net/softplayer
version: 0.1.2 version: 0.1.8
digest: sha256:309dcf8ff3e54beea96a5f3397b4b0c121089c579202681a02dc372d75b2bb74 digest: sha256:705ec28e79232607706e15dbbdd936fb2fbcae4b253da37d1e08140ee8c7e897
generated: "2024-05-19T20:39:53.311958+02:00" generated: "2024-05-26T13:04:45.205328+02:00"

View File

@ -10,7 +10,7 @@ maintainers:
url: https://badhouseplants.net url: https://badhouseplants.net
dependencies: dependencies:
- name: softplayer-lib-workload - name: softplayer-lib-workload
version: 0.1.2 version: 0.1.8
repository: oci://git.badhouseplants.net/softplayer repository: oci://git.badhouseplants.net/softplayer
annotations: annotations:
allowed_workload_kinds: "Deployment" allowed_workload_kinds: "Deployment"

View File

@ -1,4 +1,3 @@
---
workload: workload:
kind: Deployment kind: Deployment
containers: containers:
@ -22,6 +21,25 @@ workload:
envFrom: envFrom:
- environment - environment
- secrets - secrets
livenessProbe:
tcpSocket:
port: 27015
failureThreshold: 6
periodSeconds: 10
readinessProbe:
tcpSocket:
port: 27015
failureThreshold: 2
periodSeconds: 10
startupProbe:
failureThreshold: 80
initialDelaySeconds: 30
periodSeconds: 30
exec:
command:
- grep
- "Connectivity test: OK!"
- /Steam/logs/connection_log.txt
initContainers: initContainers:
0-prepare-config: 0-prepare-config:
image: image:
@ -34,7 +52,7 @@ workload:
data: data:
path: /tf-data path: /tf-data
files: files:
server-cfg: servercfg:
mode: 420 mode: 420
path: /src/server.cfg path: /src/server.cfg
subPath: server.cfg subPath: server.cfg
@ -65,23 +83,23 @@ traefik:
tf2: tf2:
routes: routes:
- services: - services:
- name: "{{ .Release.Name }}" - name: '{{ include "chart.fullname" $ }}'
port: 27015 port: 27015
weight: 10 weight: 10
nativeLB: false nativeLB: true
tcpRoutes: tcpRoutes:
rcon: rcon:
routes: routes:
- match: HostSNI(`*`) - match: HostSNI(`*`)
services: services:
- name: "{{ .Release.Name }}" - name: '{{ include "chart.fullname" $ }}'
port: 27015 port: 27015
nativeLB: true nativeLB: true
storage: storage:
data: data:
storageClassName: default storageClassName: default
size: 45G size: 20G
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
env: env:
@ -109,7 +127,7 @@ extraVolumes:
steam: steam:
emptyDir: {} emptyDir: {}
files: files:
server-cfg: servercfg:
sensitive: true sensitive: true
data: data:
server.cfg: |- server.cfg: |-
@ -185,11 +203,8 @@ files:
net_maxfilesize 15 net_maxfilesize 15
// Team Balancing // // Team Balancing //
// Enable team balancing // Enable team balancing
mp_autoteambalance 1
// Time after the teams become unbalanced to attempt to switch players. // Time after the teams become unbalanced to attempt to switch players.
mp_autoteambalance_delay 60
// Time after the teams become unbalanced to print a balance warning // Time after the teams become unbalanced to print a balance warning
mp_autoteambalance_warning_delay 30
// Teams are unbalanced when one team has this many more players than the other team. (0 disables check) // Teams are unbalanced when one team has this many more players than the other team. (0 disables check)
mp_teams_unbalance_limit 1 mp_teams_unbalance_limit 1
// Round and Game Times // // Round and Game Times //