Code Review
/
ta
/
caas-kubedns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Kubedns upadte
[ta/caas-kubedns.git]
/
ansible
/
roles
/
kubedns
/
templates
/
kubedns-deployment.yml
diff --git
a/ansible/roles/kubedns/templates/kubedns-deployment.yml
b/ansible/roles/kubedns/templates/kubedns-deployment.yml
index
e95c78f
..
bd55989
100644
(file)
--- a/
ansible/roles/kubedns/templates/kubedns-deployment.yml
+++ b/
ansible/roles/kubedns/templates/kubedns-deployment.yml
@@
-42,6
+42,9
@@
spec:
- key: "CriticalAddonsOnly"
operator: "Exists"
volumes:
- key: "CriticalAddonsOnly"
operator: "Exists"
volumes:
+ - name: time-mount
+ hostPath:
+ path: /etc/localtime
- name: secret
hostPath:
path: /etc/kubernetes/ssl
- name: secret
hostPath:
path: /etc/kubernetes/ssl
@@
-91,7
+94,7
@@
spec:
command:
- /usr/bin/kube-dns
args:
command:
- /usr/bin/kube-dns
args:
- - --domain=
nokia.net
.
+ - --domain=
{{ caas.dns_domain }}
.
- --dns-port=10053
- --config-dir=/etc/dns_config
- --v=2
- --dns-port=10053
- --config-dir=/etc/dns_config
- --v=2
@@
-106,6
+109,9
@@
spec:
name: metrics
protocol: TCP
volumeMounts:
name: metrics
protocol: TCP
volumeMounts:
+ - name: time-mount
+ mountPath: /etc/localtime
+ readOnly: true
- name: secret
mountPath: /etc/kubernetes/ssl
readOnly: true
- name: secret
mountPath: /etc/kubernetes/ssl
readOnly: true
@@
-145,13
+151,16
@@
spec:
- --bind-interfaces
- --dns-forward-max=1000
- --cache-size=10000
- --bind-interfaces
- --dns-forward-max=1000
- --cache-size=10000
- - --server=/
nokia.net
/127.0.0.1#10053
+ - --server=/
{{ caas.dns_domain }}
/127.0.0.1#10053
# see: https://github.com/kubernetes/kubernetes/issues/29055 for details
resources:
requests:
cpu: 150m
memory: 20Mi
volumeMounts:
# see: https://github.com/kubernetes/kubernetes/issues/29055 for details
resources:
requests:
cpu: 150m
memory: 20Mi
volumeMounts:
+ - name: time-mount
+ mountPath: /etc/localtime
+ readOnly: true
- name: secret
mountPath: /etc/kubernetes/ssl
readOnly: true
- name: secret
mountPath: /etc/kubernetes/ssl
readOnly: true