2019-03-11 13:54:05 +00:00
|
|
|
server:
|
2019-03-14 14:56:06 +00:00
|
|
|
image: rancher/k3s:v0.2.0
|
|
|
|
command: server --disable-agent --no-deploy traefik
|
2019-03-11 13:54:05 +00:00
|
|
|
environment:
|
|
|
|
- K3S_CLUSTER_SECRET=somethingtotallyrandom
|
|
|
|
- K3S_KUBECONFIG_OUTPUT=/output/kubeconfig.yaml
|
|
|
|
- K3S_KUBECONFIG_MODE=666
|
|
|
|
volumes:
|
2019-03-14 14:56:06 +00:00
|
|
|
- ../../fixtures/k8s:/output
|
|
|
|
- ../../fixtures/k8s:/var/lib/rancher/k3s/server/manifests
|
2019-03-11 13:54:05 +00:00
|
|
|
ports:
|
|
|
|
- 6443:6443
|
|
|
|
|
|
|
|
node:
|
2019-03-14 14:56:06 +00:00
|
|
|
image: rancher/k3s:v0.2.0
|
2019-03-11 13:54:05 +00:00
|
|
|
privileged: true
|
|
|
|
links:
|
|
|
|
- server
|
|
|
|
environment:
|
|
|
|
- K3S_URL=https://server:6443
|
|
|
|
- K3S_CLUSTER_SECRET=somethingtotallyrandom
|