Skip to content

Instantly share code, notes, and snippets.

@hunter32292
Last active September 16, 2020 21:07
Show Gist options
  • Save hunter32292/3c44a83491d49903c45d1975ae8b28c2 to your computer and use it in GitHub Desktop.
Save hunter32292/3c44a83491d49903c45d1975ae8b28c2 to your computer and use it in GitHub Desktop.
Sample Ubuntu Deploy for checking on things internally in cluster
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: ubuntu-deployment
spec:
selector:
matchLabels:
app: ubuntu
replicas: 1
template:
metadata:
labels:
app: ubuntu
spec:
containers:
- name: ubuntu
image: ubuntu:latest
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
hostNetwork: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment