Skip to content

Instantly share code, notes, and snippets.

@stevenfeltner
Created November 18, 2020 19:19
Show Gist options
  • Save stevenfeltner/91473d98413257383ee8842c24fd1e36 to your computer and use it in GitHub Desktop.
Save stevenfeltner/91473d98413257383ee8842c24fd1e36 to your computer and use it in GitHub Desktop.
eks-workshop-medium-deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: eks-workshop-medium
labels:
app: nginx
namespace: default
spec:
replicas: 3
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
lifecycle:
preStop:
exec:
# SIGTERM triggers a quick exit; gracefully terminate instead
command: ["/usr/sbin/nginx","-s","quit"]
resources:
requests:
memory: "2000Mi"
cpu: "800m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment