DNSRecordSet
Property | Value |
---|---|
Google Cloud Service Name | Cloud DNS |
Google Cloud Service Documentation | /dns/docs/ |
Google Cloud REST Resource Name | v1beta2.resourceRecordSets |
Google Cloud REST Resource Documentation | /dns/docs/reference/v1beta2/resourceRecordSets |
Config Connector Resource Short Names | gcpdnsrecordset gcpdnsrecordsets dnsrecordset |
Config Connector Service Name | dns.googleapis.com |
Config Connector Resource Fully Qualified Name | dnsrecordsets.dns.cnrm.cloud.google.com |
Can Be Referenced by IAMPolicy/IAMPolicyMember | No |
Config Connector Default Average Reconcile Interval In Seconds | 600 |
Custom Resource Definition Properties
Annotations
Fields | |
---|---|
cnrm.cloud.google.com/project-id |
Spec
Schema
managedZoneRef:
external: string
name: string
namespace: string
name: string
routingPolicy:
enableGeoFencing: boolean
geo:
- healthCheckedTargets:
internalLoadBalancers:
- ipAddressRef:
external: string
name: string
namespace: string
ipProtocol: string
loadBalancerType: string
networkRef:
external: string
name: string
namespace: string
port: string
projectRef:
external: string
name: string
namespace: string
regionRef:
external: string
name: string
namespace: string
location: string
rrdatasRefs:
- external: string
kind: string
name: string
namespace: string
primaryBackup:
backupGeo:
- healthCheckedTargets:
internalLoadBalancers:
- ipAddressRef:
external: string
name: string
namespace: string
ipProtocol: string
loadBalancerType: string
networkRef:
external: string
name: string
namespace: string
port: string
projectRef:
external: string
name: string
namespace: string
regionRef:
external: string
name: string
namespace: string
location: string
rrdatasRefs:
- external: string
name: string
namespace: string
enableGeoFencingForBackups: boolean
primary:
internalLoadBalancers:
- ipAddressRef:
external: string
name: string
namespace: string
ipProtocol: string
loadBalancerType: string
networkRef:
external: string
name: string
namespace: string
port: string
projectRef:
external: string
name: string
namespace: string
regionRef:
external: string
name: string
namespace: string
trickleRatio: float
wrr:
- healthCheckedTargets:
internalLoadBalancers:
- ipAddressRef:
external: string
name: string
namespace: string
ipProtocol: string
loadBalancerType: string
networkRef:
external: string
name: string
namespace: string
port: string
projectRef:
external: string
name: string
namespace: string
regionRef:
external: string
name: string
namespace: string
rrdatasRefs:
- external: string
kind: string
name: string
namespace: string
weight: float
rrdatas:
- string
rrdatasRefs:
- external: string
kind: string
name: string
namespace: string
ttl: integer
type: string
Fields | |
---|---|
Required |
|
Optional |
Allowed value: The `name` field of a `DNSManagedZone` 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 DNS name this record set will apply to. |
Optional |
The configuration for steering traffic based on query. You can specify either Weighted Round Robin(WRR) type or Geolocation(GEO) type. |
Optional |
Specifies whether to enable fencing for geo queries. |
Optional |
The configuration for Geo location based routing policy. |
Optional |
|
Optional |
For A and AAAA types only. The list of targets to be health checked. These can be specified along with `rrdatas` within this item. |
Required* |
The list of internal load balancers to health check. |
Required* |
|
Required* |
|
Optional |
Allowed value: The `address` field of a `ComputeAddress` 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* |
The configured IP protocol of the load balancer. This value is case-sensitive. Possible values: ["tcp", "udp"]. |
Required* |
The type of load balancer. This value is case-sensitive. Possible values: ["regionalL4ilb", "regionalL7ilb", "globalL7ilb"]. |
Required* |
|
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* |
The configured port of the load balancer. |
Required* |
|
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 |
|
Optional |
Allowed value: The `location` field of a `ComputeForwardingRule` 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* |
The location name defined in Google Cloud. |
Optional |
|
Optional |
|
Optional |
Allowed value: The `address` field of a `ComputeAddress` resource. |
Optional |
Kind of the referent. Allowed values: ComputeAddress |
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 |
The configuration for a primary-backup policy with global to regional failover. Queries are responded to with the global primary targets, but if none of the primary targets are healthy, then we fallback to a regional failover policy. |
Required* |
The backup geo targets, which provide a regional failover policy for the otherwise global primary targets. |
Required* |
|
Optional |
For A and AAAA types only. The list of targets to be health checked. These can be specified along with `rrdatas` within this item. |
Required* |
The list of internal load balancers to health check. |
Required* |
|
Required* |
|
Optional |
Allowed value: The `address` field of a `ComputeAddress` 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* |
The configured IP protocol of the load balancer. This value is case-sensitive. Possible values: ["tcp", "udp"]. |
Required* |
The type of load balancer. This value is case-sensitive. Possible values: ["regionalL4ilb", "regionalL7ilb", "globalL7ilb"]. |
Required* |
|
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* |
The configured port of the load balancer. |
Required* |
|
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 |
|
Optional |
Allowed value: The `location` field of a `ComputeForwardingRule` 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* |
The location name defined in Google Cloud. |
Optional |
|
Optional |
|
Optional |
Allowed value: The `address` field of a `ComputeAddress` 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 |
Specifies whether to enable fencing for backup geo queries. |
Required* |
The list of global primary targets to be health checked. |
Required* |
The list of internal load balancers to health check. |
Required* |
|
Required* |
|
Optional |
Allowed value: The `address` field of a `ComputeAddress` 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* |
The configured IP protocol of the load balancer. This value is case-sensitive. Possible values: ["tcp", "udp"]. |
Required* |
The type of load balancer. This value is case-sensitive. Possible values: ["regionalL4ilb", "regionalL7ilb", "globalL7ilb"]. |
Required* |
|
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* |
The configured port of the load balancer. |
Required* |
|
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 |
|
Optional |
Allowed value: The `location` field of a `ComputeForwardingRule` 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 |
Specifies the percentage of traffic to send to the backup targets even when the primary targets are healthy. |
Optional |
The configuration for Weighted Round Robin based routing policy. |
Optional |
|
Optional |
The list of targets to be health checked. Note that if DNSSEC is enabled for this zone, only one of `rrdatas` or `health_checked_targets` can be set. |
Required* |
The list of internal load balancers to health check. |
Required* |
|
Required* |
|
Optional |
Allowed value: The `address` field of a `ComputeAddress` 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* |
The configured IP protocol of the load balancer. This value is case-sensitive. Possible values: ["tcp", "udp"]. |
Required* |
The type of load balancer. This value is case-sensitive. Possible values: ["regionalL4ilb", "regionalL7ilb", "globalL7ilb"]. |
Required* |
|
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* |
The configured port of the load balancer. |
Required* |
|
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 |
|
Optional |
Allowed value: The `location` field of a `ComputeForwardingRule` 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 |
|
Optional |
|
Optional |
Allowed value: The `address` field of a `ComputeAddress` resource. |
Optional |
Kind of the referent. Allowed values: ComputeAddress |
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* |
The ratio of traffic routed to the target. |
Optional |
DEPRECATED. Although this field is still available, there is limited support. We recommend that you use `spec.rrdatasRefs` instead. |
Optional |
|
Optional |
|
Optional |
|
Optional |
Allowed value: The `address` field of a `ComputeAddress` resource. |
Optional |
Kind of the referent. Allowed values: ComputeAddress |
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 |
The time-to-live of this record set (seconds). |
Required |
The DNS record set type. |
* Field is required when parent field is specified
Status
Schema
conditions:
- lastTransitionTime: string
message: string
reason: string
status: string
type: string
observedGeneration: integer
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. |
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. |
Sample YAML(s)
DNS A Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-a
spec:
name: "www.example.com."
type: "A"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-a
rrdatas:
- "8.8.8.8"
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-a
spec:
dnsName: "example.com."
DNS A Record Set With Compute Address Reference
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-computeaddressreference
spec:
name: "www.compute-address-reference-example.com."
type: A
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-computeaddressreference
rrdatasRefs:
- name: dnsrecordset-dep-computeaddressreference
kind: ComputeAddress
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
name: dnsrecordset-dep-computeaddressreference
spec:
addressType: INTERNAL
description: a test global address
location: global
ipVersion: IPV4
purpose: VPC_PEERING
prefixLength: 16
networkRef:
name: dnsrecordset-dep-computeaddressreference
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: dnsrecordset-dep-computeaddressreference
spec:
routingMode: REGIONAL
autoCreateSubnetworks: false
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-computeaddressreference
spec:
dnsName: "compute-address-reference-example.com."
DNS Aaaa Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-aaaa
spec:
name: "www.example.com."
type: "AAAA"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-aaaa
rrdatas:
- "8888:8888:8888:8888::"
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-aaaa
spec:
dnsName: "example.com."
DNS Cname Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-cname
spec:
name: "*.example.com."
type: "CNAME"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-cname
rrdatas:
- ".www.example.com."
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-cname
spec:
dnsName: "example.com."
DNS Mx Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-mx
spec:
name: "mail.example.com."
type: "MX"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-mx
rrdatas:
- "5 gmr-stmp-in.l.google.com."
- "10 alt1.gmr-stmp-in.l.google.com."
- "10 alt2.gmr-stmp-in.l.google.com."
- "10 alt3.gmr-stmp-in.l.google.com."
- "10 alt4.gmr-stmp-in.l.google.com."
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-mx
spec:
dnsName: "example.com."
DNS Ns Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-ns
spec:
name: "example.com."
type: "NS"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-ns
rrdatas:
- "ns-cloud-a1.googledomains.com."
- "ns-cloud-a2.googledomains.com."
- "ns-cloud-a3.googledomains.com."
- "ns-cloud-a4.googledomains.com."
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-ns
spec:
dnsName: "example.com."
DNS Routing Policy Geo
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-rp-geo
spec:
name: "www.kcc-sample-dnsrecordset-rp-geo.com."
type: "A"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-rp-geo
routingPolicy:
geo:
- location: us-central1
rrdatasRefs:
- external: "1.2.3.4"
- external: "1.2.3.5"
- location: us-west1
rrdatasRefs:
- external: "2.3.4.5"
- external: "2.3.4.6"
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-rp-geo
spec:
dnsName: "kcc-sample-dnsrecordset-rp-geo.com."
DNS Routing Policy Geo Health Checks
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-rp-geo-hc
spec:
name: "www.example.com."
type: "A"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-rp-geo-hc
routingPolicy:
geo:
- location: us-central1
healthCheckedTargets:
internalLoadBalancers:
- ipAddressRef:
name: dnsrecordset-dep-rp-geo-hc
ipProtocol: tcp
loadBalancerType: regionalL4ilb
networkRef:
name: dnsrecordset-dep-rp-geo-hc
port: '80'
projectRef:
external: ${PROJECT_ID?}
regionRef:
name: dnsrecordset-dep-rp-geo-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
name: dnsrecordset-dep-rp-geo-hc
spec:
addressType: INTERNAL
location: us-central1
ipVersion: IPV4
purpose: SHARED_LOADBALANCER_VIP
subnetworkRef:
name: dnsrecordset-dep-rp-geo-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeBackendService
metadata:
name: dnsrecordset-dep-rp-geo-hc
spec:
healthChecks:
- healthCheckRef:
name: dnsrecordset-dep-rp-geo-hc
loadBalancingScheme: INTERNAL
location: us-central1
protocol: TCP
backend:
- balancingMode: CONNECTION
group:
instanceGroupRef:
name: dnsrecordset-dep-rp-geo-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
name: dnsrecordset-dep-rp-geo-hc
spec:
backendServiceRef:
name: dnsrecordset-dep-rp-geo-hc
ipAddress:
addressRef:
name: dnsrecordset-dep-rp-geo-hc
ipProtocol: "TCP"
loadBalancingScheme: INTERNAL
location: us-central1
networkRef:
name: dnsrecordset-dep-rp-geo-hc
subnetworkRef:
name: dnsrecordset-dep-rp-geo-hc
ports:
- '80'
allowGlobalAccess: true
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeHealthCheck
metadata:
name: dnsrecordset-dep-rp-geo-hc
spec:
httpHealthCheck:
port: 80
location: us-central1
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeInstanceGroup
metadata:
name: dnsrecordset-dep-rp-geo-hc
spec:
zone: us-central1-a
networkRef:
name: dnsrecordset-dep-rp-geo-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: dnsrecordset-dep-rp-geo-hc
spec:
routingMode: REGIONAL
autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: dnsrecordset-dep-rp-geo-hc
spec:
ipCidrRange: 10.2.0.0/28
region: us-central1
networkRef:
name: dnsrecordset-dep-rp-geo-hc
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-rp-geo-hc
spec:
dnsName: "example.com."
visibility: private
privateVisibilityConfig:
networks:
- networkRef:
name: dnsrecordset-dep-rp-geo-hc
DNS Routing Policy Geo With Compute Address Reference
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-rp-geo-reference
spec:
name: "www.example.com."
type: "A"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-rp
routingPolicy:
geo:
- location: us-central1
rrdatasRefs:
- name: dnsrecordset-dep-computeaddressreference1
kind: ComputeAddress
- location: us-west1
rrdatasRefs:
- name: dnsrecordset-dep-computeaddressreference2
kind: ComputeAddress
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
name: dnsrecordset-dep-computeaddressreference1
spec:
addressType: INTERNAL
description: a test global address
location: global
ipVersion: IPV4
purpose: VPC_PEERING
prefixLength: 16
networkRef:
name: dnsrecordset-dep-computenetworkreference
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
name: dnsrecordset-dep-computeaddressreference2
spec:
addressType: INTERNAL
description: a test global address
location: global
ipVersion: IPV4
purpose: VPC_PEERING
prefixLength: 16
networkRef:
name: dnsrecordset-dep-computenetworkreference
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: dnsrecordset-dep-computenetworkreference
spec:
routingMode: REGIONAL
autoCreateSubnetworks: false
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-rp
spec:
dnsName: "example.com."
visibility: private
privateVisibilityConfig:
networks:
- networkRef:
name: dnsrecordset-dep-computenetworkreference
DNS Routing Policy Primary Backup
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-rp-pb-hc
spec:
name: "www.example.com."
type: "A"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-rp-pb-hc
routingPolicy:
primaryBackup:
primary:
internalLoadBalancers:
- ipAddressRef:
name: dnsrecordset-dep-rp-pb-hc
ipProtocol: tcp
loadBalancerType: globalL7ilb
networkRef:
name: dnsrecordset-dep-rp-pb-hc
port: '80'
projectRef:
external: ${PROJECT_ID?}
backupGeo:
- location: us-central1
rrdatasRefs:
- external: "1.2.3.4"
- external: "1.2.3.5"
- location: us-west1
rrdatasRefs:
- external: "2.3.4.5"
- external: "2.3.4.6"
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
addressType: INTERNAL
location: us-central1
ipVersion: IPV4
purpose: SHARED_LOADBALANCER_VIP
subnetworkRef:
name: dnsrecordset-dep1-rp-pb-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeBackendService
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
healthChecks:
- healthCheckRef:
name: dnsrecordset-dep-rp-pb-hc
loadBalancingScheme: INTERNAL_MANAGED
location: global
protocol: HTTP
backend:
- balancingMode: UTILIZATION
group:
instanceGroupRef:
name: dnsrecordset-dep-rp-pb-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
target:
targetHTTPProxyRef:
name: dnsrecordset-dep-rp-pb-hc
ipAddress:
addressRef:
name: dnsrecordset-dep-rp-pb-hc
ipProtocol: "TCP"
loadBalancingScheme: INTERNAL_MANAGED
location: global
networkRef:
name: dnsrecordset-dep-rp-pb-hc
subnetworkRef:
name: dnsrecordset-dep1-rp-pb-hc
portRange: '80-80'
allowGlobalAccess: true
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeHealthCheck
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
httpHealthCheck:
port: 80
location: global
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeInstanceGroup
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
zone: us-central1-a
networkRef:
name: dnsrecordset-dep-rp-pb-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
routingMode: REGIONAL
autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: dnsrecordset-dep1-rp-pb-hc
spec:
ipCidrRange: 10.2.0.0/28
region: us-central1
networkRef:
name: dnsrecordset-dep-rp-pb-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: dnsrecordset-dep2-rp-pb-hc
spec:
ipCidrRange: 10.3.0.0/26
region: us-central1
purpose: GLOBAL_MANAGED_PROXY
role: ACTIVE
networkRef:
name: dnsrecordset-dep-rp-pb-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeTargetHTTPProxy
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
urlMapRef:
name: dnsrecordset-dep-rp-pb-hc
location: global
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeURLMap
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
defaultService:
backendServiceRef:
name: dnsrecordset-dep-rp-pb-hc
location: global
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-rp-pb-hc
spec:
dnsName: "example.com."
visibility: private
privateVisibilityConfig:
networks:
- networkRef:
name: dnsrecordset-dep-rp-pb-hc
DNS Routing Policy Wrr
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-rp-wrr
spec:
name: "www.kcc-sample-dnsrecordset-rp-wrr.com."
type: "A"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-rp-wrr
routingPolicy:
wrr:
- weight: 0.5
rrdatasRefs:
- external: "1.2.3.4"
- external: "1.2.3.5"
- weight: 0.5
rrdatasRefs:
- external: "2.3.4.5"
- external: "2.3.4.6"
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-rp-wrr
spec:
dnsName: "kcc-sample-dnsrecordset-rp-wrr.com."
DNS Routing Policy Wrr Health Checks
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-rp-wrr-hc
spec:
name: "www.example.com."
type: "A"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-rp-wrr-hc
routingPolicy:
wrr:
- weight: 1
healthCheckedTargets:
internalLoadBalancers:
- ipAddressRef:
name: dnsrecordset-dep-rp-wrr-hc
ipProtocol: tcp
loadBalancerType: regionalL4ilb
networkRef:
name: dnsrecordset-dep-rp-wrr-hc
port: '80'
projectRef:
external: ${PROJECT_ID?}
regionRef:
name: dnsrecordset-dep-rp-wrr-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeAddress
metadata:
name: dnsrecordset-dep-rp-wrr-hc
spec:
addressType: INTERNAL
location: us-central1
ipVersion: IPV4
purpose: SHARED_LOADBALANCER_VIP
subnetworkRef:
name: dnsrecordset-dep-rp-wrr-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeBackendService
metadata:
name: dnsrecordset-dep-rp-wrr-hc
spec:
healthChecks:
- healthCheckRef:
name: dnsrecordset-dep-rp-wrr-hc
loadBalancingScheme: INTERNAL
location: us-central1
protocol: TCP
backend:
- balancingMode: CONNECTION
group:
instanceGroupRef:
name: dnsrecordset-dep-rp-wrr-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeForwardingRule
metadata:
name: dnsrecordset-dep-rp-wrr-hc
spec:
backendServiceRef:
name: dnsrecordset-dep-rp-wrr-hc
ipAddress:
addressRef:
name: dnsrecordset-dep-rp-wrr-hc
ipProtocol: "TCP"
loadBalancingScheme: INTERNAL
location: us-central1
networkRef:
name: dnsrecordset-dep-rp-wrr-hc
subnetworkRef:
name: dnsrecordset-dep-rp-wrr-hc
ports:
- '80'
allowGlobalAccess: true
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeHealthCheck
metadata:
name: dnsrecordset-dep-rp-wrr-hc
spec:
httpHealthCheck:
port: 80
location: us-central1
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeInstanceGroup
metadata:
name: dnsrecordset-dep-rp-wrr-hc
spec:
zone: us-central1-a
networkRef:
name: dnsrecordset-dep-rp-wrr-hc
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeNetwork
metadata:
name: dnsrecordset-dep-rp-wrr-hc
spec:
routingMode: REGIONAL
autoCreateSubnetworks: false
---
apiVersion: compute.cnrm.cloud.google.com/v1beta1
kind: ComputeSubnetwork
metadata:
name: dnsrecordset-dep-rp-wrr-hc
spec:
ipCidrRange: 10.2.0.0/28
region: us-central1
networkRef:
name: dnsrecordset-dep-rp-wrr-hc
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-rp-wrr-hc
spec:
dnsName: "example.com."
visibility: private
privateVisibilityConfig:
networks:
- networkRef:
name: dnsrecordset-dep-rp-wrr-hc
DNS Srv Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-srv
spec:
name: "_example._tcp.example.com."
type: "SRV"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-srv
rrdatas:
- "0 0 9 tcpserver.cnrm-dns-example.com."
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-srv
spec:
dnsName: "example.com."
DNS Txt Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-txt
spec:
name: "example.com."
type: "TXT"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-txt
rrdatas:
- "\"This is a sample DNS text record string\""
- "Text records are normally split on spaces"
- "To prevent this, \"quote your text like this\""
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-txt
spec:
dnsName: "example.com."
Dnssec Dnskey Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-dnssecdnskey
spec:
name: "secure.example.com."
type: "DNSKEY"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-dnssecdnskey
rrdatas:
- "256 3 8 AwEAAcAPhPM4CQHqg6hZ49y2P3IdKZuF44QNCc50vjATD7W+je4va6djY5JpnNP0pIohKNYiCFap/b4Y9jjJGSOkOfkfBR8neI7X5LisMEGUjwRcrG8J9UYP1S1unTNqRcWyDYFH2q3KnIO08zImh5DiFt8yfCdKoqZUN1dup5hy0UWz"
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-dnssecdnskey
spec:
dnsName: "secure.example.com."
dnssecConfig:
state: "transfer"
Dnssec Ds Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-dnssecds
spec:
name: "host.secure.example.com."
type: "DS"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-dnssecds
rrdatas:
- "31523 5 1 c8761ba5defc26ac7b78e076d7c47fa9f86b9fba"
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-dnssecds
spec:
dnsName: "secure.example.com."
dnssecConfig:
state: "on"
Dnssec Ipsecvpnkey Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-dnssecipsecvpnkey
spec:
name: "service.secure.example.com."
type: "IPSECKEY"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-dnssecipsecvpnkey
rrdatas:
- "10 1 2 192.0.2.3 AQNRU3mG7TVTO2BkR47usntb102uFJtugbo6BSGvgqt4AQ=="
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-dnssecipsecvpnkey
spec:
dnsName: "secure.example.com."
dnssecConfig:
state: "on"
Dnssec Sshfp Record Set
# Copyright 2020 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: dns.cnrm.cloud.google.com/v1beta1
kind: DNSRecordSet
metadata:
name: dnsrecordset-sample-dnssecsshfp
spec:
name: "host.secure.example.com."
type: "SSHFP"
ttl: 300
managedZoneRef:
name: dnsrecordset-dep-dnssecsshfp
rrdatas:
- "2 1 123456789abcdef67890123456789abcdef67890"
---
apiVersion: dns.cnrm.cloud.google.com/v1beta1
kind: DNSManagedZone
metadata:
name: dnsrecordset-dep-dnssecsshfp
spec:
dnsName: "secure.example.com."
dnssecConfig:
state: "on"