feat(apps): add games train and two gameservers (#1839)

* feat(apps): add games train and two gameservers

* nightly ftw

* move to tccr

* whoops

* another whoops

* some cleanup

* setup impostor ci
This commit is contained in:
Kjeld Schouten-Lebbing 2022-02-04 21:06:27 +01:00 committed by GitHub
parent 43f060fb57
commit 5f50f730b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 1018 additions and 1 deletions

View File

@ -34,6 +34,8 @@ jobs:
- 'charts/dependency/**'
- 'charts/library/**'
- 'charts/core/**'
- 'charts/enterprise/**'
- 'charts/games/**'
- run: echo '${{ toJson(steps.filter.outputs) }}' > changes.json
- id: reduce
run: |
@ -90,6 +92,10 @@ jobs:
train="dependency"
elif test -f "./charts/core/${{ matrix.app }}/Chart.yaml"; then
train="core"
elif test -f "./charts/games/${{ matrix.app }}/Chart.yaml"; then
train="games"
elif test -f "./charts/enterprise/${{ matrix.app }}/Chart.yaml"; then
train="enterprise"
else
train="incubator"
fi

View File

@ -34,6 +34,8 @@ jobs:
- 'charts/library/**'
- 'charts/dependency/**'
- 'charts/core/**'
- 'charts/enterprise/**'
- 'charts/games/**'
- name: Filter filter-output
run: echo '${{ toJson(steps.filter.outputs) }}' > changes.json
- name: Bump
@ -55,6 +57,10 @@ jobs:
train="dependency"
elif test -f "./charts/core/${chart}/Chart.yaml"; then
train="core"
elif test -f "./charts/games/${{ matrix.app }}/Chart.yaml"; then
train="games"
elif test -f "./charts/enterprise/${{ matrix.app }}/Chart.yaml"; then
train="enterprise"
else
train="incubator"
fi

View File

@ -0,0 +1,24 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS

View File

@ -0,0 +1,27 @@
apiVersion: v2
appVersion: "nightly"
dependencies:
- name: common
repository: https://truecharts.org
version: 8.14.4
deprecated: false
description: A private Among Us server
home: https://github.com/truecharts/apps/tree/master/charts/games/impostor-server
icon: https://truecharts.org/_static/img/appicons/impostor-server-icon.png
keywords:
- imposter-server
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: imposter-server
sources:
- https://github.com/truecharts/apps/tree/master/incubator/imposter-server
type: application
version: 0.0.1
annotations:
truecharts.org/catagories: |
- games
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U

View File

@ -0,0 +1,4 @@
image:
repository: tccr.io/truecharts/impostor-server-nightly
pullPolicy: IfNotPresent
tag: vnightly@sha256:b80672dfa902a5c0fa485031f63c702899f182dc0d3af84e97718049a0af2399

View File

@ -0,0 +1,308 @@
# Include{groups}
portals:
web_portal:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
questions:
- variable: portal
group: "Container Image"
label: "Configure Portal Button"
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable"
description: "enable the portal button"
schema:
hidden: true
editable: false
type: boolean
default: true
# Include{global}
- variable: imageSelector
group: "Container Image"
label: "Select Image"
schema:
type: string
default: "image"
enum:
- value: "image"
description: "Stable"
- value: "nightlyImage"
description: "Nightly"
- variable: controller
group: "Controller"
label: ""
schema:
additional_attrs: true
type: dict
attrs:
- variable: advanced
label: "Show Advanced Controller Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: type
description: "Please specify type of workload to deploy"
label: "(Advanced) Controller Type"
schema:
type: string
default: "deployment"
required: true
enum:
- value: "deployment"
description: "Deployment"
- value: "statefulset"
description: "Statefulset"
- value: "daemonset"
description: "Daemonset"
- variable: replicas
description: "Number of desired pod replicas"
label: "Desired Replicas"
schema:
type: int
default: 1
required: true
- variable: strategy
description: "Please specify type of workload to deploy"
label: "(Advanced) Update Strategy"
schema:
type: string
default: "Recreate"
required: true
enum:
- value: "Recreate"
description: "Recreate: Kill existing pods before creating new ones"
- value: "RollingUpdate"
description: "RollingUpdate: Create new pods and then kill old ones"
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: env
group: "Container Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
# Include{fixedEnv}
- variable: PUID
label: "Run as User"
schema:
type: int
default: "568"
- variable: IMPOSTOR_Server__PublicIp
label: "Server Public IP"
schema:
type: string
required: true
default: "127.0.0.1"
- variable: IMPOSTOR_Server__ListenIp
label: "Server Listen IP"
schema:
type: string
required: true
default: "0.0.0.0"
- variable: IMPOSTOR_AntiCheat__Enabled
label: "Enable/Disable Anti Cheat"
schema:
type: boolean
required: false
default: true
- variable: IMPOSTOR_AntiCheat__BanIpFromGame
label: "Enable/Disable Anti Cheat Ban IP"
schema:
type: boolean
required: false
default: true
- variable: debug
label: "Show Debug settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: IMPOSTOR_Debug__GameRecorderEnabled
label: "Enable/Disable Game Recorder"
schema:
type: boolean
required: false
default: false
- variable: IMPOSTOR_Debug__GameRecorderPath
label: "Game Recorder Path"
schema:
type: string
required: false
default: ""
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
schema:
additional_attrs: true
type: dict
attrs:
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelector}
- variable: main
label: "Main Service Port Configuration"
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
schema:
type: int
default: 22023
required: true
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: enabled
label: "Enable the port"
schema:
type: boolean
default: true
- variable: protocol
label: "Port Type"
schema:
type: string
default: "UDP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 22023
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostNetwork
group: "Networking and Services"
label: "Host-Networking (Complicated)"
schema:
type: boolean
default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceList}
# Include{ingressList}
- variable: advancedSecurity
label: "Show Advanced Security Settings"
group: "Security and Permissions"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: securityContext
label: "Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: privileged
label: "Privileged mode"
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: false
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
type: boolean
default: true
# Include{securityContextAdvanced}
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 568
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
schema:
type: int
default: 568
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
# Include{podSecurityContextAdvanced}
# Include{resources}
# Include{advanced}
# Include{addons}

