5 Commits

Author SHA1 Message Date
Erickson Silva de Oliveira
f191346f95 Upgrade metrics-server to version 3.12.0/0.7.0
Upgrade metrics-server helm charts version from 3.11.0 to 3.12.0
and metrics-server image version from 0.6.4 to 0.7.0.
The new version supports k8s 1.24 - 1.29.

Furthermore, the name of the example application, which was in
the singular, and the readme, which was inconsistent, were corrected.

Test Plan:
    PASS: Build package
    PASS: App upload/apply/update/remove/delete
    PASS: Check application version
    PASS: Run sample application

Story: 2010681
Task: 49567

Change-Id: Ie592c03147b3cf40e9eeb631c18725d25460becf
Signed-off-by: Erickson Silva de Oliveira <Erickson.SilvadeOliveira@windriver.com>
2024-02-16 14:53:32 -03:00
Fernando Santos
433ea86f50 Metrics-server upversion to 0.6.4
Upgrade metrics-server-helm version from 3.8.4 to 3.11.0. This also
upgrades metrics-server version from 0.6.2 to 0.6.4. The new version
supports k8s 1.24 - 1.27.

Test Plan:
PASS: Build package
PASS: Upload, apply, update and remove the metrics-server-app
PASS: check application version

Story: 2010681
Task: 48638

Signed-off-by: Fernando Santos <Fernando.PereiradosSantos@windriver.com>
Change-Id: I49f72e77f643b4af40570d7ebbbb508e89e6e196
Signed-off-by: Tiago Leal <Tiago.Leal@windriver.com>
2023-09-18 10:13:53 -03:00
Leonardo Fagundes Luz Serrano
a1608b7a68 Standardize app configs
Fixed versioning and adjusted some build files
to bring them as close to a standard as possible.

- Removed centos files
- Added version tracking via GITREVCOUNT
- Fixed mismatch in plugin name, set to python3-k8sapp-<app>
- Standardized plugin debian files (rules, *.install)
- Plugin wheels saved to /plugin instead of /plugin/<app>

Test Plan:
PASS - Build-pkgs -a
PASS - Build-image
PASS - Install, bootstrap, unlock
PASS - app tarball contains wheel file
PASS - wheel versioning updated properly

Story: 2010542
Task: 47196

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I4f791b91476bc044410e42309e2c2954f3529a99
2023-01-20 15:30:32 +00:00
Luiz Felipe Kina
4234c21cbf debian: stx-metrics-server-sample-app: port to debian
Since stx-metrics-server-sample-app doesn't inherit from the base
image, the Dockerfile didn't need to be changed, but to follow the
structure that was used in other apps that were migrated to debian,
some directories were changed.

Test Plan:
PASS: Debian - Build Debian docker image and upload/apply
metrics-server and metrics-server-sample-app. Verified that the app is
applied and the container is created.

PASS: CentOS - Same tests that were done on Debian.

Story: 2009831
Task: 44511

Signed-off-by: Luiz Felipe Kina <LuizFelipe.EiskeKina@windriver.com>
Change-Id: Ib59770209b9284e4463369234a6d833bd23232b2
2022-08-18 13:17:10 -04:00
Rafael Jardim
22948b65b4 Add a sample NodeJs Metric Server client
The sample app is a NodeJs app that requests the metrics every second
and prints that in the console. In the deployment is created
a service account, roles and role binding to allows this application
communicate with the api, this token is stored by default
on `/var/run/secrets/kubernetes.io/serviceaccount/token`,
the application is reading that token and doing the requests
on the endpoint `/apis/metrics.k8s.io/v1beta1/pods` that returns
all pod metrics and log it on console.

Story: 2008457
Task: 41954

Change-Id: Ifd56e6e6ef862515d96d6ca22c2146e382bba78c
Signed-off-by: Rafael Jardim <rafaeljordao.jardim@windriver.com>
2021-03-03 13:51:31 -03:00