vcluster icon indicating copy to clipboard operation
vcluster copied to clipboard

fatal error unmarshaling JSON: json: cannot unmarshal object into Go struct field PrivateNodes.privateNodes.autoNodes of type []config.PrivateNodesAutoNodes

Open bakito opened this issue 3 weeks ago • 0 comments

What happened?

Running vcluster 0.30.3 with the default config from https://www.vcluster.com/docs/vcluster/deploy/control-plane/binary/#vclusteryaml-configuration fails with an unmarshal error

What did you expect to happen?

privateNodes config yhould not be parsed if not present.

How can we reproduce it (as minimally and precisely as possible)?

run the sample config from https://www.vcluster.com/docs/vcluster/deploy/control-plane/binary/#vclusteryaml-configuration

vcluster create my-vcluster --namespace my-vcluster -f vcluster.yaml --create-namespace=false --connect=false --upgrade

Anything else we need to know?

No response

Host cluster Kubernetes version

Client Version: v1.34.3 Kustomize Version: v5.7.1 Server Version: v1.33.5

vcluster version

vcluster version 0.30.3

VCluster Config

controlPlane:
  # Enable standalone
  standalone:
    enabled: true
    joinNode:
      enabled: true  # Optional: Control Plane node will also be considered a worker node 
  distro:
    k8s:
      image:
        tag: v1.31.2 # Kubernetes version you want to use
  service:
    spec:
      type: LoadBalancer # If you want to expose vCluster using LoadBalancer (Recommended option)

# Required for adding additional worker nodes
privateNodes: 
  enabled: true
  
# Networking configuration
networking:
  # Specify the pod CIDR
  podCIDR: 10.64.0.0/16
  # Specify the service CIDR
  serviceCIDR: 10.128.0.0/16

bakito avatar Dec 10 '25 08:12 bakito