Hey folks!
I’m trying to set up Tyk using the instructions provided here: Tyk Helm Chart
I made sure to set up both Redis and MongoDB from the Bitnami charts (as indicated in the docs), and I set up the passwords in the helm chart’s values (as indicated, redis.pass
and mongo.mongoURL
(also ensure that the mongo URL has ?authSource=admin
as a query parameter)…
I have a 14 day trial license (which started today) so that’s what I used for the dashboard’s license value in the chart.
However, I’m still unable to get the chart to successfully install.
Most of the containers seem fine, but the post-install job keeps failing. Here are relevant logs:
$ k get pods
NAME READY STATUS RESTARTS AGE
bootstrap-post-install-tyk-pro--1-ps6hs 0/1 Error 0 3m28s
bootstrap-post-install-tyk-pro--1-vdm5s 0/1 Error 0 3m35s
dashboard-tyk-pro-6d558ff59-8s9px 1/1 Running 0 3m41s
gateway-tyk-pro-868cc4d479-hrmvp 1/1 Running 0 3m41s
pump-tyk-pro-5896c5f49b-sblnz 1/1 Running 0 3m41s
tyk-mongo-mongodb-9fc767f78-4c6fs 1/1 Running 0 70m
tyk-redis-master-0 1/1 Running 0 70m
tyk-redis-replicas-0 1/1 Running 0 70m
tyk-redis-replicas-1 1/1 Running 0 69m
tyk-redis-replicas-2 1/1 Running 0 69m
$ k logs bootstrap-post-install-tyk-pro--1-ps6hs
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
(1/7) Installing ca-certificates (20211220-r0)
(2/7) Installing brotli-libs (1.0.9-r5)
(3/7) Installing nghttp2-libs (1.46.0-r0)
(4/7) Installing libcurl (7.80.0-r0)
(5/7) Installing curl (7.80.0-r0)
(6/7) Installing oniguruma (6.9.7.1-r0)
(7/7) Installing jq (1.6-r1)
Executing busybox-1.34.1-r3.trigger
Executing ca-certificates-20211220-r0.trigger
OK: 10 MiB in 24 packages
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 154 100 154 0 0 989 0 --:--:-- --:--:-- --:--:-- 993
100 44.4M 100 44.4M 0 0 12.2M 0 0:00:03 0:00:03 --:--:-- 14.1M
Creating Organisation
ORG DATA: {"Status":"Error","Message":"Failed to save new Org object to DB","Meta":null}
ORG ID: null
Adding new user
parse error: Unfinished string at EOF at line 2, column 0
parse error: Unfinished string at EOF at line 2, column 0
Tue Mar 1 15:03:06 UTC 2022 Creating Portal for organisation Default Org
Tue Mar 1 15:03:06 UTC 2022 Creating Portal default settings
Tue Mar 1 15:03:06 UTC 2022 ERROR: Authorization field empty
Note that I was using Docker Desktop’s Kubernetes instance:
$ k version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.5", GitCommit:"5c99e2ac2ff9a3c549d9ca665e7bc05a3e18f07e", GitTreeState:"clean", BuildDate:"2021-12-16T08:38:33Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.5", GitCommit:"5c99e2ac2ff9a3c549d9ca665e7bc05a3e18f07e", GitTreeState:"clean", BuildDate:"2021-12-16T08:32:32Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}