log_format = "json" ignored in config.toml
helm upgrade "gitlab-runner" gitlab-runner/gitlab-runner \
--install \
--version 0.48.0 \
--values gitlab-runner/values.yaml \
--set runners.name="${ENVIRONMENT}" \
--set runners.tags="k8s:${ENVIRONMENT}"
$ cat gitlab-runner/values.yaml
gitlabUrl: https://gitlab.com/
concurrent: 10
checkInterval: 5
logLevel: error
logFormat: json
imagePullPolicy: Always
runners:
runUntagged: false
requestConcurrency: 5
jobNamespace: gitlab
privileged: false
outputLimit: 8192
config: |
[[runners]]
[runners.kubernetes]
image = {{ .Values.runners.image | quote }}
$ kubectl logs pod/gitlab-runner
Registration attempt 1 of 30
Runtime platform arch=amd64 os=linux pid=14 revision=259d2fd4 version=15.7.0
WARNING: Running in user-mode.
WARNING: The user-mode requires you to manually start builds processing:
WARNING: $ gitlab-runner run
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...
Created missing unique system ID system_id=REDACTED
Merging configuration from template file "/configmaps/config.template.toml"
WARNING: Support for registration tokens and runner parameters in the 'register' command has been deprecated in GitLab Runner 15.6 and will be replaced with support for authentication tokens. For more information, see https://gitlab.com/gitlab-org/gitlab/-/issues/380872
Registering runner... succeeded runner=REDACTED
Judging from this output, the bootup sequence should be in json: https://docs.gitlab.com/runner/configuration/advanced-configuration.html#json
# Source: gitlab-runner/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: gitlab-runner-dev
...
config.toml: |
concurrent = 10
check_interval = 5
log_level = "error"
log_format = "json"