View File

@ -0,0 +1 @@
{{ include "common.all" . }}

View File

@ -0,0 +1,43 @@
image:
repository: tccr.io/truecharts/impostor-server
pullPolicy: IfNotPresent
tag: v1.6.0@sha256:789dda6ea04417d5a7abb9f0373e53ecab7a2cd7b77fa7fc8d9620d977b0e863
nightlyImage:
repository: tccr.io/truecharts/impostor-server-nightly
pullPolicy: IfNotPresent
tag: vnightly@sha256:b80672dfa902a5c0fa485031f63c702899f182dc0d3af84e97718049a0af2399
env:
PUID: 568
USER_ID: "{{ .Values.env.PUID }}"
IMPOSTOR_Server__PublicIp: "127.0.0.1"
IMPOSTOR_Server__ListenIp: "0.0.0.0"
IMPOSTOR_AntiCheat__Enabled: true
IMPOSTOR_AntiCheat__BanIpFromGame: true
IMPOSTOR_Debug__GameRecorderEnabled: false
IMPOSTOR_Debug__GameRecorderPath: ""
service:
main:
ports:
main:
protocol: UDP
port: 22023
targetPort: 22023
probes:
# -- Liveness probe configuration
# @default -- See below
liveness:
enabled: false
# -- Redainess probe configuration
# @default -- See below
readiness:
enabled: false
# -- Startup probe configuration
# @default -- See below
startup:
enabled: false

View File

@ -0,0 +1,24 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS

View File

