diff options
author | Jeff Cantrill <jcantril@redhat.com> | 2017-02-09 14:18:32 -0500 |
---|---|---|
committer | Jeff Cantrill <jcantril@redhat.com> | 2017-02-09 14:18:32 -0500 |
commit | d226d9b51e6eb1fe897d08e221dd28a34b35339c (patch) | |
tree | d24091a80f2737a9607aff5acca00eeeb2c70a24 | |
parent | 8b6f88ea657662fb6724c2d4863b6c954f9580d8 (diff) | |
download | openshift-d226d9b51e6eb1fe897d08e221dd28a34b35339c.tar.gz openshift-d226d9b51e6eb1fe897d08e221dd28a34b35339c.tar.bz2 openshift-d226d9b51e6eb1fe897d08e221dd28a34b35339c.tar.xz openshift-d226d9b51e6eb1fe897d08e221dd28a34b35339c.zip |
bug 1420538. Allow users to set supplementalGroup for Cassandra
-rw-r--r-- | roles/openshift_metrics/defaults/main.yaml | 1 | ||||
-rw-r--r-- | roles/openshift_metrics/templates/hawkular_cassandra_rc.j2 | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/roles/openshift_metrics/defaults/main.yaml b/roles/openshift_metrics/defaults/main.yaml index 17614f716..fdc9c2437 100644 --- a/roles/openshift_metrics/defaults/main.yaml +++ b/roles/openshift_metrics/defaults/main.yaml @@ -23,6 +23,7 @@ openshift_metrics_cassandra_limits_cpu: null openshift_metrics_cassandra_requests_memory: 1G openshift_metrics_cassandra_requests_cpu: null openshift_metrics_cassandra_nodeselector: "" +openshift_metrics_cassandra_storage_group: 65534 openshift_metrics_heapster_standalone: False openshift_metrics_heapster_limits_memory: 3.75G diff --git a/roles/openshift_metrics/templates/hawkular_cassandra_rc.j2 b/roles/openshift_metrics/templates/hawkular_cassandra_rc.j2 index 6f6efc469..504476dc4 100644 --- a/roles/openshift_metrics/templates/hawkular_cassandra_rc.j2 +++ b/roles/openshift_metrics/templates/hawkular_cassandra_rc.j2 @@ -19,6 +19,9 @@ spec: type: hawkular-cassandra spec: serviceAccount: cassandra + securityContext: + supplementalGroups: + - {{openshift_metrics_cassandra_storage_group}} {% if node_selector is iterable and node_selector | length > 0 %} nodeSelector: {% for key, value in node_selector.iteritems() %} |