Skip to content

Instantly share code, notes, and snippets.

@esys
Last active September 4, 2020 13:23
Show Gist options
  • Save esys/8ec9aae7f6d6417fadf73f7fdf7fd43f to your computer and use it in GitHub Desktop.
Save esys/8ec9aae7f6d6417fadf73f7fdf7fd43f to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-scale
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
service: nginx
app: nginx
spec:
containers:
- image: nginx
name: nginx-scale
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 500m
memory: 512Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment