Skip to content

Instantly share code, notes, and snippets.

@evanlouie
Last active March 27, 2019 20:42
Show Gist options
  • Save evanlouie/834f74ed50e28679d1b8eac1597a2fca to your computer and use it in GitHub Desktop.
Save evanlouie/834f74ed50e28679d1b8eac1597a2fca to your computer and use it in GitHub Desktop.
Single pod ubuntu deployment
# 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