Git Product home page Git Product logo

Comments (4)

nicks avatar nicks commented on July 17, 2024 1

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.

nicks avatar nicks commented on July 17, 2024

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.

hugo-ninja avatar hugo-ninja commented on July 17, 2024

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.

hugo-ninja avatar hugo-ninja commented on July 17, 2024

Awesome thanks for pointing me in the right direction that worked.

from ctlptl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.