Created
June 9, 2019 19:28
-
-
Save makeapp007/1d79a1a92691f4486b18a7a910d06ff4 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/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