VPCAccessConnector
Property | Value |
---|---|
Google Cloud Service Name | Serverless VPC Access |
Google Cloud Service Documentation | /vpc/docs/ |
Google Cloud REST Resource Name | v1beta1.projects.locations.connectors |
Google Cloud REST Resource Documentation | /vpc/docs/reference/vpcaccess/rest/v1beta1/projects.locations.connectors |
Config Connector Resource Short Names | gcpvpcaccessconnector gcpvpcaccessconnectors vpcaccessconnector |
Config Connector Service Name | vpcaccess.googleapis.com |
Config Connector Resource Fully Qualified Name | vpcaccessconnectors.vpcaccess.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
ipCidrRange: string
location: string
machineType: string
maxInstances: integer
maxThroughput: integer
minInstances: integer
minThroughput: integer
networkRef:
external: string
name: string
namespace: string
projectRef:
external: string
name: string
namespace: string
resourceID: string
subnet:
nameRef:
external: string
name: string
namespace: string
projectRef:
external: string
name: string
namespace: string
Fields | |
---|---|
Optional |
Immutable. The range of internal addresses that follows RFC 4632 notation. Example: '10.132.0.0/28'. |
Required |
Location represents the geographical location of the VPCAccessConnector. Specify a region name. Reference: GCP definition of regions/zones (https://cloud.google.com/compute/docs/regions-zones/) |
Optional |
Immutable. Machine type of VM Instance underlying connector. Default is e2-micro. |
Optional |
Immutable. Maximum value of instances in autoscaling group underlying the connector. |
Optional |
Immutable. Maximum throughput of the connector in Mbps, must be greater than 'min_throughput'. Default is 300. |
Optional |
Immutable. Minimum value of instances in autoscaling group underlying the connector. |
Optional |
Immutable. Minimum throughput of the connector in Mbps. Default and min is 200. |
Optional |
Immutable. Name or self_link of the VPC network. Required if 'ip_cidr_range' is set. |
Optional |
Allowed value: The `selfLink` field of a `ComputeNetwork` resource. |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
Required |
Immutable. The project that this resource belongs to. |
Optional |
Allowed value: The `name` field of a `Project` resource. |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
Optional |
Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default. |
Optional |
Immutable. The subnet in which to house the connector. |
Optional |
Immutable. Subnet name (relative, not fully qualified). E.g. if the full subnet selfLink is https://compute.googleapis.com/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetName} the correct input for this field would be {subnetName}" |
Optional |
Allowed value: The `name` field of a `ComputeSubnetwork` resource. |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
Optional |
Immutable. Project in which the subnet exists. If not set, this project is assumed to be the project for which the connector create request was issued. |
Optional |
Allowed value: The `name` field of a `Project` resource. |
Optional |
Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
Optional |
Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ |
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
connectedProjects:
- string
observedGeneration: integer
selfLink: string
state: string
Fields | |
---|---|
conditions |
Conditions represent the latest available observation of the resource'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. |
connectedProjects |
List of projects using the connector. |
connectedProjects[] |
|
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. |
selfLink |
The fully qualified name of this VPC connector. |
state |
State of the VPC access connector. |
Sample YAML(s)
Cidr Connector
# Copyright 2021 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: vpcaccess.cnrm.cloud.google.com/v1beta1
kind: VPCAccessConnector
metadata:
name: connector-sample-cidr
spec:
location: "us-central1"
networkRef:
name: connector-dep-cidr
ipCidrRange: "10.132.0.0/28"
minThroughput: 300
maxThroughput: 400
projectRef:
# Replace ${PROJECT_ID?} with your project ID
external: "projects/${PROJECT_ID?}"
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: connector-dep-cidr
spec:
autoCreateSubnetworks: false
Subnet Connector
# Copyright 2021 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: vpcaccess.cnrm.cloud.google.com/v1beta1
kind: VPCAccessConnector
metadata:
name: connector-sample-subnet
spec:
location: "us-central1"
machineType: "e2-micro"
minInstances: 2
maxInstances: 3
subnet:
nameRef:
name: connector-dep-subnet
projectRef:
# Replace ${PROJECT_ID?} with your project ID.
external: "projects/${PROJECT_ID?}"
projectRef:
# Replace ${PROJECT_ID?} with your project ID
external: "projects/${PROJECT_ID?}"
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: connector-dep-subnet
spec:
autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: connector-dep-subnet
spec:
ipCidrRange: "10.2.0.0/28"
region: "us-west2"
networkRef:
name: connector-dep-subnet