Created
May 23, 2020 07:53
-
-
Save matti/60f3917872d18631b9e03b782cf084bd to your computer and use it in GitHub Desktop.
This file contains hidden or 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: "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