-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk3d-config.yml
41 lines (36 loc) · 1.6 KB
/
k3d-config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
apiVersion: k3d.io/v1alpha5
kind: Simple
# https://k3d.io/v5.6.3/usage/configfile/#config-options
# https://github.com/rancher/k3d/blob/main/docs/usage/commands.md
metadata:
name: playground
servers: 1
agents: 3
kubeAPI: # same as `--api-port myhost.my.domain:6445` (where the name would resolve to 127.0.0.1)
host: "localhost" # important for the `server` setting in the kubeconfig
hostIP: "127.0.0.1" # where the Kubernetes API will be listening on
hostPort: "6445" # where the Kubernetes API listening port will be mapped to on your host system
ports:
- port: 8080:80 # same as `--port '8080:80@loadbalancer'`
nodeFilters:
- loadbalancer
# volumes:
# - volume: "/tmp/calico/:/var/lib/rancher/k3s/server/manifests/"
# - volume: "/Users/dmc/git/k3dvolume:/tmp/k3dvolume" # For local development live code mounts
options:
k3s:
extraArgs:
- arg: '--disable=traefik' # Using ingress-nginx instead
nodeFilters:
- server:0
# - arg: '--flannel-backend=none' # Using Calico to support network policies
# nodeFilters:
# - server:*
# - arg: '--disable-network-policy'
# nodeFilters:
# - server:*
# extraAgentArgs: # addditional arguments passed to the `k3s agent` command; same as `--k3s-agent-arg`
# # encountered issues with disk pressure - https://github.com/rancher/k3d/issues/133
# # https://k3d.io/faq/faq/#pods-evicted-due-to-lack-of-disk-space
# - --kubelet-arg=eviction-hard=imagefs.available<1%,nodefs.available<1%
# - --kubelet-arg=eviction-minimum-reclaim=imagefs.available=1%,nodefs.available=1%