@blitzm/aws-kubernetes
v0.9.3
Published
@blitzm/aws-kubernetes is a typescript library for simplifying the process of creating an EKS cluster with a single managed node groups. It abstracts the complicated configurations to provider a simple input interface for Blitzm developers to deploy resou
Downloads
17
Keywords
Readme
Blitzm Cloud - AWS Kubernetes
@blitzm/aws-kubernetes is a typescript library for simplifying the process of creating an EKS cluster with a single managed node groups. It abstracts the complicated configurations to provider a simple input interface for Blitzm developers to deploy resources to the cloud platform with little or no domain knowledge of the provider.
Installation
This package can be installed using npm
npm install --save --save-exact @blitzm/aws-kubernetes
Usage
import { AWSKubernetes } from '@blitzm/aws-kubernetes'
// use all the default configurations(The nginx ingress and the cert manager are also enable )
const cluster = new AWSKubernetes("my-project");
// create the cluster with custom spec
const cluster = new AWSKubernetes("my-project", {
nodeSize: "t2.medium",
maxNodes: 3,
minNodes: 2,
nginxIngress: {
enabled: true,
}
});
// The returned `cluster` has the following objects so you can export them, cooperate with other cloud libs or create your own resources in the cluster.
export const kubeconfig = cluster.kubeconfig;
export const ingressPublicDNS = cluster.ingressPublicDNS;
export const vpc = cluster.vpc
export const provider = cluster.provider
export const clusterRole = cluster.nodeRole
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.