Created
May 20, 2021 13:17
-
-
Save rubberduck203/004c8c8887494b985bcc5f654fbdad91 to your computer and use it in GitHub Desktop.
Revisions
-
rubberduck203 created this gist
May 20, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # Example of how to keep a container running long enough to `exec` into it # https://stackoverflow.com/a/40605238/3198973 apiVersion: apps/v1 kind: Deployment metadata: name: some-deployment spec: replicas: 1 selector: matchLabels: app: some-service template: metadata: labels: app: some-service spec: containers: - name: some-service image: some-image - name: bastion image: ubuntu command: ["tail", "-f", "/dev/null"]