Skip to content

Commit 72bb00b

Browse files
committed
testing kubernetes deployment
1 parent b416b04 commit 72bb00b

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/deploy-api-server.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,16 @@ jobs:
5050
push: true
5151
tags: ${{ steps.meta.outputs.tags }}
5252
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+
run: |
65+
kubectl apply -f k8s/

api-server/app/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ async def lifespan(app: FastAPI):
5858

5959
app.add_middleware(UnhandledExceptionsMiddleware)
6060

61-
6261
@app.get("/health")
6362
def health() -> dict:
6463
return {"message": "OK"}

0 commit comments

Comments
 (0)