Skip to content

Commit

Permalink
Install metrics-server in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Dec 5, 2023
1 parent 0c7a470 commit bb79f53
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,24 @@ jobs:
run: make timoni-push
- name: Install Flux
run: make flux-up
- name: Install metrics-server
run: timoni bundle apply -f timoni/bundles/flux-metrics.cue
- name: Run kustomize install benchmark
run: KS=${{ matrix.RESOURCES }} timoni bundle apply -f timoni/bundles/flux-benchmark.cue --runtime-from-env --timeout=30m
run: |
KS=${{ matrix.RESOURCES }} timoni bundle apply -f timoni/bundles/flux-benchmark.cue --runtime-from-env --timeout=30m
kubectl -n flux-system top pods
- name: Run kustomize upgrade benchmark
run: KS=${{ matrix.RESOURCES }} MCPU=2 timoni bundle apply -f timoni/bundles/flux-benchmark.cue --runtime-from-env --timeout=30m
run: |
KS=${{ matrix.RESOURCES }} MCPU=2 timoni bundle apply -f timoni/bundles/flux-benchmark.cue --runtime-from-env --timeout=30m
kubectl -n flux-system top pods
- name: Run helm install benchmark
run: HR=${{ matrix.RESOURCES }} timoni bundle apply -f timoni/bundles/flux-benchmark.cue --runtime-from-env --timeout=30m
run: |
HR=${{ matrix.RESOURCES }} timoni bundle apply -f timoni/bundles/flux-benchmark.cue --runtime-from-env --timeout=30m
kubectl -n flux-system top pods
- name: Run helm upgrade benchmark
run: HR=${{ matrix.RESOURCES }} MCPU=2 timoni bundle apply -f timoni/bundles/flux-benchmark.cue --runtime-from-env --timeout=30m
run: |
HR=${{ matrix.RESOURCES }} MCPU=2 timoni bundle apply -f timoni/bundles/flux-benchmark.cue --runtime-from-env --timeout=30m
kubectl -n flux-system top pods
- name: Debug failure
if: failure()
run: |
Expand Down
17 changes: 17 additions & 0 deletions timoni/bundles/flux-metrics.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
bundle: {
apiVersion: "v1alpha1"
name: "flux-monitoring"
instances: {
"metrics-server": {
module: url: "oci://ghcr.io/stefanprodan/modules/flux-helm-release"
namespace: "monitoring"
values: {
repository: url: "https://kubernetes-sigs.github.io/metrics-server"
chart: name: "metrics-server"
helmValues: {
args: ["--kubelet-insecure-tls"]
}
}
}
}
}

0 comments on commit bb79f53

Please sign in to comment.