diff --git a/charts/incubator/cs2/.helmignore b/charts/incubator/cs2/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/cs2/.helmignore @@ -0,0 +1,30 @@ +# 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 +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/cs2/CHANGELOG.md b/charts/incubator/cs2/CHANGELOG.md new file mode 100644 index 00000000000..825c32f0d03 --- /dev/null +++ b/charts/incubator/cs2/CHANGELOG.md @@ -0,0 +1 @@ +# Changelog diff --git a/charts/incubator/cs2/Chart.yaml b/charts/incubator/cs2/Chart.yaml new file mode 100644 index 00000000000..ffa7c2ce4ff --- /dev/null +++ b/charts/incubator/cs2/Chart.yaml @@ -0,0 +1,28 @@ +apiVersion: v2 +appVersion: "latest" +dependencies: + - name: common + repository: https://library-charts.truecharts.org + version: 14.3.3 +deprecated: false +description: A custom SteamCMD chart that runs CS2. +home: https://truecharts.org/charts/incubator/cs2 +icon: https://truecharts.org/img/hotlink-ok/chart-icons/cs2.png +keywords: + - cs2 + - counter-strike +kubeVersion: ">=1.16.0-0" +maintainers: + - email: info@truecharts.org + name: TrueCharts + url: https://truecharts.org +name: cs2 +sources: + - https://github.com/truecharts/charts/tree/master/charts/incubator/cs2 + - https://github.com/ich777/docker-steamcmd-server/tree/cs2 + - https://ghcr.io/ich777/steamcmd:cs2 +type: application +version: 0.0.1 +annotations: + truecharts.org/category: games + truecharts.org/SCALE-support: "true" diff --git a/charts/incubator/cs2/README.md b/charts/incubator/cs2/README.md new file mode 100644 index 00000000000..7e59600739c --- /dev/null +++ b/charts/incubator/cs2/README.md @@ -0,0 +1 @@ +# README diff --git a/charts/incubator/cs2/icon.png b/charts/incubator/cs2/icon.png new file mode 100644 index 00000000000..9258a7cae6e Binary files /dev/null and b/charts/incubator/cs2/icon.png differ diff --git a/charts/incubator/cs2/questions.yaml b/charts/incubator/cs2/questions.yaml new file mode 100644 index 00000000000..0977fdbb0d7 --- /dev/null +++ b/charts/incubator/cs2/questions.yaml @@ -0,0 +1,146 @@ +# Include{groups} +portals: {} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} + +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + + +# Include{containerBasic} +# Include{containerAdvanced} + + - variable: cs2 + group: App Configuration + label: CS2 + schema: + additional_attrs: true + type: dict + attrs: + - variable: game + label: Game Configuration + schema: + additional_attrs: true + type: dict + attrs: + - variable: id + label: Game Id + description: The ID of the container to download at start up. + schema: + type: int + required: true + default: 730 + - variable: user + label: Steam User + description: Leave blank for anonymous login. + schema: + type: string + default: "" + - variable: password + label: Steam Password + description: Leave blank for anonymous login. + schema: + type: string + private: true + default: "" + - variable: validate + label: Validate + description: Validates the game data. + schema: + type: boolean + default: true + - variable: params + label: Game Params + schema: + type: list + default: + - -dedicated + - -dev + - +map + - de_inferno + - +game_type 0 + - +game_mode 1 + - -usercon + items: + - variable: param + label: Param + schema: + type: string + required: true + default: "" + +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - 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: 27015 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceRoot} + - variable: steamcmd + label: App SteamCMD Storage + description: Stores the Application SteamCMD. + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} + - variable: serverfiles + label: App ServerFiles Storage + description: Stores the Application ServerFiles. + schema: + additional_attrs: true + type: dict + attrs: +# Include{persistenceBasic} +# Include{persistenceList} +# Include{ingressList} +# Include{securityContextRoot} + + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 0 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID of the user running the application" + schema: + type: int + default: 0 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 + +# Include{resources} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/cs2/templates/NOTES.txt b/charts/incubator/cs2/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/cs2/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/cs2/templates/common.yaml b/charts/incubator/cs2/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/cs2/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/cs2/values.yaml b/charts/incubator/cs2/values.yaml new file mode 100644 index 00000000000..25a8988d83e --- /dev/null +++ b/charts/incubator/cs2/values.yaml @@ -0,0 +1,67 @@ +image: + repository: tccr.io/truecharts/cs2 + pullPolicy: IfNotPresent + tag: latest@sha256:24f52ee1c81175980b76914803bc3ca15c02d4217ccc1c0baf414b8cd2d5f44f + +securityContext: + container: + readOnlyRootFilesystem: false + runAsUser: 0 + runAsGroup: 0 + +service: + main: + ports: + main: + protocol: udp + port: 27015 + +cs2: + game: + id: 730 + user: "" + pass: "" + validate: false + params: + - -dedicated + - -dev + - +map + - de_inferno + - +game_type 0 + - +game_mode 1 + - -usercon + + +workload: + main: + podSpec: + containers: + main: + probes: + liveness: + enabled: false + readiness: + enabled: false + startup: + enabled: false + env: + STEAMCMD_DIR: "{{ .Values.persistence.steamcmd.mountPath }}" + SERVER_DIR: "{{ .Values.persistence.serverfiles.mountPath }}" + GAME_PORT: "{{ .Values.service.main.ports.main.port }}" + GAME_ID: "{{ .Values.cs2.game.id }}" + USERNAME: "{{ .Values.cs2.game.user }}" + PASSWRD: "{{ .Values.cs2.game.password }}" + GAME_PARAMS: '{{ join " " .Values.cs2.game.params }}' + VALIDATE: "{{ .Values.cs2.game.validate }}" + +persistence: + steamcmd: + enabled: true + mountPath: /serverdata/steamcmd + serverfiles: + enabled: true + mountPath: /serverdata/serverfiles + +portal: + open: + enabled: false