Manifest update
[ta/caas-danm.git] / ansible / roles / flannel / templates / flannel-ds.yaml
index 90e7386..117f9cf 100644 (file)
@@ -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