summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJeff Cantrill <jcantril@redhat.com>2017-02-09 14:18:32 -0500
committerJeff Cantrill <jcantril@redhat.com>2017-02-09 14:18:32 -0500
commitd226d9b51e6eb1fe897d08e221dd28a34b35339c (patch)
treed24091a80f2737a9607aff5acca00eeeb2c70a24 /roles
parent8b6f88ea657662fb6724c2d4863b6c954f9580d8 (diff)
downloadopenshift-d226d9b51e6eb1fe897d08e221dd28a34b35339c.tar.gz
openshift-d226d9b51e6eb1fe897d08e221dd28a34b35339c.tar.bz2
openshift-d226d9b51e6eb1fe897d08e221dd28a34b35339c.tar.xz
openshift-d226d9b51e6eb1fe897d08e221dd28a34b35339c.zip
bug 1420538. Allow users to set supplementalGroup for Cassandra
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_metrics/defaults/main.yaml1
-rw-r--r--roles/openshift_metrics/templates/hawkular_cassandra_rc.j23
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() %}