-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-python-kubernetes.yaml
74 lines (74 loc) · 2.07 KB
/
docker-python-kubernetes.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
apiVersion: apps/v1
kind: Deployment
metadata:
name: fastapi-demoapp
namespace: default
spec:
replicas: 1
selector:
matchLabels:
service: fastapi
template:
metadata:
labels:
service: fastapi
spec:
containers:
- name: fastapi-service
image: amirulislamwelldev/fastapi-demoapp
imagePullPolicy: Always
env:
- name: POSTGRES_PASSWORD
value: postgres
- name: DATABASE_URL
value: postgresql://postgres:postgres@db/db
- name: TEST_DATABASE_URL
value: postgresql://postgres:postgres@test-db/test-db
- name: BASE_URL
value: http://service-entrypoint:5000
- name: APP_ENV
value: development
- name: JWT_REFRESH_SECRET_KEY
value: JWT_REFRESH_SECRET_KEY_HERE
- name: JWT_SECRET_KEY
value: JWT_SECRET_KEY_HERE
- name: ROLLBAR_ACCESS_TOKEN
value: ROLLBAR_ACCESS_TOKEN_HERE
- name: BUCKET_NAME
value: BUCKET_NAME
- name: OAUTH_CLIENT_ID
value: CLIENT_ID
- name: OAUTH_CLIENT_SECRET
value: OAUTH_CLIENT_SECRET
- name: MAIL_USERNAME
value: [email protected]
- name: MAIL_PASSWORD
value: NupfGHXtsUdgx36VuK
- name: MAIL_FROM
value: [email protected]
- name: MAIL_PORT
value: "587"
- name: MAIL_SERVER
value: smtp.ethereal.email
- name: MAIL_FROM_NAME
value: Norval Hahn
- name: INVITATION_URL_SECRET_KEY
value: INVITATION_URL_SECRET_KEY_HERE
- name: INVITATION_URL_SECURITY_PASSWORD_SALT
value: INVITATION_URL_SECURITY_PASSWORD_SALT_HERE
- name: INVITATION_URL_MAX_AGE
value: "172800"
---
apiVersion: v1
kind: Service
metadata:
name: service-entrypoint
namespace: default
spec:
type: NodePort
selector:
service: fastapi
ports:
- port: 5000
targetPort: 5000
nodePort: 30001