Skip to content

Instantly share code, notes, and snippets.

@makeapp007
Created June 9, 2019 19:28
Show Gist options
  • Select an option

  • Save makeapp007/1d79a1a92691f4486b18a7a910d06ff4 to your computer and use it in GitHub Desktop.

Select an option

Save makeapp007/1d79a1a92691f4486b18a7a910d06ff4 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: flaskapp
labels:
deployment: flaskapp
spec:
replicas: 1
selector:
matchLabels:
pod: flaskapp
template:
metadata:
labels:
pod: flaskapp
spec:
containers:
- name: flaskapp
image: makeapp007/cloud-ml-final-project_flaskapp:2054
imagePullPolicy: Always
command: ["gunicorn", "--workers=4", "--bind=0.0.0.0:8000", "app:app" ,"--timeout=30", "--log-level", "debug"]
ports:
- containerPort: 8000
env:
- name: REDIS_HOST
value: redis-service
volumeMounts:
- name: mypvc
mountPath: /cloudfinal/.vector_cache
volumes:
- name: mypvc
persistentVolumeClaim:
claimName: mypvc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment