33 lines
749 B
YAML
33 lines
749 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: coredns-multus
|
|
namespace: coredns-multus
|
|
annotations:
|
|
k8s.v1.cni.cncf.io/networks: |
|
|
[
|
|
{ "name": "br-admin", "namespace": "kube-system" },
|
|
{ "name": "br-srv", "namespace": "kube-system" }
|
|
]
|
|
spec:
|
|
hostNetwork: true
|
|
containers:
|
|
- name: coredns
|
|
image: coredns/coredns:1.11.1
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /etc/coredns/Corefile
|
|
subPath: Corefile
|
|
ports:
|
|
- containerPort: 53
|
|
protocol: UDP
|
|
- containerPort: 53
|
|
protocol: TCP
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: coredns-config
|
|
tolerations:
|
|
- operator: "Exists"
|
|
dnsPolicy: "Default"
|