mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-07 05:42:55 +00:00
Add an option to specify container capabilities for the redis container
With some kubernetes clusters and settings, you might need to specify some capabilities so the container can start. For example, the CHOWN, SETUID and SETGID capabilties. Setting the redis_capabilities option will add the capabilities in the deployment.
This commit is contained in:
@@ -74,6 +74,11 @@ spec:
|
||||
- image: '{{ redis_image }}:{{ redis_image_version }}'
|
||||
imagePullPolicy: '{{ image_pull_policy }}'
|
||||
name: redis
|
||||
{% if redis_capabilities is defined and redis_capabilities %}
|
||||
securityContext:
|
||||
capabilities:
|
||||
add: {{ redis_capabilities }}
|
||||
{% endif %}
|
||||
args: ["redis-server", "/etc/redis.conf"]
|
||||
volumeMounts:
|
||||
- name: {{ ansible_operator_meta.name }}-redis-config
|
||||
|
||||
Reference in New Issue
Block a user