...

Text file src/edge-infra.dev/config/pallets/sds/k8s-gateway/k8s-gateway-deployment.yaml

Documentation: edge-infra.dev/config/pallets/sds/k8s-gateway

     1apiVersion: apps/v1
     2kind: Deployment
     3metadata:
     4  name: excoredns
     5  namespace: k8s-gateway
     6spec:
     7  replicas: 1
     8  selector:
     9    matchLabels:
    10      k8s-app: "excoredns"
    11  template:
    12    metadata:
    13      labels:
    14        k8s-app: "excoredns"
    15    spec:
    16      dnsPolicy: ClusterFirst
    17      serviceAccountName: excoredns
    18      priorityClassName: edge-p2-critical-services
    19      containers:
    20      - name: "coredns"
    21        image: bzl://hack/deps:k8s_gateway_container_push
    22        args: ["-conf", "/etc/coredns/Corefile"]
    23        ports:
    24        - {name: udp-53, protocol: UDP, containerPort: 53}
    25        - {name: tcp-53, protocol: TCP, containerPort: 53}
    26        - {name: metrics, protocol: TCP, containerPort: 9153}
    27        resources:
    28          limits:
    29            cpu: "100m"
    30            memory: 128Mi
    31          requests:
    32            cpu: 100m
    33            memory: 128Mi
    34        volumeMounts:
    35        - name: config-volume
    36          mountPath: /etc/coredns
    37        imagePullPolicy: IfNotPresent
    38      volumes:
    39      - name: config-volume
    40        configMap:
    41          name: excoredns
    42          items:
    43          - key: Corefile
    44            path: Corefile

View as plain text