ProjectsZonesClusters
class ProjectsZonesClusters extends Resource (View source)
The "clusters" collection of methods.
Typical usage is:
$containerService = new Google\Service\Container(...);
$clusters = $containerService->projects_zones_clusters;
Methods
Sets the addons for a specific cluster. (clusters.addons)
Completes master IP rotation. (clusters.completeIpRotation)
Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's default network. One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. (clusters.create)
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
Gets the details of a specific cluster. (clusters.get)
Enables or disables the ABAC authorization mechanism on a cluster.
Lists all clusters owned by a project in either the specified zone or all zones. (clusters.listProjectsZonesClusters)
Sets the locations for a specific cluster. Deprecated. Use projects.locations.clusters.update instead.
Sets the logging service for a specific cluster. (clusters.logging)
Updates the master for a specific cluster. (clusters.master)
Sets the monitoring service for a specific cluster. (clusters.monitoring)
Sets labels on a cluster. (clusters.resourceLabels)
Sets the maintenance policy for a cluster. (clusters.setMaintenancePolicy)
Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password. (clusters.setMasterAuth)
Enables or disables Network Policy for a cluster. (clusters.setNetworkPolicy)
Starts master IP rotation. (clusters.startIpRotation)
Updates the settings of a specific cluster. (clusters.update)
Details
Operation
addons(string $projectId, string $zone, string $clusterId, SetAddonsConfigRequest $postBody, array $optParams = [])
Sets the addons for a specific cluster. (clusters.addons)
Operation
completeIpRotation(string $projectId, string $zone, string $clusterId, CompleteIPRotationRequest $postBody, array $optParams = [])
Completes master IP rotation. (clusters.completeIpRotation)
Operation
create(string $projectId, string $zone, CreateClusterRequest $postBody, array $optParams = [])
Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's default network. One firewall is added for the cluster. After cluster creation, the Kubelet creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range the cluster is using. (clusters.create)
Operation
delete(string $projectId, string $zone, string $clusterId, array $optParams = [])
Deletes the cluster, including the Kubernetes endpoint and all worker nodes.
Firewalls and routes that were configured during cluster creation are also deleted. Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created. (clusters.delete)
Cluster
get(string $projectId, string $zone, string $clusterId, array $optParams = [])
Gets the details of a specific cluster. (clusters.get)
Operation
legacyAbac(string $projectId, string $zone, string $clusterId, SetLegacyAbacRequest $postBody, array $optParams = [])
Enables or disables the ABAC authorization mechanism on a cluster.
(clusters.legacyAbac)
ListClustersResponse
listProjectsZonesClusters(string $projectId, string $zone, array $optParams = [])
Lists all clusters owned by a project in either the specified zone or all zones. (clusters.listProjectsZonesClusters)
Operation
locations(string $projectId, string $zone, string $clusterId, SetLocationsRequest $postBody, array $optParams = [])
Sets the locations for a specific cluster. Deprecated. Use projects.locations.clusters.update instead.
(clusters.locations)
Operation
logging(string $projectId, string $zone, string $clusterId, SetLoggingServiceRequest $postBody, array $optParams = [])
Sets the logging service for a specific cluster. (clusters.logging)
Operation
master(string $projectId, string $zone, string $clusterId, UpdateMasterRequest $postBody, array $optParams = [])
Updates the master for a specific cluster. (clusters.master)
Operation
monitoring(string $projectId, string $zone, string $clusterId, SetMonitoringServiceRequest $postBody, array $optParams = [])
Sets the monitoring service for a specific cluster. (clusters.monitoring)
Operation
resourceLabels(string $projectId, string $zone, string $clusterId, SetLabelsRequest $postBody, array $optParams = [])
Sets labels on a cluster. (clusters.resourceLabels)
Operation
setMaintenancePolicy(string $projectId, string $zone, string $clusterId, SetMaintenancePolicyRequest $postBody, array $optParams = [])
Sets the maintenance policy for a cluster. (clusters.setMaintenancePolicy)
Operation
setMasterAuth(string $projectId, string $zone, string $clusterId, SetMasterAuthRequest $postBody, array $optParams = [])
Sets master auth materials. Currently supports changing the admin password or a specific cluster, either via password generation or explicitly setting the password. (clusters.setMasterAuth)
Operation
setNetworkPolicy(string $projectId, string $zone, string $clusterId, SetNetworkPolicyRequest $postBody, array $optParams = [])
Enables or disables Network Policy for a cluster. (clusters.setNetworkPolicy)
Operation
startIpRotation(string $projectId, string $zone, string $clusterId, StartIPRotationRequest $postBody, array $optParams = [])
Starts master IP rotation. (clusters.startIpRotation)
Operation
update(string $projectId, string $zone, string $clusterId, UpdateClusterRequest $postBody, array $optParams = [])
Updates the settings of a specific cluster. (clusters.update)