Last active
March 27, 2019 20:42
-
-
Save evanlouie/834f74ed50e28679d1b8eac1597a2fca to your computer and use it in GitHub Desktop.
Single pod ubuntu deployment
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 characters
# Single pod Ubuntu deployment that will not terminate | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ubuntu-deployment | |
labels: | |
app: ubuntu | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: ubuntu | |
template: | |
metadata: | |
annotations: | |
traffic.sidecar.istio.io/excludeOutboundIPRanges: 0.0.0.0/0 # Allow all Egress traffic https://github.com/istio/istio/issues/9304 | |
labels: | |
app: ubuntu | |
spec: | |
containers: | |
- name: ubuntu | |
image: ubuntu:latest | |
imagePullPolicy: Always | |
command: ["/bin/bash", "-c", "--"] | |
args: ["while true; do sleep 30; done;"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment