-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (39 loc) · 1.37 KB
/
k8s_chart.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
name: k8s-example-chart-deploy
on:
push:
branches:
- main
- docs-branch # testing TODO: remove
- release-*
pull_request:
branches: '*'
jobs:
chart-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Setup k3s test cluster
uses: nolar/setup-k3d-k3s@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install chart
run: |
cd examples/k8s
kubectl apply -f "https://github.com/rabbitmq/cluster-operator/releases/latest/download/cluster-operator.yml"
bash install_postgresql.sh
bash install_grader.sh
bash install_hub.sh
- name: Check deployments
run: |
kubectl get deployments.apps -n jupyter
kubectl get svc -n jupyter
kubectl get pods -n jupyter
kubectl rollout status deployment/grader-service -n jupyter --timeout=300s
kubectl rollout status deployment/grader-service-worker -n jupyter --timeout=300s
kubectl rollout status deployment/hub -n jupyter --timeout=300s
kubectl wait --for=condition=Ready pod/rabbitmq-grader-service-server-0 -n jupyter --timeout=300s