Skip to content

Instantly share code, notes, and snippets.

@fpaganetto
Created May 16, 2021 21:59
Show Gist options
  • Save fpaganetto/778b8cfb716dd752fc155e1987ce54d3 to your computer and use it in GitHub Desktop.
Save fpaganetto/778b8cfb716dd752fc155e1987ce54d3 to your computer and use it in GitHub Desktop.
Ubuntu PetSet
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: ubuntu
spec:
serviceName: "ubuntu"
replicas: 1
selector:
matchLabels:
app: ubuntu
template:
metadata:
labels:
app: ubuntu
spec:
containers:
- name: ubuntu
image: ubuntu
command: [ "/bin/bash", "-ce", "tail -f /dev/null" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment