Comments (4)
the error message:
visiting k3d-config.yaml: decoding {Cluster ctlptl.dev/v1alpha1}: yaml: unmarshal errors:
line 14: field k3s not found in type api.Cluster
is telling you that you got the indentation wrong and is telling you the exact line to fix. It should look something like:
apiVersion: ctlptl.dev/v1alpha1
kind: Cluster
name: k3d-testing
product: k3d
k3d:
v1alpha4Simple:
options:
k3s:
extraArgs:
...
from ctlptl.
did you look at the example? https://github.com/tilt-dev/ctlptl/blob/main/examples/k3d-config.yaml
when you say "im not getting the formatting correct", can you be more specific about what you tried, what you expected to happen, and what happened instead?
from ctlptl.
Hey Nicks thank you for the reply, I took a look at the example, I tried several variations of this config file:
k3d with an embedded config
apiVersion: ctlptl.dev/v1alpha1
kind: Cluster
name: k3d-testing
product: k3d
k3d:
v1alpha4Simple:
network: custom-network
wait: true # wait for cluster to be usable before returining; same as --wait
(default: true)
timeout: "6m0s" # wait timeout before aborting; same as --timeout 60s
disableLoadbalancer: true # same as --no-lb
disableImageVolume: false # same as --no-image-volume
disableRollback: false # same as --no-Rollback
k3s: # options passed on to K3s itself
extraArgs: # additional arguments passed to the k3s server|agent
command; same as --k3s-arg
- arg: --disable=servicelb
nodeFilters:
- server:*
- arg: --disable=traefik
nodeFilters:
- server:*
- arg: --tls-san=127.0.0.1
nodeFilters:
- server:*
- arg: --disable-network-policy
nodeFilters:
- server:*
- arg: --flannel-backend=none
nodeFilters:
- server:*
kubeconfig:
updateDefaultKubeconfig: true # add new cluster to your default Kubeconfig; same as --kubeconfig-update-default
(default: true)
switchCurrentContext: true # also set current-context to the new cluster's context; same as --kubeconfig-switch-context
(default: true)
Depending on the variation I get the following error type:
visiting k3d-config.yaml: decoding {Cluster ctlptl.dev/v1alpha1}: yaml: unmarshal errors:
line 14: field k3s not found in type api.Cluster
I would expect it to accept the k3s arguments. ( Github keeps messing with the formatting lol )
from ctlptl.
Awesome thanks for pointing me in the right direction that worked.
from ctlptl.
Related Issues (20)
- Support for ingress with kind HOT 1
- Registry support for htpasswd
- Support Kind v0.19.0 HOT 1
- K3D schema upgrade to v1alpha5 Simple. HOT 1
- Support minikube addons HOT 2
- Unable to set up registry with minikube HOT 10
- ctlptl doesn't authenticate requests when creating registry HOT 2
- ctlptl get registries -oname do not return a list of registry names
- ctlptl get registries -oname do return prefixed names HOT 1
- Support MiniKube with different drivers HOT 1
- kind containerd config patch should be updated HOT 2
- Registry not reachable with fixed port HOT 2
- ctlptl v0.8.25 has broken cluster config with containerdConfigPatches HOT 3
- should kind be called as a library and not via exec HOT 2
- feat: another container image using ctlptl only HOT 1
- Update kind to 0.22.0 so Kubernetes 1.29 is available
- Support Kind v0.23.0
- Registry image is overridden when referencing registry from cluster HOT 1
- Persistent Storage for Registry
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ctlptl.