Socket
Socket
Sign inDemoInstall

@keptn/keptn-controlplane-eks-blueprints-addon

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@keptn/keptn-controlplane-eks-blueprints-addon

Keptn Control Plane Addon for AWS EKS Blueprints


Version published
Weekly downloads
4
decreased by-80.95%
Maintainers
6
Weekly downloads
 
Created
Source

Keptn Control Plane Add-On for the Amazon EKS Blueprints

main

The Keptn Add-On for the Amazon EKS Blueprints enables platform administrators to install a keptn Control Plane (by default in version 0.13.4) during the bootstrapping process of an EKS cluster.

Therefore, this Add-On installs the Keptn Helm Chart and configures Keptn to use an API-Token and Bridge Password with credentials specified by variables or a Amazon Secrets Manager Secret.

AWS Secret Manager Secrets

If you plan to use Secret Manager Secrets, you need to create a secret first.

Therefore:

  • Open your AWS Console
  • Search for "Secrets Manager"
  • Create a new secret ("Store a new secret")
    • Secret Type: "Other type of secret"
    • Key/value pairs
      • API_TOKEN=""
      • BRIDGE_PASSWORD=""
  • Remember the name you assigned to the secret

Usage

The Add-On can be used by either specifying the name of a Secrets Manager secret or the API Token and Bridge password.

You can find informations how to get started with EKS Blueprints Projects here.

Example Configuration (secrets in Secrets Manager):

import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';
import { KeptnControlPlaneAddOn } from '@keptn/keptn-controlplane-eks-blueprints-addon' 

const app = new cdk.App();
const account = '<AWS ACCOUNT ID>';
const region = '<AWS REGION>';


const KeptnControlPlane = new KeptnControlPlaneAddOn({
    ssmSecretName: 'keptn-ssp',
})
 
blueprints.EksBlueprint.builder()
    .account(account)
    .region(region)
    .addOns(new blueprints.addons.CalicoAddOn)
    .addOns(new blueprints.addons.MetricsServerAddOn,)
    .addOns(new blueprints.addons.ClusterAutoScalerAddOn)
    .addOns(new blueprints.addons.ContainerInsightsAddOn)
    .addOns(new blueprints.addons.AwsLoadBalancerControllerAddOn())
    .addOns(new blueprints.addons.VpcCniAddOn())
    .addOns(new blueprints.addons.CoreDnsAddOn())
    .addOns(new blueprints.addons.KubeProxyAddOn())
    .addOns(new blueprints.addons.XrayAddOn())
    .addOns(KeptnControlPlane)
    .build(app, 'eks-blueprint');

Example Configuration (secrets in code):

import 'source-map-support/register';
import * as cdk from 'aws-cdk-lib';
import * as blueprints from '@aws-quickstart/eks-blueprints';
import { KeptnControlPlaneAddOn } from '@keptn/keptn-controlplane-eks-blueprints-addon' 

const app = new cdk.App();
const account = '<AWS ACCOUNT ID>';
const region = '<AWS REGION>';


const KeptnControlPlane = new KeptnControlPlaneAddOn({
    apiToken: '<your-api-token>',
    bridgePassword: '<your-bridge-password>'
})
 
blueprints.EksBlueprint.builder()
    .account(account)
    .region(region)
    .addOns(new blueprints.addons.CalicoAddOn)
    .addOns(new blueprints.addons.MetricsServerAddOn,)
    .addOns(new blueprints.addons.ClusterAutoScalerAddOn)
    .addOns(new blueprints.addons.ContainerInsightsAddOn)
    .addOns(new blueprints.addons.AwsLoadBalancerControllerAddOn())
    .addOns(new blueprints.addons.VpcCniAddOn())
    .addOns(new blueprints.addons.CoreDnsAddOn())
    .addOns(new blueprints.addons.KubeProxyAddOn())
    .addOns(new blueprints.addons.XrayAddOn())
    .addOns(KeptnControlPlane)
    .build(app, 'eks-blueprint');

Add-On Options

NameTypeDefaultDescription
ssmSecretNamestringThe AWS Secrets Manager Secret which is containing the Keptn bridge password and API Token (keys: API_TOKEN, BRIDGE_PASSWORD)
apiTokenstringKeptn API Token is used to connect to the Keptn API, not needed if a ssmSecretName is specified
bridgePasswordstringKeptn Bridge Password is used to login to the Keptn bridge, not needed if a ssmSecretName is specified
namespacestringkeptnNamespace where the keptn Control Plane will be deployed
helmrepostringhttps://storage.googleapis.com/keptn-installerHelm Repository which will be used for installing Keptn
versionstring0.11.4The Version of Keptn which should get installed
enableLoadbalancerbooleanfalseExpose Keptn's Bridge and API Gateway service as type Loadbalancer instead of ClusterIP
enableIngressbooleanfalseCreate an Ingress object to Expose Keptn's Bridge and API Gateway
ingressHostnamestringThe Hostname for the Ingress object
ingressAnnotationsobjectAdd additional Ingress Annotations like the ingress class
ingressSecretNamestringConfigure an ingress secretName

Extended Examples

Example Configuration (create Ingress):

const KeptnControlPlane = new KeptnControlPlaneAddOn({
    ssmSecretName: 'keptn-secrets',
    enableIngress: true,
    ingressHostname: 'mykeptn.yourdomain.com',
    ingressAnnotations: {
        "kubernetes.io/ingress.class": "nginx"
    },
    ingressSecretName: 'mytlssecret'
})

Example Configuration (expose Bridge via Loadbalancer):

const KeptnControlPlane = new KeptnControlPlaneAddOn({
    ssmSecretName: 'keptn-secrets',
    enableLoadbalancer: true
})

Enhancements / Bugs

You are welcome to use issues to report bugs or request enhancements.

FAQs

Package last updated on 11 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc