@defiance-digital/kubectl-provider
TypeScript icon, indicating that this package has built-in type declarations

0.0.16 • Public • Published

Kubectl Provider

This CDK construct creates a Lambda function capable of making arbitrary kubectl calls against a cluster.

Example

const app = new App();
const stack = new Stack(app, 'TestingFunctionStack', { env: { account: '...', region: '...' } });
const vpc = Vpc.fromLookup(stack, 'Vpc', { vpcId: '...' });
new KubectlFunction(stack, 'TestFunction', {
  vpc,
  roleArn: 'arn:aws:iam::0123456789012:role/ProxyKubectlRole360249B6-1GR9RPOPQW2E1',
  clusterName: 'dev',
});

Executing

To execute the Lambda function, hand it a basic commands field:

{
  "commands": ["get", "nodes", "-o", "json"]
}

/@defiance-digital/kubectl-provider/

    Package Sidebar

    Install

    npm i @defiance-digital/kubectl-provider

    Homepage

    defiance.ai

    Weekly Downloads

    78

    Version

    0.0.16

    License

    Apache-2.0

    Unpacked Size

    152 kB

    Total Files

    11

    Last publish

    Collaborators

    • matthew_bonig_defiance
    • defiance-adambigelow
    • defiancedigital