@ -0,0 +1,28 @@
apiVersion: v2
appVersion: "2022.1.0"
dependencies:
- name: common
repository: https://truecharts.org
version: 8.14.4
deprecated: false
description: Minecraft Bedrock Dedicated Server
home: https://github.com/truecharts/apps/tree/master/charts/games/minecraft-bedrock
icon: https://truecharts.org/_static/img/appicons/minecraft-bedrock-icon.png
keywords:
- minecraft
kubeVersion: '>=1.16.0-0'
maintainers:
- email: info@truecharts.org
name: TrueCharts
url: https://truecharts.org
name: minecraft-bedrock
sources:
- https://github.com/itzg/docker-minecraft-server
- https://hub.docker.com/r/itzg/minecraft-server
type: application
version: 0.0.1
annotations:
truecharts.org/catagories: |
- games
truecharts.org/SCALE-support: "true"
truecharts.org/grade: U

View File

@ -0,0 +1,483 @@
# Include{groups}
portals:
web_portal:
protocols:
- "$kubernetes-resource_configmap_portal_protocol"
host:
- "$kubernetes-resource_configmap_portal_host"
ports:
- "$kubernetes-resource_configmap_portal_port"
questions:
- variable: portal
group: "Container Image"
label: "Configure Portal Button"
schema:
type: dict
hidden: true
attrs:
- variable: enabled
label: "Enable"
description: "enable the portal button"
schema:
hidden: true
editable: false
type: boolean
default: true
# Include{global}
- variable: controller
group: "Controller"
label: ""
schema:
additional_attrs: true
type: dict
attrs:
- variable: advanced
label: "Show Advanced Controller Settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: type
description: "Please specify type of workload to deploy"
label: "(Advanced) Controller Type"
schema:
type: string
default: "deployment"
required: true
enum:
- value: "deployment"
description: "Deployment"
- value: "statefulset"
description: "Statefulset"
- value: "daemonset"
description: "Daemonset"
- variable: replicas
description: "Number of desired pod replicas"
label: "Desired Replicas"
schema:
type: int
default: 1
required: true
- variable: strategy
description: "Please specify type of workload to deploy"
label: "(Advanced) Update Strategy"
schema:
type: string
default: "Recreate"
required: true
enum:
- value: "Recreate"
description: "Recreate: Kill existing pods before creating new ones"
- value: "RollingUpdate"
description: "RollingUpdate: Create new pods and then kill old ones"
- value: "OnDelete"
description: "(Legacy) OnDelete: ignore .spec.template changes"
# Include{controllerExpert}
- variable: env
group: "Container Configuration"
label: "Image Environment"
schema:
additional_attrs: true
type: dict
attrs:
# Include{fixedEnv}
- variable: PUID
label: "Run as User"
schema:
type: int
default: "568"
- variable: VERSION
label: "Minecraft version"
description: "Options: LATEST, PREVIOUS or version number"
schema:
type: string
required: true
default: "LATEST"
- variable: SERVER_NAME
label: "Server Name"
schema:
type: string
required: true
default: "Dedicated Server on TrueNAS Scale!"
- variable: GAMEMODE
label: "Default gamemode"
schema:
type: string
required: true
default: "survival"
enum:
- value: "survival"
description: "Survival"
- value: "creative"
description: "Creative"
- value: "adventure"
description: "Adventure"
- value: "spectator"
description: "Spectator"
- variable: DIFFICULTY
label: "Difficulty"
schema:
type: string
required: true
default: "easy"
enum:
- value: "peaceful"
description: "Peaceful"
- value: "easy"
description: "Easy"
- value: "normal"
description: "Normal"
- value: "hard"
description: "Hard"
- variable: LEVEL_TYPE
label: "Level type"
schema:
type: string
required: true
default: "DEFAULT"
enum:
- value: "DEFAULT"
description: "Default"
- value: "FLAT"
description: "Flat"
- value: "LEGACY"
description: "Legacy"
- variable: ALLOW_CHEATS
label: "Enable/Disable Cheats"
schema:
type: boolean
required: false
default: false
- variable: MAX_PLAYERS
label: "Max players"
schema:
type: int
min: 1
required: true
default: 10
- variable: ONLINE_MODE
label: "Online mode"
schema:
type: boolean
required: false
default: true
- variable: WHITE_LIST
label: "White list"
schema:
type: boolean
required: false
default: false
- variable: VIEW_DISTANCE
label: "View distance"
schema:
type: int
min: 1
required: true
default: 32
- variable: TICK_DISTANCE
label: "Tick distance"
schema:
type: int
min: 1
required: true
default: 4
- variable: PLAYER_IDLE_TIMEOUT
label: "Player idle timeout"
schema:
type: int
min: 1
required: true
default: 30
- variable: MAX_THREADS
label: "Max threads"
schema:
type: int
min: 1
required: true
default: 8
- variable: LEVEL_NAME
label: "Level name"
schema:
type: string
required: true
default: "Bedrock level"
- variable: LEVEL_SEED
label: "Level seed"
schema:
type: string
required: false
default: ""
- variable: DEFAULT_PLAYER_PERMISSION_LEVEL
label: "Default player permission level"
schema:
type: string
required: true
default: "member"
enum:
- value: "visitor"
description: "Visitor"
- value: "member"
description: "Member"
- value: "operator"
description: "Operator"
- variable: TEXTUREPACK_REQUIRED
label: "Require texturepack"
schema:
type: boolean
required: false
default: false
- variable: SERVER_AUTHORITATIVE_MOVEMENT
label: "Server authoritave movement"
schema:
type: string
required: true
default: "server-auth"
enum:
- value: "client-auth"
description: "client-auth"
- value: "server-auth"
description: "server-auth"
- value: "server-auth-with-rewind"
description: "server-auth-with-rewind"
- variable: PLAYER_MOVEMENT_SCORE_THRESHOLD
label: "Player movement score threshold"
schema:
type: int
min: 1
required: true
default: 20
- variable: PLAYER_MOVEMENT_DISTANCE_THRESHOLD
label: "Player movement distance threshold"
schema:
type: string
required: true
default: "0.3"
- variable: PLAYER_MOVEMENT_DURATION_THRESHOLD_IN_MS
label: "Player movement duration threshold in MS"
schema:
type: int
min: 1
required: true
default: 500
- variable: CORRECT_PLAYER_MOVEMENT
label: "Enable/Disable Player movement correction"
schema:
type: boolean
required: false
default: false
# Include{containerConfig}
- variable: service
group: "Networking and Services"
label: "Configure Service(s)"
schema:
additional_attrs: true
type: dict
attrs:
- variable: main
label: "Main Service"
description: "The Primary service on which the healthcheck runs, often the webUI"
schema:
additional_attrs: true
type: dict
attrs:
# Include{serviceSelector}
- variable: main
label: "Main Service Port Configuration"
schema:
additional_attrs: true
type: dict
attrs:
- variable: port
label: "Port"
description: "This port exposes the container port on the service"
schema:
type: int
default: 19132
required: true
- variable: advanced
label: "Show Advanced settings"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: enabled
label: "Enable the port"
schema:
type: boolean
default: true
- variable: protocol
label: "Port Type"
schema:
type: string
default: "UDP"
enum:
- value: HTTP
description: "HTTP"
- value: "HTTPS"
description: "HTTPS"
- value: TCP
description: "TCP"
- value: "UDP"
description: "UDP"
- variable: nodePort
label: "Node Port (Optional)"
description: "This port gets exposed to the node. Only considered when service type is NodePort, Simple or LoadBalancer"
schema:
type: int
min: 9000
max: 65535
- variable: targetPort
label: "Target Port"
description: "The internal(!) port on the container the Application runs on"
schema:
type: int
default: 19132
- variable: serviceexpert
group: "Networking and Services"
label: "Show Expert Config"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: hostNetwork
group: "Networking and Services"
label: "Host-Networking (Complicated)"
schema:
type: boolean
default: false
# Include{serviceExpert}
# Include{serviceList}
- variable: persistence
label: "Integrated Persistent Storage"
description: "Integrated Persistent Storage"
group: "Storage and Persistence"
schema:
additional_attrs: true
type: dict
attrs:
- variable: config
label: "App Config Storage"
description: "Stores the Application Configuration."
schema:
additional_attrs: true
type: dict
attrs:
- variable: type
label: "Type of Storage"
description: "Sets the persistence type, Anything other than PVC could break rollback!"
schema:
type: string
default: "simplePVC"
enum:
- value: "simplePVC"
description: "PVC (simple)"
- value: "simpleHP"
description: "HostPath (simple)"
- value: "emptyDir"
description: "emptyDir"
- value: "pvc"
description: "pvc"
- value: "hostPath"
description: "hostPath"
# Include{persistenceBasic}
- variable: hostPath
label: "hostPath"
description: "Path inside the container the storage is mounted"
schema:
show_if: [["type", "=", "hostPath"]]
type: hostpath
- variable: medium
label: "EmptyDir Medium"
schema:
show_if: [["type", "=", "emptyDir"]]
type: string
default: ""
enum:
- value: ""
description: "Default"
- value: "Memory"
description: "Memory"
# Include{persistenceAdvanced}
# Include{persistenceList}
# Include{ingressList}
- variable: advancedSecurity
label: "Show Advanced Security Settings"
group: "Security and Permissions"
schema:
type: boolean
default: false
show_subquestions_if: true
subquestions:
- variable: securityContext
label: "Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: privileged
label: "Privileged mode"
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
schema:
type: boolean
default: false
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
schema:
type: boolean
default: true
# Include{securityContextAdvanced}
- variable: podSecurityContext
group: "Security and Permissions"
label: "Pod Security Context"
schema:
additional_attrs: true
type: dict
attrs:
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
schema:
type: int
default: 568
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
schema:
type: int
default: 568
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
schema:
type: int
default: 568
# Include{podSecurityContextAdvanced}
# Include{resources}
# Include{advanced}
# Include{addons}

