22 lines
531 B
YAML
22 lines
531 B
YAML
services:
|
|
k0s:
|
|
image: docker.io/k0sproject/k0s:v1.30.4-k0s.0
|
|
command: k0s controller --config=/etc/k0s/config.yaml --enable-worker --no-taints
|
|
restart: always
|
|
stop_grace_period: 15s
|
|
hostname: k8s.smsvc.net
|
|
privileged: true
|
|
cgroup: host
|
|
network_mode: host
|
|
volumes:
|
|
- k0s-data:/var/lib/k0s/
|
|
- k0s-run:/run/
|
|
- k0s-storage:/var/openebs/
|
|
- k0s-run-udev:/run/udev
|
|
- ./k0s-config.yaml:/etc/k0s/config.yaml
|
|
|
|
volumes:
|
|
k0s-data:
|
|
k0s-run:
|
|
k0s-storage:
|
|
k0s-run-udev:
|