mirror of
https://github.com/notherealmarco/coredns-deployment.git
synced 2025-05-05 12:32:34 +02:00
Update k8s manifests (#15)
* remove ref to deleted file, match proposed manifest in kubeadm pr * classless cidrs not in 0.9.9
This commit is contained in:
parent
f78ade71d7
commit
b997ad78fe
2 changed files with 7 additions and 12 deletions
|
@ -28,12 +28,5 @@ $ ./deploy.sh 10.3.0.0/24 | kubectl apply -f -
|
||||||
$ kubectl delete --namespace=kube-system deployment kube-dns
|
$ kubectl delete --namespace=kube-system deployment kube-dns
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Kubernetes 1.6 uses Role Based Access Control (RBAC). The following example uses the 1.6 yaml
|
-Note that the CIDR's netmask needs to be a multiple of 8.
|
||||||
tamplate to replace Kube-DNS and add the RBAC needed for CoreDNS to access the API.
|
|
||||||
|
|
||||||
~~~
|
|
||||||
$ ./deploy.sh 10.3.0.0/24 cluster.local coredns-1.6.yaml.sed | kubectl apply -f -
|
|
||||||
$ kubectl delete --namespace=kube-system deployment kube-dns
|
|
||||||
~~~
|
|
||||||
|
|
||||||
Note that the CIDR's netmask needs to be a multiple of 8.
|
|
||||||
|
|
|
@ -73,14 +73,16 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
k8s-app: coredns
|
k8s-app: coredns
|
||||||
annotations:
|
|
||||||
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
||||||
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"CriticalAddonsOnly", "operator":"Exists"}]'
|
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: coredns
|
serviceAccountName: coredns
|
||||||
|
tolerations:
|
||||||
|
- key: node-role.kubernetes.io/master
|
||||||
|
effect: NoSchedule
|
||||||
|
- key: "CriticalAddonsOnly"
|
||||||
|
operator: "Exists"
|
||||||
containers:
|
containers:
|
||||||
- name: coredns
|
- name: coredns
|
||||||
image: coredns/coredns:latest
|
image: coredns/coredns:0.9.9
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
args: [ "-conf", "/etc/coredns/Corefile" ]
|
args: [ "-conf", "/etc/coredns/Corefile" ]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue