Skip to content

Instantly share code, notes, and snippets.

@matti
Created May 23, 2020 07:53
Show Gist options
  • Save matti/60f3917872d18631b9e03b782cf084bd to your computer and use it in GitHub Desktop.
Save matti/60f3917872d18631b9e03b782cf084bd to your computer and use it in GitHub Desktop.
version: "3.7"
services:
superkube:
container_name: superkube
hostname: superkube
image: "rancher/k3s:${K3S_VERSION:-v1.18.2-k3s1}"
command: server --no-deploy traefik
tmpfs:
- /run
- /var/run
privileged: true
environment:
- K3S_TOKEN=abbacdabbacdacdc
- K3S_KUBECONFIG_OUTPUT=/kubernetes/kubeconfig.yaml
- K3S_KUBECONFIG_MODE=666
volumes:
- /var/lib/rancher/k3s
- $HOME/.kube/superkube:/kubernetes/kubeconfig.yaml
- ./volumes:/volumes
ports:
- 6443:6443
- 80:80
- 443:443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment