Merge pull request #1196 from erikwilson/compose-default-token

Remove docker-compose default token
pull/1205/head
Erik Wilson 5 years ago committed by GitHub
commit d5929bc8c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save