StarlingX Metrics Server App
Go to file
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
metrics-server-helm Fixing metrics-server on Centos and Debian 2022-06-23 16:38:36 +00:00
sample-app debian: stx-metrics-server-sample-app: port to debian 2022-08-18 13:17:10 -04:00
stx-metrics-server-helm Fixing metrics-server on Centos and Debian 2022-06-23 16:38:36 +00:00
.gitreview Added .gitreview 2021-02-03 20:34:59 +00:00
.zuul.yaml Zuul config for repo mirroring 2021-03-05 17:15:31 -03:00
centos_build_layer.cfg Metrics Server Armada App 2021-03-01 16:22:28 -03:00
centos_iso_image.inc Fix centos_iso_image for metrics-server 2022-06-15 11:34:07 -04:00
centos_pkg_dirs Metrics-server upversion to 0.6.1. 2022-04-04 12:51:59 -04:00
centos_pkg_dirs_containers Metrics Server Armada App 2021-03-01 16:22:28 -03:00
centos_stable_docker_images.inc Add a sample NodeJs Metric Server client 2021-03-03 13:51:31 -03:00
centos_tarball-dl.lst Fixing debian meta_data for metrics-server-helm 2022-06-17 14:17:24 +00:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:08:25 -04:00
debian_pkg_dirs Metrics-server upversion to 0.6.1. 2022-04-04 12:51:59 -04: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 a sample NodeJs Metric Server client 2021-03-03 13:51:31 -03:00
requirements.txt Metrics Server Armada App 2021-03-01 16:22:28 -03:00
test-requirements.txt Metrics Server Armada App 2021-03-01 16:22:28 -03:00
tox.ini Metrics Server Armada App 2021-03-01 16:22:28 -03:00

readme.md

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
├── centos_build_layer.cfg
├── centos_iso_image.inc
├── centos_pkg_dirs
├── centos_pkg_dirs_containers
├── centos_stable_docker_images.inc
├── readme.md
├── requirements.txt
├── sample-app
│   ├── centos
│   │   ├── docker
│   │   │   ├── Dockerfile
│   │   │   └── src
│   │   │       ├── package.json
│   │   │       └── sample-application.js
│   │   └── sample-app.stable_docker_image
│   └── readme.md
├── stx-metrics-server-helm
│   ├── centos
│   │   ├── build_srpm.data
│   │   └── stx-metrics-server-helm.spec
│   └── stx-metrics-server-helm
│       ├── files
│       │   ├── index.yaml
│       │   ├── metadata.yaml
│       │   └── repositories.yaml
│       ├── helm-charts
│       │   ├── Makefile
│       │   └── metrics-server
│       │       ├── Chart.yaml
│       │       ├── templates
│       │       │   ├── apiservice.yaml
│       │       │   ├── clusterrole-aggregated-reader.yaml
│       │       │   ├── clusterrolebinding-auth-delegator.yaml
│       │       │   ├── clusterrolebinding.yaml
│       │       │   ├── clusterrole.yaml
│       │       │   ├── deployment.yaml
│       │       │   ├── pdb.yaml
│       │       │   ├── psp.yaml
│       │       │   ├── rolebinding.yaml
│       │       │   ├── serviceaccount.yaml
│       │       │   └── service.yaml
│       │       └── values.yaml
│       └── manifests
│           └── metrics-server_manifest.yaml
├── 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
  • centos_iso_image.inc - It inserts the rpm inside the ISO
  • centos_pkg_dirs - Folders to build the pkgs
  • 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