Created
November 10, 2021 10:19
-
-
Save vizv/684ffa47bba081cce97ca080cddb4fa0 to your computer and use it in GitHub Desktop.
K0S in Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: k0s.k0sproject.io/v1beta1 | |
kind: Cluster | |
metadata: | |
name: k0s | |
spec: | |
api: | |
address: 10.224.0.8 | |
port: 6443 | |
k0sApiPort: 9443 | |
sans: | |
- victoria.valkyrie.v-net | |
- 10.224.0.8 | |
storage: | |
type: etcd | |
etcd: | |
peerAddress: 10.224.0.8 | |
network: | |
podCIDR: 10.244.0.0/16 | |
serviceCIDR: 10.96.0.0/12 | |
provider: kuberouter | |
kubeProxy: | |
disabled: false | |
mode: ipvs | |
telemetry: | |
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
k0s: | |
container_name: k0s | |
image: k0sproject/k0s:latest | |
hostname: k0s | |
restart: always | |
volumes: | |
- './volumes/var/lib/k0s:/var/lib/k0s' | |
- './configs/etc/k0s:/etc/k0s:ro' | |
- './configs/var/lib/k0s/pki:/var/lib/k0s/pki' | |
- '/srv/containers:/srv/containers' | |
tmpfs: | |
- /run | |
- /var/run | |
command: k0s controller --config=/etc/k0s/config.yaml --enable-worker | |
privileged: true | |
network_mode: host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment