NetworkConnectivitySpoke


Property Value
Google Cloud Service Name Network Connectivity
Google Cloud Service Documentation /network-connectivity/docs/
Google Cloud REST Resource Name v1.projects.locations.spokes
Google Cloud REST Resource Documentation /network-connectivity/docs/reference/networkconnectivity/rest/v1/projects.locations.spokes/a>
Config Connector Resource Short Names gcpnetworkconnectivityspoke
gcpnetworkconnectivityspokes
networkconnectivityspoke
Config Connector Service Name networkconnectivity.googleapis.com
Config Connector Resource Fully Qualified Name networkconnectivityspokes.networkconnectivity.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

description: string
hubRef:
  external: string
  name: string
  namespace: string
linkedInterconnectAttachments:
  siteToSiteDataTransfer: boolean
  uris:
  - external: string
    name: string
    namespace: string
linkedRouterApplianceInstances:
  instances:
  - ipAddress: string
    virtualMachineRef:
      external: string
      name: string
      namespace: string
  siteToSiteDataTransfer: boolean
linkedVPCNetwork:
  excludeExportRanges:
  - string
  uriRef:
    external: string
    name: string
    namespace: string
linkedVpnTunnels:
  siteToSiteDataTransfer: boolean
  uris:
  - external: string
    name: string
    namespace: string
location: string
projectRef:
  external: string
  name: string
  namespace: string
resourceID: string
Fields

description

Optional

string

An optional description of the spoke.

hubRef

Required

object

Immutable.

hubRef.external

Optional

string

Immutable. The URI of the hub that this spoke is attached to. Allowed value: The Google Cloud resource name of a `NetworkConnectivityHub` resource (format: `projects/{{project}}/locations/global/hubs/{{name}}`).

hubRef.name

Optional

string

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

hubRef.namespace

Optional

string

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

linkedInterconnectAttachments

Optional

object

Immutable. A collection of VLAN attachment resources. These resources should be redundant attachments that all advertise the same prefixes to Google Cloud. Alternatively, in active/passive configurations, all attachments should be capable of advertising the same prefixes.

linkedInterconnectAttachments.siteToSiteDataTransfer

Required*

boolean

Immutable. A value that controls whether site-to-site data transfer is enabled for these resources. Note that data transfer is available only in supported locations.

linkedInterconnectAttachments.uris

Required*

list (object)

Immutable.

linkedInterconnectAttachments.uris[]

Required*

object

linkedInterconnectAttachments.uris[].external

Optional

string

Allowed value: The `selfLink` field of a `ComputeInterconnectAttachment` resource.

linkedInterconnectAttachments.uris[].name

Optional

string

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

linkedInterconnectAttachments.uris[].namespace

Optional

string

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

linkedRouterApplianceInstances

Optional

object

Immutable. The URIs of linked Router appliance resources

linkedRouterApplianceInstances.instances

Required*

list (object)

Immutable. The list of router appliance instances

linkedRouterApplianceInstances.instances[]

Required*

object

linkedRouterApplianceInstances.instances[].ipAddress

Optional

string

Immutable. The IP address on the VM to use for peering.

linkedRouterApplianceInstances.instances[].virtualMachineRef

Optional

object

Immutable.

linkedRouterApplianceInstances.instances[].virtualMachineRef.external

Optional

string

The URI of the virtual machine resource Allowed value: The `selfLink` field of a `ComputeInstance` resource.

linkedRouterApplianceInstances.instances[].virtualMachineRef.name

Optional

string

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

linkedRouterApplianceInstances.instances[].virtualMachineRef.namespace

Optional

string

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

linkedRouterApplianceInstances.siteToSiteDataTransfer

Required*

boolean

Immutable. A value that controls whether site-to-site data transfer is enabled for these resources. Note that data transfer is available only in supported locations.

linkedVPCNetwork

Optional

object

Immutable. VPC network that is associated with the spoke.

linkedVPCNetwork.excludeExportRanges

Optional

list (string)

Immutable. IP ranges encompassing the subnets to be excluded from peering.

linkedVPCNetwork.excludeExportRanges[]

Optional

string

linkedVPCNetwork.uriRef

Required*

object

Immutable.

linkedVPCNetwork.uriRef.external

Optional

string

The URI of the VPC network resource. Allowed value: The `selfLink` field of a `ComputeNetwork` resource.

