@@ -16,18 +16,46 @@ jobs:
16
16
- name : Run pyroscope
17
17
run : docker run -d -it -p 4040:4040 pyroscope/pyroscope:latest server
18
18
19
- - name : Install a python cli tool from test pypi and run it
20
- run : |
21
- python -m pip install --upgrade pip
22
- python -m pip install --upgrade build
23
- python -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple scsctl
24
- - uses : debianmaster/actions-k3s@master
25
- id : k3s
19
+ - name : Start a local k8s cluster
20
+ uses : jupyterhub/action-k3s-helm@v3
26
21
with :
27
- version : ' latest'
28
- - run : |
29
- kubectl get nodes
22
+ # See available:
23
+ # - k3s release channels at https://github.com/k3s-io/k3s/blob/HEAD/channel.yaml
24
+ # - k3s versions at https://github.com/k3s-io/k3s/tags
25
+ # - helm versions at https://github.com/helm/helm/tags
26
+ k3s-channel : latest
27
+ # k3s-version: v1.22.2+k3s1
28
+ # helm-version: v3.7.0
30
29
31
- - name : run scsctl --help
30
+ - name : Verify function of k8s, kubectl, and helm
32
31
run : |
33
- scsctl scan --pyroscope_app_name pyroscope.server --docker_image_name pyroscope/pyroscope:latest --pyroscope_url http://localhost:4040 --non_interactive
32
+ echo "kubeconfig: $KUBECONFIG"
33
+ kubectl version
34
+ kubectl get pods --all-namespaces
35
+
36
+ helm version
37
+ helm list
38
+
39
+
40
+ # - name: Install a python cli tool from test pypi and run it
41
+ # run: |
42
+ # python -m pip install --upgrade pip
43
+ # python -m pip install --upgrade build
44
+ # python -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple scsctl
45
+ # - uses: debianmaster/actions-k3s@master
46
+ # id: k3s
47
+ # with:
48
+ # version: 'latest'
49
+ # - run: |
50
+ # kubectl get nodes
51
+ # helm install falco -f ./custom-rules.yaml \
52
+ # --set "falco.rules_file={/etc/falco/falco_rules.local.yaml,/etc/falco/rules.d}" \
53
+ # --set falcoctl.artifact.install.enabled=false \
54
+ # --set falcoctl.artifact.follow.enabled=false \
55
+ # --set falco.json_output=true \
56
+ # --set falco.file_output.enabled=true \
57
+ # falcosecurity/falco
58
+
59
+ # - name: run scsctl --help
60
+ # run: |
61
+ # scsctl scan --pyroscope_app_name pyroscope.server --docker_image_name pyroscope/pyroscope:latest --pyroscope_url http://localhost:4040 --non_interactive
0 commit comments