mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Enable configuration of rsyslog environmental variables, volume mounts, and entrypoints (#1467)
This commit is contained in:
15
README.md
15
README.md
@@ -998,6 +998,7 @@ In a scenario where custom volumes and volume mounts are required to either over
|
|||||||
| extra_volumes | Specify extra volumes to add to the application pod | '' |
|
| extra_volumes | Specify extra volumes to add to the application pod | '' |
|
||||||
| web_extra_volume_mounts | Specify volume mounts to be added to Web container | '' |
|
| web_extra_volume_mounts | Specify volume mounts to be added to Web container | '' |
|
||||||
| task_extra_volume_mounts | Specify volume mounts to be added to Task container | '' |
|
| task_extra_volume_mounts | Specify volume mounts to be added to Task container | '' |
|
||||||
|
| rsyslog_extra_volume_mounts | Specify volume mounts to be added to Rsyslog container | '' |
|
||||||
| ee_extra_volume_mounts | Specify volume mounts to be added to Execution container | '' |
|
| ee_extra_volume_mounts | Specify volume mounts to be added to Execution container | '' |
|
||||||
| init_container_extra_volume_mounts | Specify volume mounts to be added to Init container | '' |
|
| init_container_extra_volume_mounts | Specify volume mounts to be added to Init container | '' |
|
||||||
| init_container_extra_commands | Specify additional commands for Init container | '' |
|
| init_container_extra_commands | Specify additional commands for Init container | '' |
|
||||||
@@ -1159,11 +1160,12 @@ type: kubernetes.io/dockerconfigjson
|
|||||||
|
|
||||||
If you need to export custom environment variables to your containers.
|
If you need to export custom environment variables to your containers.
|
||||||
|
|
||||||
| Name | Description | Default |
|
| Name | Description | Default |
|
||||||
| -------------- | --------------------------------------------------- | ------- |
|
| ----------------- | ------------------------------------------------------ | ------- |
|
||||||
| task_extra_env | Environment variables to be added to Task container | '' |
|
| task_extra_env | Environment variables to be added to Task container | '' |
|
||||||
| web_extra_env | Environment variables to be added to Web container | '' |
|
| web_extra_env | Environment variables to be added to Web container | '' |
|
||||||
| ee_extra_env | Environment variables to be added to EE container | '' |
|
| rsyslog_extra_env | Environment variables to be added to Rsyslog container | '' |
|
||||||
|
| ee_extra_env | Environment variables to be added to EE container | '' |
|
||||||
|
|
||||||
> :warning: The `ee_extra_env` will only take effect to the globally available Execution Environments. For custom `ee`, please [customize the Pod spec](https://docs.ansible.com/ansible-tower/latest/html/administration/external_execution_envs.html#customize-the-pod-spec).
|
> :warning: The `ee_extra_env` will only take effect to the globally available Execution Environments. For custom `ee`, please [customize the Pod spec](https://docs.ansible.com/ansible-tower/latest/html/administration/external_execution_envs.html#customize-the-pod-spec).
|
||||||
|
|
||||||
@@ -1177,6 +1179,9 @@ Example configuration of environment variables
|
|||||||
web_extra_env: |
|
web_extra_env: |
|
||||||
- name: MYCUSTOMVAR
|
- name: MYCUSTOMVAR
|
||||||
value: foo
|
value: foo
|
||||||
|
rsyslog_extra_env: |
|
||||||
|
- name: MYCUSTOMVAR
|
||||||
|
value: foo
|
||||||
ee_extra_env: |
|
ee_extra_env: |
|
||||||
- name: MYCUSTOMVAR
|
- name: MYCUSTOMVAR
|
||||||
value: foo
|
value: foo
|
||||||
|
|||||||
@@ -1551,10 +1551,20 @@ spec:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
rsyslog_args:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
|
rsyslog_command:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: string
|
||||||
task_extra_env:
|
task_extra_env:
|
||||||
type: string
|
type: string
|
||||||
web_extra_env:
|
web_extra_env:
|
||||||
type: string
|
type: string
|
||||||
|
rsyslog_extra_env:
|
||||||
|
type: string
|
||||||
ee_extra_env:
|
ee_extra_env:
|
||||||
type: string
|
type: string
|
||||||
ee_extra_volume_mounts:
|
ee_extra_volume_mounts:
|
||||||
@@ -1566,6 +1576,9 @@ spec:
|
|||||||
web_extra_volume_mounts:
|
web_extra_volume_mounts:
|
||||||
description: Specify volume mounts to be added to the Web container
|
description: Specify volume mounts to be added to the Web container
|
||||||
type: string
|
type: string
|
||||||
|
rsyslog_extra_volume_mounts:
|
||||||
|
description: Specify volume mounts to be added to the Rsyslog container
|
||||||
|
type: string
|
||||||
redis_image:
|
redis_image:
|
||||||
description: Registry path to the redis container to use
|
description: Registry path to the redis container to use
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -648,6 +648,28 @@ spec:
|
|||||||
x-descriptors:
|
x-descriptors:
|
||||||
- urn:alm:descriptor:com.tectonic.ui:advanced
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
- urn:alm:descriptor:com.tectonic.ui:hidden
|
- urn:alm:descriptor:com.tectonic.ui:hidden
|
||||||
|
- displayName: Rsyslog Args
|
||||||
|
path: rsyslog_args
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:hidden
|
||||||
|
- displayName: Rsyslog Command
|
||||||
|
path: rsyslog_command
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:hidden
|
||||||
|
- description: Environment variables to be added to Rsyslog container
|
||||||
|
displayName: Rsyslog Extra Env
|
||||||
|
path: rsyslog_extra_env
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:hidden
|
||||||
|
- description: Specify volume mounts to be added to Rsyslog container
|
||||||
|
displayName: Rsyslog Extra Volume Mounts
|
||||||
|
path: rsyslog_extra_volume_mounts
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:hidden
|
||||||
- description: Specify extra volumes to add to the application pod
|
- description: Specify extra volumes to add to the application pod
|
||||||
displayName: Extra Volumes
|
displayName: Extra Volumes
|
||||||
path: extra_volumes
|
path: extra_volumes
|
||||||
|
|||||||
@@ -335,6 +335,7 @@ init_container_resource_requirements:
|
|||||||
# value: bing
|
# value: bing
|
||||||
task_extra_env: ''
|
task_extra_env: ''
|
||||||
web_extra_env: ''
|
web_extra_env: ''
|
||||||
|
rsyslog_extra_env: ''
|
||||||
ee_extra_env: ''
|
ee_extra_env: ''
|
||||||
|
|
||||||
# Mount extra volumes on the AWX task/web containers. Specify as literal block.
|
# Mount extra volumes on the AWX task/web containers. Specify as literal block.
|
||||||
@@ -344,6 +345,7 @@ ee_extra_env: ''
|
|||||||
# mountPath: /some/path
|
# mountPath: /some/path
|
||||||
task_extra_volume_mounts: ''
|
task_extra_volume_mounts: ''
|
||||||
web_extra_volume_mounts: ''
|
web_extra_volume_mounts: ''
|
||||||
|
rsyslog_extra_volume_mounts: ''
|
||||||
ee_extra_volume_mounts: ''
|
ee_extra_volume_mounts: ''
|
||||||
|
|
||||||
# Add a nodeSelector for the Postgres pods.
|
# Add a nodeSelector for the Postgres pods.
|
||||||
|
|||||||
@@ -382,6 +382,9 @@ spec:
|
|||||||
- name: awx-devel
|
- name: awx-devel
|
||||||
mountPath: "/awx_devel"
|
mountPath: "/awx_devel"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if rsyslog_extra_volume_mounts -%}
|
||||||
|
{{ rsyslog_extra_volume_mounts | indent(width=12, first=True) }}
|
||||||
|
{% endif %}
|
||||||
{% if termination_grace_period_seconds is defined %}
|
{% if termination_grace_period_seconds is defined %}
|
||||||
- name: pre-stop-data
|
- name: pre-stop-data
|
||||||
mountPath: /var/lib/pre-stop
|
mountPath: /var/lib/pre-stop
|
||||||
@@ -401,6 +404,9 @@ spec:
|
|||||||
- name: AWX_KUBE_DEVEL
|
- name: AWX_KUBE_DEVEL
|
||||||
value: "1"
|
value: "1"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if rsyslog_extra_env -%}
|
||||||
|
{{ rsyslog_extra_env | indent(width=12, first=True) }}
|
||||||
|
{% endif %}
|
||||||
{% if task_node_selector %}
|
{% if task_node_selector %}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ task_node_selector | indent(width=8) }}
|
{{ task_node_selector | indent(width=8) }}
|
||||||
|
|||||||
@@ -287,6 +287,9 @@ spec:
|
|||||||
{% if development_mode | bool %}
|
{% if development_mode | bool %}
|
||||||
- name: awx-devel
|
- name: awx-devel
|
||||||
mountPath: "/awx_devel"
|
mountPath: "/awx_devel"
|
||||||
|
{% endif %}
|
||||||
|
{% if rsyslog_extra_volume_mounts -%}
|
||||||
|
{{ rsyslog_extra_volume_mounts | indent(width=12, first=True) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
env:
|
env:
|
||||||
- name: SUPERVISOR_CONFIG_PATH
|
- name: SUPERVISOR_CONFIG_PATH
|
||||||
@@ -294,6 +297,9 @@ spec:
|
|||||||
{% if development_mode | bool %}
|
{% if development_mode | bool %}
|
||||||
- name: AWX_KUBE_DEVEL
|
- name: AWX_KUBE_DEVEL
|
||||||
value: "1"
|
value: "1"
|
||||||
|
{% endif %}
|
||||||
|
{% if rsyslog_extra_env -%}
|
||||||
|
{{ rsyslog_extra_env | indent(width=12, first=True) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
resources: {{ rsyslog_resource_requirements }}
|
resources: {{ rsyslog_resource_requirements }}
|
||||||
{% if web_node_selector %}
|
{% if web_node_selector %}
|
||||||
|
|||||||
Reference in New Issue
Block a user