mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Remove docker-compose default token
This commit is contained in:
parent
d578b46842
commit
d77b390931
@ -1,3 +1,6 @@
|
|||||||
|
# to run define K3S_TOKEN, K3S_VERSION is optional, eg:
|
||||||
|
# K3S_TOKEN=${RANDOM}${RANDOM}${RANDOM} docker-compose up
|
||||||
|
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
|
|
||||||
@ -9,7 +12,7 @@ services:
|
|||||||
- /var/run
|
- /var/run
|
||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
- K3S_TOKEN=${K3S_TOKEN:-somethingtotallyrandom}
|
- K3S_TOKEN=${K3S_TOKEN:?err}
|
||||||
- K3S_KUBECONFIG_OUTPUT=/output/kubeconfig.yaml
|
- K3S_KUBECONFIG_OUTPUT=/output/kubeconfig.yaml
|
||||||
- K3S_KUBECONFIG_MODE=666
|
- K3S_KUBECONFIG_MODE=666
|
||||||
volumes:
|
volumes:
|
||||||
@ -27,7 +30,7 @@ services:
|
|||||||
privileged: true
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
- K3S_URL=https://server:6443
|
- K3S_URL=https://server:6443
|
||||||
- K3S_TOKEN=${K3S_TOKEN:-somethingtotallyrandom}
|
- K3S_TOKEN=${K3S_TOKEN:?err}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
k3s-server: {}
|
k3s-server: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user