X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=ansible%2Froles%2Fflannel%2Ftemplates%2Fflannel-ds.yaml;h=117f9cfdf7fa9b326180d7f140e2e85274779f86;hb=refs%2Fchanges%2F68%2F1068%2F1;hp=90e73868ee0c6de3aad575a10ecca132abefdca5;hpb=8e53059aed6a7fdde34149893f05552aca3ed89a;p=ta%2Fcaas-danm.git diff --git a/ansible/roles/flannel/templates/flannel-ds.yaml b/ansible/roles/flannel/templates/flannel-ds.yaml index 90e7386..117f9cf 100644 --- a/ansible/roles/flannel/templates/flannel-ds.yaml +++ b/ansible/roles/flannel/templates/flannel-ds.yaml @@ -32,6 +32,7 @@ spec: tier: node {{ caas.kubernetes_component_label }}: flannel spec: + priorityClassName: "system-node-critical" hostNetwork: true dnsPolicy: ClusterFirstWithHostNet # TODO: figure out why flannel needs to run with root to modify network settings on the host @@ -62,12 +63,21 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + resources: + requests: + cpu: "10m" volumeMounts: + - name: time-mount + mountPath: /etc/localtime + readOnly: true - name: run mountPath: /run - name: flannel-cfg mountPath: /etc/kube-flannel/ volumes: + - name: time-mount + hostPath: + path: /etc/localtime - name: run hostPath: path: /run