Skip to content

Commit 2b497d2

Browse files
committed
k8s: Update deployment to uvicorn, as we use fastapi now
Signed-off-by: Denys Fedoryshchenko <[email protected]>
1 parent 6c5174c commit 2b497d2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

kube/aks/lava-callback.yaml

+7-9
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,16 @@ spec:
2121
spec:
2222
containers:
2323
- name: lava-callback
24-
image: kernelci/kernelci:lava-callback@sha256:f5bcc965ae5ca891839f390e5ff7ef5f6bd2f99457e95c8fe8d25f096c22cadd
24+
image: kernelci/kernelci:lava-callback@sha256:0037ee6df605a49938f61e11e071a9d730d1702a042dec4c3baa36beaa9b3262
2525
imagePullPolicy: Always
2626
command:
27-
- '/usr/local/bin/uwsgi'
27+
- 'uvicorn'
2828
args:
29-
- '--master'
30-
- '--http=:8000'
31-
- '-p4'
32-
- '--buffer-size=32768'
33-
- '--enable-threads'
34-
- '--wsgi-file=src/lava_callback.py'
35-
- '--callable=app'
29+
- 'src.lava_callback:app'
30+
- '--host=0.0.0.0'
31+
- '--port=8000'
32+
- '--proxy-headers'
33+
- '--forwarded-allow-ips=*'
3634
env:
3735
- name: KCI_API_TOKEN
3836
valueFrom:

0 commit comments

Comments
 (0)