VsphereCredential¶
This section describes the VsphereCredential
custom resource (CR)
used in Mirantis Container Cloud API. It contains all information
necessary to connect to a provider back end.
For demonstration purposes, the Container Cloud VsphereCredential
custom resource (CR) can be split into the following sections:
Warning
The fields in this resource are available for viewing only. They are automatically generated by the vSphere cloud provider and must not be modified using the Container Cloud API.
metadata¶
The Container Cloud VsphereCredential
custom resource (CR) contains the following
fields:
apiVersion
kaas.mirantis.com/v1alpha1
kind
Object type that is
VsphereCredential
The metadata
object field of the VsphereCredential
resource contains
the following fields:
name
Name of the
VsphereCredential
object
namespace
Container Cloud project in which the
VsphereCredential
object has been created
labels
kaas.mirantis.com/regional-credential
If true, indicates that
VsphereCredential
is in use by the management or regional cluster
kaas.mirantis.com/region
Region name
Configuration example:
apiVersion: kaas.mirantis.com/v1alpha1
kind: VsphereCredential
metadata:
name: demo
namespace: test
labels:
kaas.mirantis.com/region: region-one
kaas.mirantis.com/regional-credential: "true"
VsphereCredential configuration¶
The spec
object field of the VsphereCredential
resource contains
configuration and authentication details for the vSphere server.
It contains the following fields:
vsphere
vSphere server information:
server
IP or host name of the vSphere server.
port
vSphere server port.
insecure
SSL certificate verification for connection. Possible values are
false
to enable andtrue
to disable verification.
datacenter
vSphere Data center name.
clusterApi
Credentials of the user that manages vSphere virtual machines:
username
Key name in the secret.
password
Reference to the secret that contains the user password.
value
User password.
cloudProvider
Credentials of the user that manages storage and volumes for Kubernetes.
username
Key name in the secret.
password
Reference to the secret that contains the user password.
value
User password.
Configuration example:
...
spec:
vsphere:
server: vcenter.server.example.org
port: "443"
insecure: true
datacenter: example
clusterApi:
username: vm-user
password: vm-user-password
cloudProvider:
username: storage-user
password: storage-user-password