The following resources are composed to implement the referenced Composite Resource Definition (XRD).
Network
Subnetwork
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
name: xnetworks.gcp.platformref.upbound.io
creationTimestamp: null
labels:
provider: GCP
spec:
compositeTypeRef:
apiVersion: gcp.platformref.upbound.io/v1alpha1
kind: XNetwork
resources:
- base:
apiVersion: compute.gcp.upbound.io/v1beta1
kind: Network
spec:
forProvider:
autoCreateSubnetworks: false
routingMode: REGIONAL
patches:
- fromFieldPath: spec.id
toFieldPath: metadata.name
- fromFieldPath: spec.id
toFieldPath: metadata.labels[networks.gcp.platformref.upbound.io/network-id]
- base:
apiVersion: compute.gcp.upbound.io/v1beta1
kind: Subnetwork
spec:
forProvider:
ipCidrRange: 172.16.0.0/16
networkSelector:
matchControllerRef: true
privateIpGoogleAccess: true
region: us-west2
secondaryIpRange:
- ipCidrRange: 10.200.0.0/14
rangeName: pods
- ipCidrRange: 10.204.0.0/16
rangeName: services
patches:
- fromFieldPath: spec.id
toFieldPath: metadata.labels[networks.gcp.platformref.upbound.io/network-id]
writeConnectionSecretsToNamespace: upbound-system
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.