forked from 2i2c-org/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split kubectl run command into a create and exec couplet
- Ensures the pod spec has the right metadata to be placed in the correct namespace - Dumps the pod spec to a temp json file - Runs kubectl create then kubectl exec to access the pod - This ensures that our bash process is NOT PID 1, which will mean the container will NOT restart if we exit that process for any reason - Cleans up the temp json file
- Loading branch information
Showing
1 changed file
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters