WorkstationCluster
Property | Value |
---|---|
Google Cloud Service Name | Cloud Workstations |
Google Cloud Service Documentation | /workstations/docs/ |
Google Cloud REST Resource Name | v1.projects.locations.workstationClusters |
Google Cloud REST Resource Documentation | /workstations/docs/reference/rest/v1/projects.locations.workstationClusters |
Config Connector Resource Short Names | workstationcluster |
Config Connector Service Name | workstations.googleapis.com |
Config Connector Resource Fully Qualified Name | workstationclusters.workstations.cnrm.cloud.google.com |
Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Spec
Schema
annotations:
- key: string
value: string
displayName: string
labels:
- key: string
value: string
location: string
networkRef:
external: string
name: string
namespace: string
privateClusterConfig:
allowedProjects:
- external: string
kind: string
name: string
namespace: string
enablePrivateEndpoint: boolean
projectRef:
external: string
kind: string
name: string
namespace: string
resourceID: string
subnetworkRef:
external: string
name: string
namespace: string
Fields | |
---|---|
Optional |
Optional. Client-specified annotations. |
Optional |
|
Optional |
Key for the annotation. |
Optional |
Value for the annotation. |
Optional |
Optional. Human-readable name for this workstation cluster. |
Optional |
Optional. [Labels](https://cloud.google.com/workstations/docs/label-resources) that are applied to the workstation cluster and that are also propagated to the underlying Compute Engine resources. |
Optional |
|
Optional |
Key for the annotation. |
Optional |
Value for the annotation. |
Optional |
The location of the cluster. |
Required* |
Immutable. Reference to the Compute Engine network in which instances associated with this workstation cluster will be created. |
Optional |
A reference to an externally managed Compute Network resource. Should be in the format `projects/ |
Optional |
The `name` field of a `ComputeNetwork` resource. |
Optional |
The `namespace` field of a `ComputeNetwork` resource. |
Optional |
Optional. Configuration for private workstation cluster. |
Optional |
Optional. Additional projects that are allowed to attach to the workstation cluster's service attachment. By default, the workstation cluster's project and the VPC host project (if different) are allowed. |
Optional |
The Project that this resource belongs to. |
Optional |
The `projectID` field of a project, when not managed by Config Connector. |
Optional |
The kind of the Project resource; optional but must be `Project` if provided. |
Optional |
The `name` field of a `Project` resource. |
Optional |
The `namespace` field of a `Project` resource. |
Optional |
Immutable. Whether Workstations endpoint is private. |
Required* |
Immutable. The Project that this resource belongs to. |
Optional |
The `projectID` field of a project, when not managed by Config Connector. |
Optional |
The kind of the Project resource; optional but must be `Project` if provided. |
Optional |
The `name` field of a `Project` resource. |
Optional |
The `namespace` field of a `Project` resource. |
Optional |
Immutable. The WorkstationCluster name. If not given, the metadata.name will be used. |
Required* |
Immutable. Reference to the Compute Engine subnetwork in which instances associated with this workstation cluster will be created. Must be part of the subnetwork specified for this workstation cluster. |
Optional |
The ComputeSubnetwork selflink of form "projects/{{project}}/regions/{{region}}/subnetworks/{{name}}", when not managed by Config Connector. |
Optional |
The `name` field of a `ComputeSubnetwork` resource. |
Optional |
The `namespace` field of a `ComputeSubnetwork` resource. |
* Field is required when parent field is specified
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
externalRef: string
observedGeneration: integer
observedState:
clusterHostname: string
controlPlaneIP: string
createTime: string
degraded: boolean
deleteTime: string
etag: string
gcpConditions:
- code: integer
message: string
reconciling: boolean
serviceAttachmentUri: string
uid: string
updateTime: string
Fields | |
---|---|
conditions |
Conditions represent the latest available observations of the object's current state. |
conditions[] |
|
conditions[].lastTransitionTime |
Last time the condition transitioned from one status to another. |
conditions[].message |
Human-readable message indicating details about last transition. |
conditions[].reason |
Unique, one-word, CamelCase reason for the condition's last transition. |
conditions[].status |
Status is the status of the condition. Can be True, False, Unknown. |
conditions[].type |
Type is the type of the condition. |
externalRef |
A unique specifier for the WorkstationCluster resource in GCP. |
observedGeneration |
ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource. |
observedState |
ObservedState is the state of the resource as most recently observed in GCP. |
observedState.clusterHostname |
Output only. Hostname for the workstation cluster. This field will be populated only when private endpoint is enabled. To access workstations in the workstation cluster, create a new DNS zone mapping this domain name to an internal IP address and a forwarding rule mapping that address to the service attachment. |
observedState.controlPlaneIP |
Output only. The private IP address of the control plane for this workstation cluster. Workstation VMs need access to this IP address to work with the service, so make sure that your firewall rules allow egress from the workstation VMs to this address. |
observedState.createTime |
Output only. Time when this workstation cluster was created. |
observedState.degraded |
Output only. Whether this workstation cluster is in degraded mode, in which case it may require user action to restore full functionality. Details can be found in [conditions][google.cloud.workstations.v1.WorkstationCluster.conditions]. |
observedState.deleteTime |
Output only. Time when this workstation cluster was soft-deleted. |
observedState.etag |
Optional. Checksum computed by the server. May be sent on update and delete requests to make sure that the client has an up-to-date value before proceeding. |
observedState.gcpConditions |
Output only. Status conditions describing the workstation cluster's current state. |
observedState.gcpConditions[] |
|
observedState.gcpConditions[].code |
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code]. |
observedState.gcpConditions[].message |
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client. |
observedState.reconciling |
Output only. Indicates whether this workstation cluster is currently being updated to match its intended state. |
observedState.serviceAttachmentUri |
Output only. Service attachment URI for the workstation cluster. The service attachment is created when private endpoint is enabled. To access workstations in the workstation cluster, configure access to the managed service using [Private Service Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services). |
observedState.uid |
Output only. A system-assigned unique identifier for this workstation cluster. |
observedState.updateTime |
Output only. Time when this workstation cluster was most recently updated. |
Sample YAML(s)
Basic WorkstationCluster
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: workstations.cnrm.cloud.google.com/v1beta1
kind: WorkstationCluster
metadata:
name: workstationcluster-sample
spec:
projectRef:
external: "projects/${PROJECT_NUMBER1}"
location: us-west1
networkRef:
name: computenetwork-dep
subnetworkRef:
name: computesubnetwork-dep
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: computenetwork-dep
spec:
routingMode: GLOBAL
autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: computesubnetwork-dep
spec:
ipCidrRange: 10.0.0.0/24
region: us-west1
networkRef:
name: computenetwork-dep
WorkstationCluster With Privateclusterconfig
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: workstations.cnrm.cloud.google.com/v1beta1
kind: WorkstationCluster
metadata:
name: workstationcluster-sample
spec:
projectRef:
external: "projects/${PROJECT_NUMBER1}"
location: us-west1
displayName: workstationcluster-sample-displayname
annotations:
- key: a-key1
value: a-value1
labels:
- key: l-key1
value: l-value1
networkRef:
name: computenetwork-dep
subnetworkRef:
name: computesubnetwork-dep
privateClusterConfig:
enablePrivateEndpoint: true
allowedProjects:
- external: "projects/${PROJECT_NUMBER1}"
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: computenetwork-dep
spec:
routingMode: GLOBAL
autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: computesubnetwork-dep
spec:
ipCidrRange: 10.0.0.0/24
region: us-west1
networkRef:
name: computenetwork-dep