22 lines
866 B
YAML
22 lines
866 B
YAML
server:
|
|
image: rancher/k3s:v1.17.2-k3s1
|
|
command: server --disable-agent --no-deploy coredns --no-deploy servicelb --no-deploy traefik --no-deploy local-storage --no-deploy metrics-server --log /output/k3s.log --kube-proxy-arg=conntrack-max-per-core=0 --kube-proxy-arg=conntrack-max-per-core=0
|
|
environment:
|
|
- K3S_CLUSTER_SECRET=somethingtotallyrandom
|
|
- K3S_KUBECONFIG_OUTPUT=/output/kubeconfig.yaml
|
|
- K3S_KUBECONFIG_MODE=666
|
|
volumes:
|
|
- ../../fixtures/k8s/config.skip:/output
|
|
- ../../fixtures/k8s:/var/lib/rancher/k3s/server/manifests
|
|
ports:
|
|
- 6443:6443
|
|
|
|
node:
|
|
image: rancher/k3s:v1.17.2-k3s1
|
|
privileged: true
|
|
command: agent --kube-proxy-arg=conntrack-max-per-core=0 --kube-proxy-arg=conntrack-max-per-core=0
|
|
links:
|
|
- server
|
|
environment:
|
|
- K3S_URL=https://server:6443
|
|
- K3S_CLUSTER_SECRET=somethingtotallyrandom
|