kubitect icon indicating copy to clipboard operation
kubitect copied to clipboard

unable to run `kubitect apply --config ./kubitect.yaml --action upgrade`

Open bsdlp opened this issue 7 months ago • 3 comments

Screenshot 2024-07-17 at 00 01 19

i exported the config for the existing cluster, then tried running kubitect apply --config ./kubitect.yaml --action upgrade - which resulted in an error. i noticed that the git diff added some strange lines so removed them and tried again and still got an error.

the keys that kubitect are complaining about don't exist in the cluster config:

│   cluster.nodes.loadBalancer.instances.1.priority
│   kubernetes.manager

here's my kubitect.yaml file:

jchen@MacBook-Air-4(main|…1)> cat kubitect.yaml                                                                                                          ~/workspace/homelab/kubitect
hosts:
    - name: catnet21390176
      default: true
      connection:
        user: root
        ip: 192.168.51.117
        type: remote
        ssh:
            keyfile: ~/.ssh/id_ed25519
            port: 22
      mainResourcePoolPath: /var/lib/libvirt/images/
      dataResourcePools:
        - name: rook-pool
          path: /var/lib/libvirt/images/
    - name: catnet21390118
      default: false
      connection:
        user: root
        ip: 192.168.51.118
        type: remote
        ssh:
            keyfile: ~/.ssh/id_ed25519
            port: 22
      mainResourcePoolPath: /var/lib/libvirt/images/
      dataResourcePools:
        - name: rook-pool
          path: /var/lib/libvirt/images/
cluster:
    name: pounce
    network:
        cidr: 192.168.0.0/16
        mode: bridge
        bridge: br0
    nodeTemplate:
        user: jchen
        os:
            distro: ubuntu22
            networkInterface: ens3
            source: https://cloud-images.ubuntu.com/releases/jammy/release-20230606/ubuntu-22.04-server-cloudimg-amd64.img
        ssh:
            addToKnownHosts: false
        cpuMode: custom
        dns:
            - 192.168.1.1
        updateOnBoot: true
    nodes:
        master:
            default:
                cpu: 2
                ram: 4
                mainDiskSize: 32
            instances:
                - id: "1"
                  host: catnet21390176
                  cpu: 4
                  ram: 8
                  mainDiskSize: 32
        worker:
            default:
                cpu: 2
                ram: 4
                mainDiskSize: 32
            instances:
                - id: "1"
                  host: catnet21390176
                  cpu: 8
                  ram: 48
                  mainDiskSize: 512
                  dataDisks:
                    - name: rook
                      pool: rook-pool
                      size: 256
                - id: "2"
                  host: catnet21390118
                  cpu: 8
                  ram: 56
                  mainDiskSize: 768
                  dataDisks:
                    - name: rook
                      pool: rook-pool
                      size: 256
        loadBalancer:
            vip: 192.168.200.212
            default:
                cpu: 2
                ram: 4
                mainDiskSize: 32
            instances:
                - id: "1"
                  host: catnet21390118
                  cpu: 4
                  ram: 4
                  mainDiskSize: 16
            forwardPorts:
                - name: http
                  port: 80
                  targetPort: 80
                  target: workers
                - name: https
                  port: 443
                  targetPort: 443
                  target: workers
kubernetes:
    version: v1.26.5
    dnsMode: coredns
    networkPlugin: cilium

kubitect version v3.4.0

any ideas?

bsdlp avatar Jul 17 '24 07:07 bsdlp