There was an error while loading. Please reload this page.
1 parent b416b04 commit 72bb00bCopy full SHA for 72bb00b
2 files changed
.github/workflows/deploy-api-server.yml
@@ -50,3 +50,16 @@ jobs:
50
push: true
51
tags: ${{ steps.meta.outputs.tags }}
52
labels: ${{ steps.meta.outputs.labels }}
53
+
54
+ deploy-api-server:
55
+ runs-on: ubuntu-latest
56
+ needs: publish-image
57
+ steps:
58
+ - name: Setup Kubeconfig
59
+ run: |
60
+ echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > kubeconfig.yaml
61
+ export KUBECONFIG=$PWD/kubeconfig.yaml
62
+ kubectl get nodes
63
+ - name: Deploy to Kubernetes
64
65
+ kubectl apply -f k8s/
api-server/app/main.py
@@ -58,7 +58,6 @@ async def lifespan(app: FastAPI):
app.add_middleware(UnhandledExceptionsMiddleware)
-
@app.get("/health")
def health() -> dict:
return {"message": "OK"}
0 commit comments