añadiendo ejemplo de multus
This commit is contained in:
32
coredns/deployment.yaml
Normal file
32
coredns/deployment.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user