forked from kubernetes-sigs/karpenter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,12 @@ jobs: | |
- name: Kind Cluster | ||
uses: helm/[email protected] | ||
- name: check kind cluster | ||
shell: bash | ||
run: | | ||
kubectl config current-context | ||
kubectl get nodes | ||
- name: Enable the actionlint matcher | ||
shell: bash | ||
run: echo "::add-matcher::.github/actionlint-matcher.json" | ||
- run: K8S_VERSION=${{ matrix.k8sVersion }} make presubmit | ||
- name: Send coverage | ||
|
@@ -33,11 +35,13 @@ jobs: | |
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: goveralls -coverprofile=coverage.out -service=github | ||
- name: install pyroscope dependency | ||
shell: bash | ||
run: | | ||
curl -fL https://github.com/grafana/pyroscope/releases/download/v1.1.5/profilecli_1.1.5_linux_amd64.tar.gz | tar xvz | ||
chmod +x profilecli | ||
sudo mv profilecli /usr/local/bin | ||
- name: test | ||
shell: bash | ||
run: | | ||
Check failure on line 45 in .github/workflows/test-kind.yaml GitHub Actions / presubmit (1.29.x)
Check failure on line 45 in .github/workflows/test-kind.yaml GitHub Actions / presubmit (1.24.x)
Check failure on line 45 in .github/workflows/test-kind.yaml GitHub Actions / presubmit (1.25.x)
Check failure on line 45 in .github/workflows/test-kind.yaml GitHub Actions / presubmit (1.26.x)
Check failure on line 45 in .github/workflows/test-kind.yaml GitHub Actions / presubmit (1.27.x)
Check failure on line 45 in .github/workflows/test-kind.yaml GitHub Actions / presubmit (1.28.x)
|
||
kubectl cluster-info | ||
kubectl get storageclass standard | ||
|
@@ -48,11 +52,13 @@ jobs: | |
ls ./karpenter/ | ||
cd ./karpenter/ | ||
- name: install kwok and controller | ||
shell: bash | ||
run: | | ||
make toolchain | ||
make install-kwok | ||
KWOK_REPO=kind.local make apply | ||
- name: install prometheus and grafana | ||
shell: bash | ||
run: | | ||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
helm repo add grafana https://grafana.github.io/helm-charts | ||
|
@@ -66,6 +72,7 @@ jobs: | |
echo "Installed prometheus" | ||
kubectl --namespace prometheus get pods -l "release=prometheus" | ||
- name: enable profiling | ||
shell: bash | ||
run: | | ||
kubectl annotate -n kube-system pods profiles.grafana.com/memory.scrape="true" -l app.kubernetes.io/name="karpenter" | ||
kubectl annotate -n kube-system pods profiles.grafana.com/memory.port="8000" -l app.kubernetes.io/name="karpenter" | ||
|
@@ -77,6 +84,7 @@ jobs: | |
kubectl annotate -n kube-system pods profiles.grafana.com/goroutine.port="8000" -l app.kubernetes.io/name="karpenter" | ||
# Testing out pyroscope for profiling | ||
- name: apply pyroscope | ||
shell: bash | ||
run: | | ||
helm -n kube-system install pyroscope grafana/pyroscope | ||
#Setup Metrics Endpoint | ||
|
@@ -99,6 +107,7 @@ jobs: | |
path: /metrics | ||
EOF | ||
- name: apply nodepool | ||
shell: bash | ||
run: | | ||
# Setup node pool | ||
cat <<EOF | envsubst | kubectl apply -f - | ||
|
@@ -128,11 +137,13 @@ jobs: | |
expireAfter: 720h # 30 * 24h = 720h | ||
EOF | ||
- name: ping cluster | ||
shell: bash | ||
run: | | ||
kubectl get pods -n kube-system | grep karpenter | ||
kubectl get nodepools | ||
kubectl get pods -A | ||
- name: cleanup | ||
shell: bash | ||
run: | | ||
kubectl delete nodepools --all | ||
make delete | ||
|