This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 105
Add k8s_exec module to collection #7
Labels
type/enhancement
New feature or request
Comments
TristanCacqueray
added a commit
to TristanCacqueray/kubernetes
that referenced
this issue
Feb 6, 2020
This change adds a new module to execute command in a container through the API: https://docs.okd.io/latest/dev_guide/executing_remote_commands.html#protocol Related: ansible/ansible#55029 Closes: ansible-collections#7
TristanCacqueray
added a commit
to TristanCacqueray/kubernetes
that referenced
this issue
Feb 6, 2020
This change adds a new module to execute command in a container through the API: https://docs.okd.io/latest/dev_guide/executing_remote_commands.html#protocol Related: ansible/ansible#55029 Closes: ansible-collections#7
TristanCacqueray
added a commit
to TristanCacqueray/kubernetes
that referenced
this issue
Feb 12, 2020
This change adds a new module to execute command in a container through the API: https://docs.okd.io/latest/dev_guide/executing_remote_commands.html#protocol Related: ansible/ansible#55029 Closes: ansible-collections#7
TristanCacqueray
added a commit
to TristanCacqueray/kubernetes
that referenced
this issue
Feb 12, 2020
This change adds a new module to execute command in a container through the API: https://docs.okd.io/latest/dev_guide/executing_remote_commands.html#protocol Related: ansible/ansible#55029 Closes: ansible-collections#7
TristanCacqueray
added a commit
to TristanCacqueray/kubernetes
that referenced
this issue
Feb 14, 2020
This change adds a new module to execute command in a container through the API: https://docs.okd.io/latest/dev_guide/executing_remote_commands.html#protocol Related: ansible/ansible#55029 Closes: ansible-collections#7
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
SUMMARY
A new
k8s_exec
module would allow execution of command in a pod container through the API:https://docs.okd.io/latest/dev_guide/executing_remote_commands.html#protocol
See: ansible/ansible#55029
Currently the only easy way to do this (without using a custom module) is via
kubectl
and thecommand
orshell
module, which requires more dependencies and setup, and is more fragile.ISSUE TYPE
COMPONENT NAME
k8s_exec
ADDITIONAL INFORMATION
Example playbook:
Results in:
The text was updated successfully, but these errors were encountered: