2021-11-25 10:10:06 +00:00
|
|
|
version: "3.8"
|
|
|
|
services:
|
|
|
|
server:
|
2022-11-23 16:28:04 +00:00
|
|
|
image: rancher/k3s:v1.20.15-k3s1
|
2024-01-09 16:00:07 +00:00
|
|
|
privileged: true
|
|
|
|
command:
|
|
|
|
- server
|
|
|
|
- --disable-agent
|
|
|
|
- --disable=coredns
|
|
|
|
- --disable=servicelb
|
|
|
|
- --disable=traefik
|
|
|
|
- --disable=local-storage
|
|
|
|
- --disable=metrics-server
|
|
|
|
- --log=/output/k3s.log
|
|
|
|
- --bind-address=server
|
|
|
|
- --tls-san=server
|
|
|
|
- --tls-san=172.31.42.3
|
|
|
|
- --tls-san=172.31.42.4
|
2021-11-25 10:10:06 +00:00
|
|
|
environment:
|
|
|
|
K3S_CLUSTER_SECRET: somethingtotallyrandom
|
2024-01-09 16:00:07 +00:00
|
|
|
K3S_TOKEN: somethingtotallyrandom
|
2021-11-25 10:10:06 +00:00
|
|
|
K3S_KUBECONFIG_OUTPUT: /output/kubeconfig.yaml
|
|
|
|
K3S_KUBECONFIG_MODE: 666
|
|
|
|
volumes:
|
|
|
|
- ./fixtures/k8s/config.skip:/output
|
|
|
|
- ./fixtures/k8s:/var/lib/rancher/k3s/server/manifests
|
2019-03-11 13:54:05 +00:00
|
|
|
|
2021-11-25 10:10:06 +00:00
|
|
|
node:
|
2022-11-23 16:28:04 +00:00
|
|
|
image: rancher/k3s:v1.20.15-k3s1
|
2021-11-25 10:10:06 +00:00
|
|
|
privileged: true
|
|
|
|
environment:
|
2024-01-09 16:00:07 +00:00
|
|
|
K3S_TOKEN: somethingtotallyrandom
|
2021-11-25 10:10:06 +00:00
|
|
|
K3S_URL: https://server:6443
|
|
|
|
K3S_CLUSTER_SECRET: somethingtotallyrandom
|