Created
November 18, 2020 19:19
-
-
Save stevenfeltner/91473d98413257383ee8842c24fd1e36 to your computer and use it in GitHub Desktop.
eks-workshop-medium-deployment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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