Reputation:
I want to create machine set using vsphere provider. In yaml file I see: credentialsSecret: name: vsphere-cloud-credentials
. How should this secret look like? Should that be key/value secret with login to vsphere as key and password as value? What if my login is with "@" and I get Error "Invalid value: "test@test": a valid config key must consist of alphanumeric characters, '-', '_' or '.' (e.g. 'key.name', or 'KEY_NAME', or 'key-name', regex used for validation is '[-._a-zA-Z0-9]+')" for field "data[test@test]".
Upvotes: 0
Views: 591
Reputation: 1565
kind: Secret
apiVersion: v1
metadata:
name: vsphere-cloud-credentials
namespace: openshift-machine-api
annotations:
cloudcredential.openshift.io/credentials-request: openshift-cloud-credential-operator/openshift-machine-api-vsphere
data:
vsphere-api-url.domain.com.password: xxxxx(base64-encoded)
vsphere-api-url.domain.com.username: xxxxx(base64-encoded)
type: Opaque
i think it should look somehow like this, the secret looks like this if we install a cluster with the vsphere provider and credentials in the install-config.yaml, may i ask why you don't configure this at install with the vsphere provider?
Upvotes: 1