StarlingX Metrics Server App
Go to file
Hediberto C Silva e3b7632f49 Increase livenessProbe and readinessProbe timeout
Performing stress test on mainline for 1 pcore support, it was
noticed that the metrics-server pod is restarting due to low
default timeout (1 second).

Increasing this value to 10 seconds will have no impact on app
performance, but will delay restart in case of probe failure.

Test Plan:
  PASS: build metrics-server packages
  PASS: install metrics-server updated and check the
        livenessProbe and readinessProve timeout.

Closes-bug: 2091006

Change-Id: I11915b24a7189bf1b733c11a037cfe766efcf748
Signed-off-by: Hediberto C Silva <hediberto.cavalcantedasilva@windriver.com>
2024-12-04 10:42:20 -03:00
helm-charts/upstream/metrics-server-helm Upgrade metrics-server to version 3.12.1/0.7.1 2024-04-26 13:59:11 -03:00
python3-k8sapp-metrics-server Upgrade metrics-server to version 3.12.1/0.7.1 2024-04-26 13:59:11 -03:00
sample-app Upgrade metrics-server to version 3.12.0/0.7.0 2024-02-16 14:53:32 -03:00
stx-metrics-server-helm Increase livenessProbe and readinessProbe timeout 2024-12-04 10:42:20 -03:00
.gitignore Update app Zuul Check Jobs. 2023-12-15 08:30:31 -07:00
.gitreview Added .gitreview 2021-02-03 20:34:59 +00:00
.zuul.yaml Add minimum Kubernetes version supported 2024-02-06 11:15:51 -03:00
bindep.txt Create lifecycle plugin for Metrics Server 2023-12-01 18:57:01 -03:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:08:25 -04:00
debian_iso_image.inc Standardize app configs 2023-01-20 15:30:32 +00:00
debian_pkg_dirs Auto-increment chart versions 2024-04-24 09:09:54 -03:00
debian_stable_docker_images.inc debian: stx-metrics-server-sample-app: port to debian 2022-08-18 13:17:10 -04:00
readme.md Add label platform/application to pods 2023-12-13 23:41:44 +00:00
requirements.txt Metrics Server Armada App 2021-03-01 16:22:28 -03:00
test-requirements.txt Update app Zuul Check Jobs. 2023-12-15 08:30:31 -07:00
tox.ini Update app Zuul Check Jobs. 2023-12-15 08:30:31 -07:00

Metrics Server Armada App

This Armada App is responsible to deliver the metrics server inside the ISO.

Metrics Server is a scalable, efficient source of container resource metrics for Kubernetes built-in autoscaling pipelines.

Structure

metrics-server-armada-app
├── debian_build_layer.cfg
├── debian_iso_image.inc
├── debian_pkg_dirs
├── debian_stable_docker_images.inc
├── metrics-server-helm
│   ├── debian
│   │   ├── deb_folder
│   │   │   ├── changelog
│   │   │   ├── control
│   │   │   ├── copyright
│   │   │   ├── metrics-server-helm.install
│   │   │   └── rules
│   │   └── meta_data.yaml
│   └── files
│       ├── 0001-Add-sample-app-to-metrics-server.patch
|       ├── 0002-Add-label-platform-application-to-pods.patch
│       └── Makefile
├── readme.md
├── requirements.txt
├── sample-app
│   ├── debian
│   │   └── sample-app.stable_docker_image
│   ├── docker
│   │   ├── Dockerfile.debian
│   │   └── src
│   │       ├── package.json
│   │       └── sample-application.js
│   └── readme.md
├── stx-metrics-server-helm
│   ├── debian
│   │   ├── deb_folder
│   │   │   ├── changelog
│   │   │   ├── control
│   │   │   ├── copyright
│   │   │   ├── rules
│   │   │   ├── source
│   │   │   │   └── format
│   │   │   └── stx-metrics-server-helm.install
│   │   └── meta_data.yaml
│   └── stx-metrics-server-helm
│       ├── files
│       │   ├── Makefile
│       │   └── metadata.yaml
│       ├── fluxcd-manifests
│       │   ├── base
│       │   │   ├── helmrepository.yaml
│       │   │   ├── kustomization.yaml
│       │   │   └── namespace.yaml
│       │   ├── kustomization.yaml
│       │   └── metrics-server
│       │       ├── helmrelease.yaml
│       │       ├── kustomization.yaml
│       │       ├── metrics-server-static-overrides.yaml
│       │       └── metrics-server-system-overrides.yaml
│       └── helm-charts
│           └── Makefile
├── test-requirements.txt
└── tox.ini

Important files

  • metrics-server_manifest.yaml - Armada Manifest
  • helm-charts - Metrics Server helm charts
  • stx-metrics-server-helm.spec - Steps to generate
  • sample-app - Sample app application

Install

  • Navigate to the path /usr/local/share/applications/helm/
  • The metrics-server-1.0-1.tgz will be present
  • Run system application-upload metrics-server-1.0-1.tgz
  • Run system application-list to see if it was uploaded
  • Run system helm-override-update --reuse-values --set sampleApp.create=true metrics-server metrics-server metrics-server If you want to deploy the sample app
  • Run system application-apply metrics-server
  • Run system application-list to see if it was applied
  • Run kubectl get pods -l app=metrics-server -n metrics-server to see the pod running