Get serviceaccount token from running container.

This commit is contained in:
Andrew Pitt
2021-04-20 09:01:05 -04:00
parent a073cc7fa3
commit 81175d8e77
+3
View File
@@ -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