solutions/project/spoke-unclass-env/network/psc/google-apis/dns.yaml (103 lines of code) (raw):

# 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. ######### # Private DNS zone for googleapis.com # SC-22 apiVersion: dns.cnrm.cloud.google.com/v1beta1 kind: DNSManagedZone metadata: name: project-id-googleapis-dns # kpt-set: ${project-id}-googleapis-dns namespace: networking annotations: cnrm.cloud.google.com/project-id: project-id # kpt-set: ${project-id} config.kubernetes.io/depends-on: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/project-id-global-vpc1-vpc # kpt-set: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/${project-id}-global-vpc1-vpc spec: description: "Private DNS zone for googleapis.com" resourceID: googleapis-dns dnsName: "googleapis.com." visibility: private privateVisibilityConfig: networks: - networkRef: name: project-id-global-vpc1-vpc # kpt-set: ${project-id}-global-vpc1-vpc --- # Record Set for googleapis.com in googleapis.com DNS zone # SC-22 apiVersion: dns.cnrm.cloud.google.com/v1beta1 kind: DNSRecordSet metadata: name: project-id-googleapis-rset # kpt-set: ${project-id}-googleapis-rset namespace: networking annotations: cnrm.cloud.google.com/project-id: project-id # kpt-set: ${project-id} config.kubernetes.io/depends-on: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/project-id-global-vpc1-vpc # kpt-set: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/${project-id}-global-vpc1-vpc spec: name: "googleapis.com." type: "A" ttl: 300 managedZoneRef: name: project-id-googleapis-dns # kpt-set: ${project-id}-googleapis-dns rrdatas: - "10.255.255.254" --- # Record Set for wildcard in googleapis.com DNS zone # SC-22 apiVersion: dns.cnrm.cloud.google.com/v1beta1 kind: DNSRecordSet metadata: name: project-id-googleapis-wildcard-rset # kpt-set: ${project-id}-googleapis-wildcard-rset namespace: networking annotations: cnrm.cloud.google.com/project-id: project-id # kpt-set: ${project-id} config.kubernetes.io/depends-on: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/project-id-global-vpc1-vpc # kpt-set: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/${project-id}-global-vpc1-vpc spec: name: "*.googleapis.com." type: "CNAME" ttl: 300 managedZoneRef: name: project-id-googleapis-dns # kpt-set: ${project-id}-googleapis-dns rrdatas: - "googleapis.com." --- # Private DNS zone for gcr.io # SC-22 apiVersion: dns.cnrm.cloud.google.com/v1beta1 kind: DNSManagedZone metadata: name: project-id-gcrio-dns # kpt-set: ${project-id}-gcrio-dns namespace: networking annotations: cnrm.cloud.google.com/project-id: project-id # kpt-set: ${project-id} config.kubernetes.io/depends-on: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/project-id-global-vpc1-vpc # kpt-set: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/${project-id}-global-vpc1-vpc spec: description: "Private DNS zone for gcr.io" resourceID: gcrio-dns dnsName: "gcr.io." visibility: private privateVisibilityConfig: networks: - networkRef: name: project-id-global-vpc1-vpc # kpt-set: ${project-id}-global-vpc1-vpc --- # Record Set for gcr.io in gcr.io DNS zone # SC-22 apiVersion: dns.cnrm.cloud.google.com/v1beta1 kind: DNSRecordSet metadata: name: project-id-gcrio-rset # kpt-set: ${project-id}-gcrio-rset namespace: networking annotations: cnrm.cloud.google.com/project-id: project-id # kpt-set: ${project-id} config.kubernetes.io/depends-on: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/project-id-global-vpc1-vpc # kpt-set: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/${project-id}-global-vpc1-vpc spec: name: "gcr.io." type: "A" ttl: 300 managedZoneRef: name: project-id-gcrio-dns # kpt-set: ${project-id}-gcrio-dns rrdatas: - "10.255.255.254" --- # Record Set for wildcard in gcr.io DNS zone # SC-22 apiVersion: dns.cnrm.cloud.google.com/v1beta1 kind: DNSRecordSet metadata: name: project-id-gcrio-wildcard-rset # kpt-set: ${project-id}-gcrio-wildcard-record-set namespace: networking annotations: cnrm.cloud.google.com/project-id: project-id # kpt-set: ${project-id} config.kubernetes.io/depends-on: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/project-id-global-vpc1-vpc # kpt-set: compute.cnrm.cloud.google.com/namespaces/networking/ComputeNetwork/${project-id}-global-vpc1-vpc spec: name: "*.gcr.io." type: "CNAME" ttl: 300 managedZoneRef: name: project-id-gcrio-dns # kpt-set: ${project-id}-gcrio-dns rrdatas: - "gcr.io."