X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=ansible%2Froles%2Fflannel%2Ftemplates%2Fflannel-ds.yaml;h=e50f855cb5089b0bacd6fe42ea5250cbf5b67c97;hb=d93171dfb987e103f84149d6b54d9350a078bf9e;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..e50f855 100644 --- a/ansible/roles/flannel/templates/flannel-ds.yaml +++ b/ansible/roles/flannel/templates/flannel-ds.yaml @@ -32,14 +32,14 @@ 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 - # Some setcap calls might be missing on its binary? + # TODO: figure out why privileged mode is also not enough for flannel to modify network settings on the host (same problem as watcher) #securityContext: # runAsUser: {{ caas.uid.flannel }} tolerations: - - key: node-role.kubernetes.io/master + - key: node.kubernetes.io/master operator: Exists effect: NoSchedule containers: @@ -62,12 +62,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