From d77b390931947c5a32c2e36fe61231c2aca81c10 Mon Sep 17 00:00:00 2001 From: Erik Wilson Date: Thu, 12 Dec 2019 18:02:54 -0700 Subject: [PATCH] Remove docker-compose default token --- docker-compose.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 016d4c1083..0e7857228e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,3 +1,6 @@ +# to run define K3S_TOKEN, K3S_VERSION is optional, eg: +# K3S_TOKEN=${RANDOM}${RANDOM}${RANDOM} docker-compose up + version: '3' services: @@ -9,7 +12,7 @@ services: - /var/run privileged: true environment: - - K3S_TOKEN=${K3S_TOKEN:-somethingtotallyrandom} + - K3S_TOKEN=${K3S_TOKEN:?err} - K3S_KUBECONFIG_OUTPUT=/output/kubeconfig.yaml - K3S_KUBECONFIG_MODE=666 volumes: @@ -27,7 +30,7 @@ services: privileged: true environment: - K3S_URL=https://server:6443 - - K3S_TOKEN=${K3S_TOKEN:-somethingtotallyrandom} + - K3S_TOKEN=${K3S_TOKEN:?err} volumes: k3s-server: {}