View File

@ -0,0 +1 @@
{{ include "common.all" . }}

View File

@ -0,0 +1,62 @@
image:
repository: tccr.io/truecharts/minecraft-bedrock
tag: 2022.1.0@sha256:63fbf9347350871633418621dcf46bde8d36b647ff1c6f24555aa1487bd62698
pullPolicy: Always
env:
UID: "{{ .Values.env.PUID }}"
GID: "{{ .Values.podSecurityContext.fsGroup }}"
EULA: "TRUE"
VERSION: "LATEST"
SERVER_NAME: "TrueCharts Dedicated Server!"
SERVER_PORT: "{{ .Values.service.main.ports.main.targetPort }}"
SERVER_PORT_V6: "{{ .Values.service.main.ports.main.targetPort }}"
GAMEMODE: "survival"
DIFFICULTY: "easy"
LEVEL_TYPE: "DEFAULT"
ALLOW_CHEATS: false
MAX_PLAYERS: 10
ONLINE_MODE: true
WHITE_LIST: false
VIEW_DISTANCE: 32
TICK_DISTANCE: 4
PLAYER_IDLE_TIMEOUT: 30
MAX_THREADS: 8
LEVEL_NAME: "Bedrock level"
LEVEL_SEED: ""
DEFAULT_PLAYER_PERMISSION_LEVEL: "member"
TEXTUREPACK_REQUIRED: false
SERVER_AUTHORITATIVE_MOVEMENT: server-auth
PLAYER_MOVEMENT_SCORE_THRESHOLD: 20
PLAYER_MOVEMENT_DISTANCE_THRESHOLD: 0.3
PLAYER_MOVEMENT_DURATION_THRESHOLD_IN_MS: 500
CORRECT_PLAYER_MOVEMENT: false
persistence:
config:
enabled: true
mountPath: "/data"
service:
main:
ports:
main:
port: 19132
targetPort: 19132
protocol: UDP
probes:
# -- Liveness probe configuration
# @default -- See below
liveness:
enabled: false
# -- Redainess probe configuration
# @default -- See below
readiness:
enabled: false
# -- Startup probe configuration
# @default -- See below
startup:
enabled: false

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -40,7 +40,7 @@ function incr_semver() {
BUMPTYPE=${1}
if [ -z ${2+x} ]; then
for train in stable incubator develop non-free deprecated dependency core; do
for train in stable incubator games enterprise develop non-free deprecated dependency core; do
for chart in charts/${train}/*; do
if [ -d "${chart}" ]; then
echo "Bumping patch version for ${train}/${chart}"