Skip to content

Commit

Permalink
TIL: run interactive container in k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
pew committed Mar 10, 2024
1 parent 32baf8d commit 4003b9c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion man/kubernetes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
date created: Wednesday, January 23rd 2019, 7:59:04 pm
date modified: Tuesday, January 2nd 2024, 9:53:05 am
date modified: Sunday, March 10th 2024, 9:55:14 am
tags:
- k8s
- kubernetes
Expand Down Expand Up @@ -165,3 +165,11 @@ spec:
- image: example:latest
imagePullPolicy: Always
```

## run interactive container

useful for stupid annoying things when you just want a shell:

```shell
kubectl run alpine --image=alpine --rm -i --tty -- sh
```

0 comments on commit 4003b9c

Please sign in to comment.