https://rancher.com/ logo
#rke
Title
w

worried-australia-58368

03/02/2023, 7:05 PM
Hi, I upgraded Rancher from 2.5.7 to 2.6.4. One of the managed clusters is getting error
Copy code
The request is invalid: : {"Code":{"Code":"InvalidFormat","Status":422},"Message":"services=InvalidFormat 422: kubeApi=InvalidFormat 422: secretsEncryptionConfig=InvalidFormat 422: customConfig=InvalidFormat 422: resources=InvalidFormat 422: providers=InvalidFormat 422: kms=InvalidFormat 422: timeout=InvalidFormat 422: InvalidFormat 422: Value can not be converted to type duration: 3s","Cause":null,"FieldName":""}
This is a VmWare vShpere cluster. I know I need to update the yaml for this cluster, but I’m not able to through the ui. How can I edit this config, I want to remove the timeout: 3s from encryption?
When I try to edit config I get error ’Cannot read properties of null (reading ‘isReady’)
I was able to get this fixed. I did a lot of kubectl api-resouces and looking at resoruces related to rancher, i.e. with cattle in the name/api. I found in the yaml I need to update.
Copy code
kubectl get <http://clusters.v3.management.cattle.io|clusters.v3.management.cattle.io> CLUSTERID -o yaml
I then
Copy code
kubectl edit <http://clusters.v3.management.cattle.io|clusters.v3.management.cattle.io> CLUSTERID
Deleted in the
Copy code
spec:
  rancherKubernetesEngineConfig:
    services:
      kubeApi:
        secretsEncryptionConfig:
          customConfig:
            ...
            resources:
            - providers:
              - kms:
                ...
                timeout: 3s (DELETED)
rancher then finished updating this cluster for rancher manager 2.6.4.
9 Views