Created
April 10, 2024 21:08
-
-
Save jainal09/0d9e1b890a0c306413687b9ab1575626 to your computer and use it in GitHub Desktop.
This file contains hidden or 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: graceful-shutdown-fast-api | |
labels: | |
app: graceful-shutdown-fast-api | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: graceful-shutdown-fast-api | |
template: | |
metadata: | |
labels: | |
app: graceful-shutdown-fast-api | |
spec: | |
containers: | |
- name: graceful-shutdown-fast-api | |
ports: | |
- containerPort: 8000 | |
readinessProbe: | |
httpGet: | |
path: /v1/health | |
port: 8000 | |
initialDelaySeconds: 5 | |
periodSeconds: 5 | |
image: jainal09/grs-fast-api:v9 | |
imagePullPolicy: Always | |
env: | |
- name: PYTHONUNBUFFERED | |
value: "1" | |
- name: KUBE_POD_NAME | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.name | |
- name: KUBE_POD_NAMESPACE | |
valueFrom: | |
fieldRef: | |
fieldPath: metadata.namespace | |
terminationGracePeriodSeconds: 300 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment