Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
cat <<EOF | kubectl apply -f -
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: nginx
name: nginx
spec:
replicas: 10
selector:
matchLabels:
app: nginx
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: nginx
spec:
containers:
- image: bharamicrosystems/nginx:v1
name: nginx
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment