Skip to content

Commit

Permalink
Remove docker-compose default token
Browse files Browse the repository at this point in the history
  • Loading branch information
erikwilson committed Dec 13, 2019
1 parent d578b46 commit d77b390
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions 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:

Expand All @@ -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:
Expand All @@ -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: {}

0 comments on commit d77b390

Please sign in to comment.