AzureVpcPeering Custom Resource ​
The azurevpcpeering.cloud-resources.kyma-project.io custom resource (CR) specifies the virtual network peering between Kyma and the remote Azure Virtual Private Cloud (VPC) network. Virtual network peering is only possible within Microsoft Azure networks whose subscriptions are sharing the same tenant determined by the Kyma underlying cloud provider landscape.
Once an AzureVpcPeering CR is created and reconciled, the Cloud Manager controller creates a VPC peering connection in the VPC network of the Kyma cluster in the underlying cloud provider landscape, and accepts a VPC peering connection in the remote cloud provider landscape.
Specification ​
This table lists the parameters of the given resource together with their descriptions:
Spec:
| Parameter | Type | Description |
|---|---|---|
| remotePeeringName | string | Specifies the name of the VNet peering in the remote subscription. |
| remoteVnet | string | Specifies the ID of the VNet in the remote subscription. |
| remoteTenant | string | Optional. Specifies the tenant ID of the remote subscription. Defaults to Kyma cluster underlying cloud provider subscription tenant. |
Status:
| Parameter | Type | Description |
|---|---|---|
| state | string | Signifies the current state of CustomObject. |
| conditions | []object | Represents the current state of the CR's conditions. |
| conditions.lastTransitionTime | string | Defines the date of the last condition status change. |
| conditions.message | string | Provides more details about the condition status change. |
| conditions.reason | string | Defines the reason for the condition status change. |
| conditions.status (required) | string | Represents the status of the condition. The value is either True, False, or Unknown. |
| conditions.type | string | Provides a short description of the condition. |
Sample Custom Resource ​
See an exemplary AzureVpcPeering custom resource:
apiVersion: cloud-resources.kyma-project.io/v1beta1
kind: AzureVpcPeering
metadata:
name: peering-to-my-vnet
spec:
remotePeeringName: peering-to-my-kyma
remoteVnet: /subscriptions/afdbc79f-de19-4df4-94cd-6be2739dc0e0/resourceGroups/MyResourceGroup/providers/Microsoft.Network/virtualNetworks/MyVnet
remoteTenant: ac3ddba3-536d-4b6f-aad7-03b942e46aca