Skip to content

GcpVpcPeering Custom Resource ​

The gcpvpcpeering.cloud-resources.kyma-project.io custom resource (CR) describes the Virtual Private Cloud (VPC) peering that you can create to allow communication between Kyma and a remote VPC in Google Cloud. It enables you to consume services available in the remote VPC from the Kyma cluster.

Specification ​

This table lists the parameters of the given resource together with their descriptions:

Spec:

ParameterTypeDescription
importCustomRoutesboolIf set to true, custom routes are exported from the remote VPC and imported into Kyma.
remotePeeringNamestringThe VPC Peering name in the remote project. To find it, select Google Cloud project under VPC > {VPC Name} > VPC Network Peering in your Google Cloud Project.
remoteProjectstringThe Google Cloud project to be peered with Kyma. The remote VPC is located in this project.
remoteVpcNamestringThe name of the remote VPC to be peered with Kyma.

Status:

ParameterTypeDescription
state (required)stringRepresents the current state of CustomObject.
conditions[]objectRepresents the current state of the CR's conditions.
conditions.lastTransitionTimestringDefines the date of the last condition status change.
conditions.messagestringProvides more details about the condition status change.
conditions.reasonstringDefines the reason for the condition status change.
conditions.status (required)stringRepresents the status of the condition.
conditions.typestringProvides a short description of the condition.

Sample Custom Resource ​

See an exemplary GcpVpcPeering custom resource:

yaml
apiVersion: cloud-resources.kyma-project.io/v1beta1
kind: GcpVpcPeering
metadata:
  name: "peering-with-kyma-dev"
spec:
  remotePeeringName: "peering-dev-vpc-to-kyma-dev"
  remoteProject: "my-remote-project"
  remoteVpc: "default"
  importCustomRoutes: false