Luiz Felipe Kina 2778e0f1c6 Change metric-server-sample-app namespace
Metric-server-sample-app is being deployed on a namespace created by
the patch 0001-Add-sample-app-to-metrics-server.patch named
metric-server-test-app. Due to this, when metric-server-sample-app
tries to use it's docker image on localhost it doesn't have the
necessary permissions since default-registry-key wasn't created on
this namespace.

Changing the sample-app to the metrics-server namespace as to use the
resources that were created when deploying metrics-server app and
having authorization to use the necessary docker image to work as
expected.

Test Plan:
PASS: Upload and apply metrics-server, apply helm overrides to set
sampleApp.create=true and re-apply metrics-server. Check if sample-app
pod is up and healthy.
PASS: Application-update with older version with sample-app enabled

Closes-Bug: 2037081
Depends-On: https://review.opendev.org/c/starlingx/metrics-server-armada-app/+/891624

Change-Id: I5dafab3410981046ab36bded7e56ee27d0124f2d
Signed-off-by: Luiz Felipe Kina <LuizFelipe.EiskeKina@windriver.com>
2023-10-17 11:45:22 +00:00
2021-02-03 20:34:59 +00:00
2023-04-28 12:38:51 -04:00
2023-01-20 15:30:32 +00:00
2023-01-20 15:30:32 +00:00
2023-09-18 10:13:53 -03:00
2021-03-01 16:22:28 -03:00
2022-12-26 23:28:14 +00: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
│       └── 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
Description
StarlingX Metrics Server App
Readme 841 KiB
Languages
Makefile 47.1%
Python 40%
JavaScript 12.3%
PHP 0.5%
C++ 0.1%