# yaml-language-server: $schema=./values.schema.json
image:
  repository: ghcr.io/ich777/steamcmd
  pullPolicy: IfNotPresent
  tag: cs2@sha256:6c8e46d4300d27c33548a1a151da87b02d8afba37bd8b94970b9d14fcd4d2288

securityContext:
  container:
    readOnlyRootFilesystem: false
    runAsUser: 0
    runAsGroup: 0

service:
  main:
    ports:
      main:
        protocol: udp
        port: 27015
  rcon:
    enabled: true
    ports:
      rcon:
        enabled: true
        protocol: tcp
        port: 27020
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
