mirror of
https://github.com/ansible/awx.git
synced 2026-02-16 10:40:01 -03:30
update documentation to include kuberentes initContainers
Update documentation to include Kubernetes initContainers in custom virtualenvs
This commit is contained in:
@@ -90,8 +90,8 @@ Now create an initContainer stanza. You can subsititute your own custom images
|
|||||||
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- image: 'centos:7'
|
- image: 'centos:7'
|
||||||
- name: init-my-custom-venv
|
name: init-my-custom-venv
|
||||||
- command:
|
command:
|
||||||
- sh
|
- sh
|
||||||
- '-c'
|
- '-c'
|
||||||
- >-
|
- >-
|
||||||
@@ -103,11 +103,11 @@ Now create an initContainer stanza. You can subsititute your own custom images
|
|||||||
/var/lib/awx/venv/my-custom-venv/bin/pip install python-memcached psutil &&
|
/var/lib/awx/venv/my-custom-venv/bin/pip install python-memcached psutil &&
|
||||||
/var/lib/awx/venv/my-custom-venv/bin/pip install -U "ansible == X.Y.Z" &&
|
/var/lib/awx/venv/my-custom-venv/bin/pip install -U "ansible == X.Y.Z" &&
|
||||||
/var/lib/awx/venv/my-custom-venv/bin/pip install -U custom-python-module
|
/var/lib/awx/venv/my-custom-venv/bin/pip install -U custom-python-module
|
||||||
- volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/awx/venv/my-custom-venv
|
- mountPath: /var/lib/awx/venv/my-custom-venv
|
||||||
name: custom-venv
|
name: custom-venv
|
||||||
|
|
||||||
Fiinally in the awx-celery container stanza add the shared volume as a mount.
|
Fiinally in the awx-celery and awx-web containers stanza add the shared volume as a mount.
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/awx/venv/my-custom-venv
|
- mountPath: /var/lib/awx/venv/my-custom-venv
|
||||||
|
|||||||
Reference in New Issue
Block a user