Просмотр исходного кода

Support setting local storage perFSGroup quota in node config.

Adds a new inventory var "openshift_node_local_quota_per_fsgroup", which will
set the perFSGroup quota node-config.yaml.
Devan Goodwin 9 лет назад
Родитель
Сommit
135f37c771

+ 1 - 0
roles/openshift_facts/library/openshift_facts.py

@@ -1407,6 +1407,7 @@ class OpenShiftFacts(object):
         if 'node' in roles:
             defaults['node'] = dict(labels={}, annotations={},
                                     iptables_sync_period='5s',
+                                    local_quota_per_fsgroup="",
                                     set_node_ip=False)
 
         if 'docker' in roles:

+ 1 - 0
roles/openshift_node/tasks/main.yml

@@ -31,6 +31,7 @@
       node_image: "{{ osn_image | default(None) }}"
       ovs_image: "{{ osn_ovs_image | default(None) }}"
       proxy_mode: "{{ openshift_node_proxy_mode | default('iptables') }}"
+      local_quota_per_fsgroup: "{{ openshift_node_local_quota_per_fsgroup | default(None) }}"
 
 # We have to add tuned-profiles in the same transaction otherwise we run into depsolving
 # problems because the rpms don't pin the version properly. This was fixed in 3.1 packaging.

+ 3 - 0
roles/openshift_node/templates/node.yaml.v1.j2

@@ -38,3 +38,6 @@ volumeDirectory: {{ openshift.common.data_dir }}/openshift.local.volumes
 proxyArguments:
   proxy-mode:
      - {{ openshift.node.proxy_mode }}
+volumeConfig:
+  localQuota:
+    perFSGroup: {{ openshift.node.local_quota_per_fsgroup }}