Skip to content

Instantly share code, notes, and snippets.

@RPing
Forked from pjh/linux-ubuntu-deployment.yaml
Created September 12, 2021 10:21
Show Gist options
  • Save RPing/b72efa78688a3e7d23b6ad818c6c9417 to your computer and use it in GitHub Desktop.
Save RPing/b72efa78688a3e7d23b6ad818c6c9417 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: ubuntu-deployment
labels:
app: ubuntu
spec:
replicas: 1
selector:
matchLabels:
app: ubuntu
template:
metadata:
labels:
app: ubuntu
spec:
containers:
- name: ubuntu
image: ubuntu
command: ["sleep", "123456"]
nodeSelector:
kubernetes.io/os: linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment