X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fkubedns%2Ftemplates%2Fkubedns-deployment.yml;h=bd55989d21dbf4a4b9dc7f37cd6e9709b09b0910;hb=d774a0607423f7e397f5114a7d45df30de51094b;hp=e95c78fec49da9b8796d8e2b14ecf6c0439864b9;hpb=251c73c758e867507450126a19c703e4ab9052b0;p=ta%2Fcaas-kubedns.git diff --git a/ansible/roles/kubedns/templates/kubedns-deployment.yml b/ansible/roles/kubedns/templates/kubedns-deployment.yml index e95c78f..bd55989 100644 --- 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: + - name: time-mount + hostPath: + path: /etc/localtime - name: secret hostPath: path: /etc/kubernetes/ssl @@ -91,7 +94,7 @@ spec: command: - /usr/bin/kube-dns args: - - --domain=nokia.net. + - --domain={{ caas.dns_domain }}. - --dns-port=10053 - --config-dir=/etc/dns_config - --v=2 @@ -106,6 +109,9 @@ spec: name: metrics protocol: TCP volumeMounts: + - name: time-mount + mountPath: /etc/localtime + readOnly: true - name: secret mountPath: /etc/kubernetes/ssl readOnly: true @@ -145,13 +151,16 @@ spec: - --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: + - name: time-mount + mountPath: /etc/localtime + readOnly: true - name: secret mountPath: /etc/kubernetes/ssl readOnly: true