After upgrading to 13.9.0 our KAS is failing to start - Program aborted: open /etc/kas/redis/redis-password: no such file or directory
Summary
After we upgraded to 13.9.0
the new KAS pods are failing to start.
Program aborted: open /etc/kas/redis/redis-password: no such file or directory
Steps to reproduce
Upgrade to 13.9.0
and having KAS running/
Configuration used
(Please provide a sanitized version of the configuration used wrapped in a code block (```yaml))
global:
kas:
enabled: true
redis:
host: <we're using external Redis>
password:
enabled: false
gitlab:
kas:
image:
repository: registry.gitlab.com/gitlab-org/cluster-integration/gitlab-agent/kas
tag: latest
Versions
- Chart:
gitlab-4.9.0
- Platform:
- Cloud: GKE
- Kubernetes: (
kubectl version
)- Client:
version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.4", GitCommit:"e87da0bd6e03ec3fea7933c4b5263d151aafd07c", GitTreeState:"clean", BuildDate:"2021-02-21T20:23:45Z", GoVersion:"go1.15.8", Compiler:"gc", Platform:"darwin/amd64"}
- Server:
version.Info{Major:"1", Minor:"18+", GitVersion:"v1.18.12-gke.1206", GitCommit:"4ad64c148c8fa54132c0730a4838c7b5e4e1b342", GitTreeState:"clean", BuildDate:"2021-01-25T20:33:15Z", GoVersion:"go1.13.15b4", Compiler:"gc", Platform:"linux/amd64"}
- Client:
- Helm: (
helm version
)- Client:
version.BuildInfo{Version:"v3.5.2", GitCommit:"167aac70832d3a384f65f9745335e9fb40169dc2", GitTreeState:"dirty", GoVersion:"go1.15.7"}
- Server:
- Client:
Relevant logs
Program aborted: open /etc/kas/redis/redis-password: no such file or directory
stream closed
Checking the gitlab-kas
ConfigMap you can see a password_file
even though I have global.redis.password.enabled=false
.
I modified the ConfigMap and deleted the password_file
line and KAS started
Name: gitlab-kas
Namespace: gitlab
Labels: app=kas
app.kubernetes.io/managed-by=Helm
chart=kas-4.9.0
heritage=Helm
release=gitlab
Annotations: meta.helm.sh/release-name: gitlab
meta.helm.sh/release-namespace: gitlab
Data
====
config.yaml:
----
agent:
listen:
address: :8150
websocket: true
gitlab:
address: http://gitlab-webservice-default.gitlab.svc:8181
authentication_secret_file: /etc/kas/.gitlab_kas_secret
observability:
listen:
address: :8151
redis:
password_file: /etc/kas/redis/redis-password
server:
address: <removed>:6379
Events: <none>
Edited by Adam Stracener