@timmyers/pulumi-kube-ops-view
TypeScript icon, indicating that this package has built-in type declarations

1.1.1ย โ€ขย Publicย โ€ขย Published

๐Ÿน๐Ÿ“ˆ pulumi-kube-ops-view

Actions Status npm codecov semantic-release Dependabot Status

A pulumi module for instantiating Kubernetes Metrics Servers.

Aims to be a full-featured pulumi native alternative to the helm chart. Currently only javascript/typescript are supported. Other languages may follow.

Usage

yarn add @timmyers/pulumi-kube-ops-view

import KubeOpsView, { MetricsServerArgs } from '@timmyers/pulumi-kube-ops-view';

const args: MetricsServerArgs = {};
const metricsServer = new KubeOpsView('kube-ops-view', args);

The module exposes an interface MetricsServerArgs, which exposes many options that can be set, similar to the helm chart.

Examples

Instantiate an EKS cluster in multiple AWS regions, and create a kube-ops-view in each.

import * as aws from '@pulumi/aws';
import KubeOpsView from '@timmyers/pulumi-kube-ops-view';

const regions: aws.Region[] = [
  'us-west-2', // Oregon
  'eu-central-1', // Frankfurt
];

regions.forEach((region): void => {
  const provider = new aws.Provider(`provider-${region}`, { region });
  const defaultOpts: pulumi.ComponentResourceOptions = { provider };
  const cluster = new eks.Cluster(`cluster-${region}`, {}, defaultOpts);

  const k8sDefaultOpts = { providers: { kubernetes: cluster.provider } };
  const metricsServer = new KubeOpsView(name, {}, k8sDefaultOpts);
});

Development

Installation

Clone the repo, then: yarn

Running tests

yarn test

More coming soon

Package Sidebar

Install

npm i @timmyers/pulumi-kube-ops-view

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

32.1 kB

Total Files

26

Last publish

Collaborators

  • timmyers