github.com/fafucoder/cilium@v1.6.11/examples/kubernetes-ingress/deployments/coredns-svc.yaml.sed (about)

     1  # Copyright 2016 The Kubernetes Authors.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  # Warning: This is a file generated from the base underscore template file: kubedns-svc.yaml.base
    16  
    17  apiVersion: v1
    18  kind: Service
    19  metadata:
    20    name: kube-dns
    21    namespace: kube-system
    22    annotations:
    23      prometheus.io/port: "9153"
    24      prometheus.io/scrape: "true"
    25    labels:
    26      k8s-app: kube-dns
    27      kubernetes.io/cluster-service: "true"
    28      addonmanager.kubernetes.io/mode: Reconcile
    29      kubernetes.io/name: "CoreDNS"
    30  spec:
    31    selector:
    32      k8s-app: kube-dns
    33    clusterIP: $DNS_SERVER_IP
    34    ports:
    35    - name: dns
    36      port: 53
    37      protocol: UDP
    38    - name: dns-tcp
    39      port: 53
    40      protocol: TCP
    41    - name: metrics
    42      port: 9153
    43      protocol: TCP