-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (58 loc) · 1.73 KB
/
monitor.yaml
File metadata and controls
78 lines (58 loc) · 1.73 KB
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
75
76
77
name: Run every minute
on:
push:
branches:
- main
# Uncomment the following line to run the workflow every 5 minutes
# schedule:
# - cron: '5 * * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
KOSLI_API_TOKEN: ${{ secrets.KOSLI_API_TOKEN_MEEKROSOFT }}
KOSLI_ORG: meekrosoft-demo
defaults:
run:
working-directory: ./kosli-config-monitoring
steps:
- uses: actions/checkout@v4
- id: 'auth'
uses: 'google-github-actions/auth@v2'
with:
credentials_json: '${{ secrets.gcp_credentials }}'
- id: 'get-credentials'
uses: 'google-github-actions/get-gke-credentials@v2'
with:
cluster_name: 'autopilot-cluster-1'
location: 'us-central1'
- id: 'install-kubectl'
uses: azure/setup-kubectl@v3
# The KUBECONFIG env var is automatically exported and picked up by kubectl.
- id: 'get-pods'
run: 'kubectl get nodes'
- name: Set up Python
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.x'
# You can test your matrix by printing the current Python version
- name: Display Python version
run: |
python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: setup kosli
uses: kosli-dev/setup-cli-action@v2
with:
version:
2.8.8
- name: Run a one-line script
run: |
echo "Hello, world!"
kosli version
echo "Kosli is installed"
./all.sh