Open bsdlp opened 1 month ago
Thanks for reporting this issue, will look into this and report back. It seems that allowed events for a specific actions need to be tweaked a bit.
The kubernetes.manager
field should be automatically detected. Can you try adding the following into your configuration?
kubernetes:
manager: kubespray
Regarding the LB priority, can you share the LB configuration from ~/.kubitect/clusters/pounce/config/kubitect-applied.yaml
? Thanks
lb section from applied.yaml
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
jchen@MacBook-Air-4(main|✚1…1)> kubitect apply --config ./kubitect.yaml --action upgrade
┌
│ Error type: Invalid Configuration Change
│ Config path:
│ cluster.nodes.loadBalancer.instances.1.priority
│ kubernetes.manager
│ Error:
│ Change is not allowed. Upgrade action allows changing only 'kubernetes.version'.
└
┌
│ Error: Configuration file contains errors.
└
[1] jchen@MacBook-Air-4(main|✚1…1)> git diff
diff --git a/kubitect/kubitect.yaml b/kubitect/kubitect.yaml
index eb3170b..5627edc 100644
--- a/kubitect/kubitect.yaml
+++ b/kubitect/kubitect.yaml
@@ -104,4 +104,5 @@ kubernetes:
version: v1.26.5
dnsMode: coredns
networkPlugin: cilium
+ manager: kubespray
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:
here's my
kubitect.yaml
file:kubitect version v3.4.0
any ideas?