public static final class ClustersTypes.UpdateSpec.Builder
extends java.lang.Object
ClustersTypes.UpdateSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ClustersTypes.UpdateSpec . |
Modifier and Type | Method and Description |
---|---|
ClustersTypes.UpdateSpec |
build() |
ClustersTypes.UpdateSpec.Builder |
setClusterProxyConfig(ProxyConfiguration clusterProxyConfig)
Proxy configuration that will be applied to the Supervisor.
|
ClustersTypes.UpdateSpec.Builder |
setCnsFileConfig(CNSFileConfig cnsFileConfig)
Specification for configuring Cloud Native Storage file volume support on
Supervisor.
|
ClustersTypes.UpdateSpec.Builder |
setContentLibraries(java.util.List<ClustersTypes.ContentLibrarySpec> contentLibraries)
List of Content Libraries that will be associated with a Supervisor.
|
ClustersTypes.UpdateSpec.Builder |
setDefaultImageRegistry(ClustersTypes.ImageRegistry defaultImageRegistry)
Default image registry to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
ClustersTypes.UpdateSpec.Builder |
setDefaultImageRepository(java.lang.String defaultImageRepository)
Default image repository to use when Kubernetes Pod container specification does
not specify it as part of the container image name.
|
ClustersTypes.UpdateSpec.Builder |
setDefaultKubernetesServiceContentLibrary(java.lang.String defaultKubernetesServiceContentLibrary)
Identifier of the Content Library which holds the VM Images for vSphere
Kubernetes Service.
|
ClustersTypes.UpdateSpec.Builder |
setEphemeralStoragePolicy(java.lang.String ephemeralStoragePolicy)
Identifier of storage policy associated with ephemeral disks of all the
Kubernetes Pods in the cluster.
|
ClustersTypes.UpdateSpec.Builder |
setFloatingIP(java.lang.String floatingIP)
Optionally, you can edit the floating IP address that is assigned to the
Supervisor in case the DHCP server fails during the Supervisor enablement
process.
|
ClustersTypes.UpdateSpec.Builder |
setImageStorage(ClustersTypes.ImageStorageSpec imageStorage)
Specification for storage to be used for container images.
|
ClustersTypes.UpdateSpec.Builder |
setLoginBanner(java.lang.String loginBanner)
Disclaimer to be displayed prior to login via the Kubectl plugin.
|
ClustersTypes.UpdateSpec.Builder |
setMasterDNS(java.util.List<java.lang.String> masterDNS)
List of DNS server IP addresses to use on Kubernetes API server, specified in
order of preference.
|
ClustersTypes.UpdateSpec.Builder |
setMasterDNSNames(java.util.List<java.lang.String> masterDNSNames)
List of DNS names to associate with the Kubernetes API server.
|
ClustersTypes.UpdateSpec.Builder |
setMasterDNSSearchDomains(java.util.List<java.lang.String> masterDNSSearchDomains)
List of domains (for example "vmware.com") to be searched when trying to lookup
a host name on Kubernetes API server, specified in order of preference.
|
ClustersTypes.UpdateSpec.Builder |
setMasterNTPServers(java.util.List<java.lang.String> masterNTPServers)
List of NTP server DNS names or IP addresses to use on Kubernetes API server,
specified in order of preference.
|
ClustersTypes.UpdateSpec.Builder |
setMasterStoragePolicy(java.lang.String masterStoragePolicy)
Identifier of storage policy associated with Kubernetes API server.
|
ClustersTypes.UpdateSpec.Builder |
setNcpClusterNetworkSpec(ClustersTypes.NCPClusterNetworkUpdateSpec ncpClusterNetworkSpec)
Updated specification for the cluster network configuration.
|
ClustersTypes.UpdateSpec.Builder |
setNetworkProvider(ClustersTypes.NetworkProvider networkProvider)
The provider of cluster networking for this vSphere Namespaces cluster.
|
ClustersTypes.UpdateSpec.Builder |
setSizeHint(SizingHint sizeHint)
This affects the size and resources allocated to the Kubernetes API server.
|
ClustersTypes.UpdateSpec.Builder |
setTlsEndpointCertificate(java.lang.String tlsEndpointCertificate)
PEM-encoded x509 certificate(s) issued for Kubernetes API Server.
|
ClustersTypes.UpdateSpec.Builder |
setWorkerDNS(java.util.List<java.lang.String> workerDNS)
List of DNS server IP addresses to use on the worker nodes, specified in order
of preference.
|
ClustersTypes.UpdateSpec.Builder |
setWorkloadNtpServers(java.util.List<java.lang.String> workloadNtpServers)
List of NTP server DNS names or IP addresses to use for workloads such as Tanzu
Kubernetes Grid VMs, specified in order of preference.
|
public Builder()
ClustersTypes.UpdateSpec
.public ClustersTypes.UpdateSpec.Builder setSizeHint(SizingHint sizeHint)
null
, size and resources allocated to Kubernetes API server will not
be modified.sizeHint
- New value for the property.public ClustersTypes.UpdateSpec.Builder setFloatingIP(java.lang.String floatingIP)
ClustersTypes.EnableSpec.getMasterManagementNetwork()
.
Set this floating IP parameter to remediate a supervisor enablement failure in
the case where it was detected that the DHCP server does not support DHCP client
identifiers. This property was added in vSphere API 7.0.3.0.
If null
, the existing effective management network floating IP will not
be modified.floatingIP
- New value for the property.public ClustersTypes.UpdateSpec.Builder setNetworkProvider(ClustersTypes.NetworkProvider networkProvider)
null
, the existing effective cluster network specification will not
be modified.networkProvider
- New value for the property.public ClustersTypes.UpdateSpec.Builder setNcpClusterNetworkSpec(ClustersTypes.NCPClusterNetworkUpdateSpec ncpClusterNetworkSpec)
null
, the existing effective cluster network specification will not
be modified.ncpClusterNetworkSpec
- New value for the property.public ClustersTypes.UpdateSpec.Builder setMasterDNS(java.util.List<java.lang.String> masterDNS)
Set
, DNS servers set on Kubernetes API server will be
replaced. Otherwise, they will not be modified.masterDNS
- New value for the property.public ClustersTypes.UpdateSpec.Builder setWorkerDNS(java.util.List<java.lang.String> workerDNS)
Set
, DNS servers set on worker nodes will be replaced.
Otherwise, they will not be modified.workerDNS
- New value for the property.public ClustersTypes.UpdateSpec.Builder setMasterDNSSearchDomains(java.util.List<java.lang.String> masterDNSSearchDomains)
Set
, DNS search domains on Kubernetes API server will be
replaced. Otherwise, they will not be modified.masterDNSSearchDomains
- New value for the property.public ClustersTypes.UpdateSpec.Builder setMasterNTPServers(java.util.List<java.lang.String> masterNTPServers)
Set
, NTP servers on Kubernetes API server will be replaced.
Otherwise, they will not be modified.masterNTPServers
- New value for the property.public ClustersTypes.UpdateSpec.Builder setMasterStoragePolicy(java.lang.String masterStoragePolicy)
null
, storage policy associated with Kubernetes API server will not
be modified.masterStoragePolicy
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public ClustersTypes.UpdateSpec.Builder setEphemeralStoragePolicy(java.lang.String ephemeralStoragePolicy)
null
, storage policy associated with ephemeral disks of all the
Kubernetes Pods will not be modified.ephemeralStoragePolicy
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: SpsStorageProfile
. When methods return
a value of this class as a return value, the property will be an identifier for
the resource type: SpsStorageProfile
.public ClustersTypes.UpdateSpec.Builder setCnsFileConfig(CNSFileConfig cnsFileConfig)
null
, configuration for file volumes will remain unchanged.cnsFileConfig
- New value for the property.public ClustersTypes.UpdateSpec.Builder setLoginBanner(java.lang.String loginBanner)
null
, disclaimer to be displayed prior to login via the Kubectl
plugin will not be modified.loginBanner
- New value for the property.public ClustersTypes.UpdateSpec.Builder setMasterDNSNames(java.util.List<java.lang.String> masterDNSNames)
null
, existing DNS names will not be modified.masterDNSNames
- New value for the property.public ClustersTypes.UpdateSpec.Builder setImageStorage(ClustersTypes.ImageStorageSpec imageStorage)
null
, configuration of storage used for container images is not
modified.imageStorage
- New value for the property.public ClustersTypes.UpdateSpec.Builder setDefaultImageRegistry(ClustersTypes.ImageRegistry defaultImageRegistry)
null
, default image registry will not be modified.defaultImageRegistry
- New value for the property.public ClustersTypes.UpdateSpec.Builder setDefaultImageRepository(java.lang.String defaultImageRepository)
null
, default image repository will not be modified.defaultImageRepository
- New value for the property.public ClustersTypes.UpdateSpec.Builder setTlsEndpointCertificate(java.lang.String tlsEndpointCertificate)
Because a
Kubernetes CertificateSigningRequest is created on an existing
Namespaces-enabled cluster, you must use the UpdateSpec
to specify this
ClustersTypes.UpdateSpec.getTlsEndpointCertificate()
on an existing cluster rather than during initially enabling Namespaces on a
cluster.
In case of providing the trust chain, the certificates should be simply concatenated into a single string.
Ifnull
, Kubernetes API Server certificate(s) will not be modified.tlsEndpointCertificate
- New value for the property.public ClustersTypes.UpdateSpec.Builder setDefaultKubernetesServiceContentLibrary(java.lang.String defaultKubernetesServiceContentLibrary)
This Content Library should be subscribed to VMware's hosted vSphere Kubernetes Service Repository.
Modifying or clearing the Content Library identifier will not affect existing vSphere Kubernetes Service clusters. However, upgrades or scale-out of existing clusters may be affected if the new Content Library doesn't have the necessary VM Images.
Ifnull
, the Content Library will not be modified.defaultKubernetesServiceContentLibrary
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: com.vmware.content.Library
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.content.Library
.public ClustersTypes.UpdateSpec.Builder setWorkloadNtpServers(java.util.List<java.lang.String> workloadNtpServers)
null
, NTP servers for workloads will be unmodified.workloadNtpServers
- New value for the property.public ClustersTypes.UpdateSpec.Builder setClusterProxyConfig(ProxyConfiguration clusterProxyConfig)
Proxy configuration that will be applied to the Supervisor. The proxy should be reachable from the management network and will be used for image pulling and container traffic exiting out of the Supervisor.
Modifying these settings will result in a restart of the container runtime. Workloads might fail to pull their images for a short period of time.
There will be no effect on the currently running containers.
. This property was added in vSphere API 7.0.3.00100. Ifnull
no change will be made to the cluster.clusterProxyConfig
- New value for the property.public ClustersTypes.UpdateSpec.Builder setContentLibraries(java.util.List<ClustersTypes.ContentLibrarySpec> contentLibraries)
ClustersTypes.UpdateSpec.getDefaultKubernetesServiceContentLibrary()
.
. This property was added in vSphere API 8.0.2.0.
If null
, no additional Content Libraries will be set for the Supervisor
apart from the default Kubernetes Service Content Library.contentLibraries
- New value for the property.public ClustersTypes.UpdateSpec build()