linkedVPCNetwork.uriRef.name

Optional

string

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

linkedVPCNetwork.uriRef.namespace

Optional

string

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

linkedVpnTunnels

Optional

object

Immutable. The URIs of linked VPN tunnel resources

linkedVpnTunnels.siteToSiteDataTransfer

Required*

boolean

Immutable. A value that controls whether site-to-site data transfer is enabled for these resources. Note that data transfer is available only in supported locations.

linkedVpnTunnels.uris

Required*

list (object)

Immutable.

linkedVpnTunnels.uris[]

Required*

object

linkedVpnTunnels.uris[].external

Optional

string

Allowed value: The `selfLink` field of a `ComputeVPNTunnel` resource.

linkedVpnTunnels.uris[].name

Optional

string

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

linkedVpnTunnels.uris[].namespace

Optional

string

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

location

Required

string

Immutable. The location for the resource

projectRef

Required

object

Immutable. The Project that this resource belongs to.

projectRef.external

Optional

string

The project for the resource Allowed value: The Google Cloud resource name of a `Project` resource (format: `projects/{{name}}`).

projectRef.name

Optional

string

Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names

projectRef.namespace

Optional

string

Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/

resourceID

Optional

string

Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of `metadata.name` is used as the default.

* Field is required when parent field is specified

Status

Schema

conditions:
- lastTransitionTime: string
  message: string
  reason: string
  status: string
  type: string
createTime: string
observedGeneration: integer
state: string
uniqueId: string
updateTime: string
Fields
conditions

list (object)

Conditions represent the latest available observation of the resource's current state.

conditions[]

object

conditions[].lastTransitionTime

string

Last time the condition transitioned from one status to another.

conditions[].message

string

Human-readable message indicating details about last transition.

conditions[].reason

string

Unique, one-word, CamelCase reason for the condition's last transition.

conditions[].status

string

Status is the status of the condition. Can be True, False, Unknown.

conditions[].type

string

Type is the type of the condition.

createTime

string

Output only. The time the spoke was created.

observedGeneration

integer

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.

state

string

Output only. The current lifecycle state of this spoke. Possible values: STATE_UNSPECIFIED, CREATING, ACTIVE, DELETING

uniqueId

string

Output only. The Google-generated UUID for the spoke. This value is unique across all spoke resources. If a spoke is deleted and another with the same name is created, the new spoke is assigned a different unique_id.

updateTime

string

Output only. The time the spoke was last updated.

Sample YAML(s)

Typical Use Case

# 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: networkconnectivity.cnrm.cloud.google.com/v1beta1
kind: NetworkConnectivitySpoke
metadata:
  name: networkconnectivityspoke-sample
  labels:
    label-one: "value-one"
spec:
  location: us-central1
  description: "A sample spoke with a linked router appliance instance"
  hubRef:
    name: networkconnectivityspoke-dep
  linkedRouterApplianceInstances:
    instances:
      - virtualMachineRef:
          name: networkconnectivityspoke-dep
        ipAddress: "10.0.0.2"
    siteToSiteDataTransfer: true
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeInstance
metadata:
  annotations:
    cnrm.cloud.google.com/allow-stopping-for-update: "true"
  name: networkconnectivityspoke-dep
  labels:
    created-from: "image"
    network-type: "subnetwork"
spec:
  machineType: n1-standard-1
  zone: us-central1-a
  bootDisk:
    initializeParams:
      sourceImageRef:
        external: debian-cloud/debian-11
  networkInterface:
    - subnetworkRef:
        name: networkconnectivityspoke-dep
      networkIp: "10.0.0.2"
      accessConfigs:
        - networkTier: "PREMIUM"
  canIpForward: true
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
  labels:
    label-one: "value-one"
  name: networkconnectivityspoke-dep
spec:
  autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
  labels:
    label-one: "value-one"
  name: networkconnectivityspoke-dep
spec:
  ipCidrRange: 10.0.0.0/28
  region: us-central1
  networkRef:
    name: networkconnectivityspoke-dep
---
apiVersion: networkconnectivity.cnrm.cloud.google.com/v1beta1
kind: NetworkConnectivityHub
metadata:
  name: networkconnectivityspoke-dep
  labels:
    label-one: "value-one"
spec:
  description: "A sample hub"