From b2d5ff6b53982c532242d267fe7603ca187e1bc0 Mon Sep 17 00:00:00 2001 From: njtran Date: Fri, 3 May 2024 15:08:52 -0700 Subject: [PATCH] shellbash --- .github/workflows/test-kind.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test-kind.yaml b/.github/workflows/test-kind.yaml index 33f2b2c7b3..1791c462b2 100644 --- a/.github/workflows/test-kind.yaml +++ b/.github/workflows/test-kind.yaml @@ -20,10 +20,12 @@ jobs: - name: Kind Cluster uses: helm/kind-action@v1.10.0 - 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: | 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 <