Last active
June 7, 2019 10:03
-
-
Save serainville/9586755e50f1a5fe97ce67bb4693b600 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: flaskapi-deployment | |
labels: | |
app: flaskapi | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: | |
app: flaskapi | |
template: | |
metadata: | |
labels: | |
app: flaskapi | |
spec: | |
containers: | |
- name: flaskapi | |
image: serverlab/flask-api:1.0.4 | |
ports: | |
- containerPort: 80 | |
env: | |
- name: db_username | |
valueFrom: | |
secretKeyRef: | |
name: flaskapi-secrets | |
key: db_username | |
- name: db_password | |
valueFrom: | |
secretKeyRef: | |
name: flaskapi-secrets | |
key: db_password | |
- name: db_name | |
value: flaskapi_demo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment