diff --git a/entrypoint.sh b/entrypoint.sh index 2cb485c..eaf0275 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,5 +1,8 @@ #!/bin/sh +# Source the service account token from the container directly. +export TOKEN="$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)" + redis-server /etc/redis/redis.conf & sed -i "s/ENDPOINT_PLACEHOLDER/$ENDPOINT/g" /var/www/html/kubeinvaders.js