-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.mycluster_k3d_v4.yaml
65 lines (65 loc) · 2.2 KB
/
sample.mycluster_k3d_v4.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# k3d configuration file, saved as e.g. ${PWD}/mycluster.yaml
# See https://k3d.io/v4.4.8/usage/configfile/
# and https://github.com/k3d-io/k3d/tree/main/pkg/config/v1alpha2
apiVersion: k3d.io/v1alpha2 # this will change in the future as we make everything more stable
kind: Simple # internally, we also have a Cluster config, which is not yet available externally
name: mycluster # name that you want to give to your cluster (will still be prefixed with `k3d-`)
# servers: 1
# agents: 2
registries:
create: false # creates a default registry to be used with the cluster; same as `--registry-create`
use:
- k3d-registry.localhost:5000 # some other k3d-managed registry; same as `--registry-use 'k3d-myotherregistry:5000'`
config: | # define contents of the `registries.yaml` file (or reference a file); same as `--registry-config /path/to/config.yaml`
mirrors:
"k3d-registry.localhost":
endpoint:
- http://k3d-registry.localhost:5000
# kubeAPI:
# host:
# hostIP:
# hostPort:
image: my-docker-shared-images.my-artifactory.my-company.com/rancher/k3s:v1.23.8-k3s1
# network:
# subnet:
# token:
volumes:
- volume: /home/${USER}/git/k3d-headstart/registries.yaml:/etc/rancher/k3s/registries.yaml
nodeFilters:
- all
# ports:
# - port:
# nodeFilters:
# options:
# k3d:
# wait: true
# timeout: 1m
# disableLoadbalancer: false
# disableImageVolume: false
# disableRollback: false
# loadbalancer:
# configOverrides:
# - settings.workerConnections=2048
# - settings.defaultProxyTimeout=900
# k3s:
# extraArgs:
# - arg: --tls-san=127.0.0.1
# nodeFilters:
# - all
# - arg: --disable=traefik
# nodeFilters:
# - all
# kubeconfig:
# updateDefaultKubeconfig: true
# switchCurrentContext: true
# runtime:
env:
- envVar: HTTP_PROXY=http://PROXY_USER:PROXY_PASSWORD@my-proxy.my-company.com:8080 # Replace PROXY_USER and PROXY_PASSWORD
nodeFilters:
- all
- envVar: HTTPS_PROXY=http://PROXY_USER:PROXY_PASSWORD@my-proxy.my-company.com:8080 # Replace PROXY_USER and PROXY_PASSWORD
nodeFilters:
- all
- envVar: NO_PROXY=localhost,127.0.0.1,::1
nodeFilters:
- all