Error loading config file when deploying to kubernetes
I'm using GKE (1.8.8-gke.0). I'm using Auto DevOps on my gitlab cloud native chart installtion (on the same cluster). When it comes to deploying, the following error comes up:
...Successfully got an update from the "gitlab" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈Happy Helming!⎈
Saving 1 charts
Downloading postgresql from repo https://kubernetes-charts.storage.googleapis.com/
Deleting outdated charts
$ ensure_namespace
Error loading config file " LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNS...
contexts": open LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tDQpNS...
contexts: file name too long
Error loading config file " eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
": open eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
: file name too long
... (error repeats once)
ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 1
I decoded the first base64 value and it is my CA (encoded), but I saved it in correct plaintext format inside the Kubernetes Integration in the admin panel. The second value seems to be my service account token. It is not encoded, it's a jwt token. Verified it on jwt.io
This is my CI file: .gitlab-ci.yml
A kubernetes cluster is configured for the project, but it is disabled, since I'm using the kubernetes configuration from my integration.
Worth to say is that I'm using the gitlab-managed-apps
namespace and it doesn't exist yet.
Seems that kubeconfig file is created with base64 encoded values. Is it supposed to be like that?
I added the whole log file. Did some set -ex; env
to show what's happening.
build.log