You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this would imply the secret is stored in a cluster. Do I need to first set the context to a cluster, and if so, what cluster would that be? I'd think it wouldn't be a downstream cluster, as it seems the intent here is to create a downstream RKE2 cluster.
In order to connect to and use resources on the Rancher instance specified by the Rancher URL at the top of the yaml, wouldn't I also need to supply an API key for that Rancher instance? [ In other words, login to the Rancher UI, click on the icon in the upper right, Click Account & API keys, Create API Key, next, and use the resulting API key ?]
Currently, I get the following when trying to install per the instructions; I think it's because I haven't provided the information above.
user@machine $ helm upgrade -i cluster cluster-templates/rancher-cluster-templates -n fleet-default -f values-vsphere.yaml
Error: Kubernetes cluster unreachable: {"Code":{"Code":"Forbidden","Status":403},"Message":"clusters.management.cattle.io "c-kqv6m" is forbidden: User "system:unauthenticated" cannot get resource "clusters" in API group "management.cattle.io" at the cluster scope","Cause":null,"FieldName":""}
The text was updated successfully, but these errors were encountered:
I read and went through the steps at https://github.com/rancherfederal/rancher-cluster-templates/blob/main/charts/cluster-templates/README.md, and updated the required variables at the top of https://github.com/rancherfederal/rancher-cluster-templates/blob/main/charts/cluster-templates/values-vsphere.yaml.
kubectl create secret -n cattle-global-data generic vsphere-creds --from-literal=vmwarevspherecredentialConfig-username=$USERNAME --from-literal=vmwarevspherecredentialConfig-password=$PASSWORD --from-literal=vmwarevspherecredentialConfig-vcenter=$VCENTER_HOST --from-literal=vmwarevspherecredentialConfig-vcenterPort=$VCENTER_PORT
kubectl annotate secret -n cattle-global-data vsphere-creds provisioning.cattle.io/driver=vmwarevsphere
However, this would imply the secret is stored in a cluster. Do I need to first set the context to a cluster, and if so, what cluster would that be? I'd think it wouldn't be a downstream cluster, as it seems the intent here is to create a downstream RKE2 cluster.
Currently, I get the following when trying to install per the instructions; I think it's because I haven't provided the information above.
user@machine $ helm upgrade -i cluster cluster-templates/rancher-cluster-templates -n fleet-default -f values-vsphere.yaml
Error: Kubernetes cluster unreachable: {"Code":{"Code":"Forbidden","Status":403},"Message":"clusters.management.cattle.io "c-kqv6m" is forbidden: User "system:unauthenticated" cannot get resource "clusters" in API group "management.cattle.io" at the cluster scope","Cause":null,"FieldName":""}
The text was updated successfully, but these errors were encountered: