npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@granulate/gmaestro-eks-blueprints-addon

v1.0.16

Published

cost optimization solution for EKS cluster

Downloads

18

Readme

gMaestro add-on for Amazon EKS Blueprints

This repository contains the source code for the gMaestro add-on for Amazon EKS Blueprints. This add-on is a CDK construct that allows customers to add gMaestro to their Amazon EKS clusters.

gMaestro is a Kubernetes cost optimization solution that helps companies reduce spending on unutilized resources by up to 60%. With gMaestro, you gain full visibility into K8s clusters, seamlessly interact with HPA scaling policies, and achieve your cost-performance goals by applying custom rightsizing recommendations based on actual usage in production.

  1. Install gMaestro - As a single pod on your cluster with a single command line.
  2. Multi-cluster visibility - Gain visibility into each controller, resource request, container, HPA policy, utilization, and cost.
  3. Apply custom recommendations - gMaestro generates custom recommendations by analyzing the actual utilization of each controller.

For additional information, visit gMaestro documentation.

Prerequisite

Before using gMaestro, you need to:

  1. Sign up to the gMaestro platform
  2. Download a sample YAML file - After signing up to gMaestro, navigate to the Deploy on the left-hand menu, fill in the required fields and click on "Generate Config File"

GmaestroGenerateConfigFile

GmaestroConfigFile

  1. Create a secret (as a plaintext) in AWS Secrets Manager copy its value from the following place:
    1. Deployment section MAESTRO_CLIENT_ID

Installation

Using npm:

$ npm i @granulate/gmaestro-eks-blueprints-addon

Usage

import 'source-map-support/register';
import * as CDK from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';
import {GmaestroAddOn} from '@granulate/gmaestro-eks-blueprints-addon';

const app = new cdk.App();

const addOn = new GmaestroAddOn({
        clientIdSecretName: "<client id secret name>", // Create and copy from gMaestro deployment yaml
        clusterName: "<cluster name>",
        namespace: "<namespace>"
    });

const blueprint = blueprints.EksBlueprint.builder()
  .addOns(addOn)
  .build(app, 'my-stack-name');

Use the following command to validate that gMaestro installed successfully:

$ kubectl get pods --all-namespaces | grep granulate-maestro

NAMESPACE     NAME                                 READY   STATUS    RESTARTS   AGE
default       granulate-maestro-6947dc87bc-k5nfc   2/2     Running   0          11m
kube-system   aws-node-9rhgx                       1/1     Running   0          16m
kube-system   coredns-d5b9bfc4-8v8k5               1/1     Running   0          21m
kube-system   coredns-d5b9bfc4-r5sdb               1/1     Running   0          21m
kube-system   kube-proxy-js5pn                     1/1     Running   0          16m

After a few seconds, you will gain full visibility into your K8s cluster objects. The first rightsizing recommendations may take up to 5 minutes to load.

gMaestroAddOn Required (props)

Take the following parameter from the sample YAML file that was downloaded.

clientIdSecretName: string

The secret name from the Prerequisite section 3.i.

clusterName: string

Copy from the Deployment section MAESTRO_SERVICE_NAME value

createNamespace: string

If you want CDK to create the namespace for you

namespace: string (optional)

The namespace where gMaestro will be installed. default namespace is used as default.

Security issue

  1. The implementation requires access to the AWS Secrets Manager at build time to retrieve secret values.
  2. The secret value will be stored as plain text in the resulting CloudFormation stack, meaning that any user with access to view CloudFormation stack can gain access to this secret.

Note: This secret is specific to gMaestro and don't affect customer account beyond the scope of the gMaestro add-on.

This issue will be mitigated and updated in the following weeks.

Support

If you have questions about Gmaestro, catch us on Slack!

License

The gMaestro add-on is licensed under the Apache 2.0 license.