0.10.0 • Published 1 year ago

@blastz/kx v0.10.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

kx

Kubernetes application generator.

Installation

npm install -g @blastz/kx

Usage

Create new workspace(chart)

kx create [workspace-name]

Update sdk(templates)

kx update .

Create new app(values yaml file)

kx g values [app-name]

Canary deployment

Canary deployment depend on istio, check your kubernetes environment before use this feature.

Basic traffic routing based on header

Add below config into your values file

canaryDeployment:
  enable: true
  token:
    key: canary-token
    value: abc123
  image:
    tag: 20220923-6a11d0f

This will create Canary Deployment, VirtualService and DestinationRule, when the request with header canary-token and the value is abc123 the traffic will route to the canary pod otherwise it will goto stable pod.

Use ingress gateway

Add below config into values file

gateway:
  hosts:
    - "*.yourdomain.com"

Full configuration list

interface Config {
  canaryDeployment?: {
    enable: boolean;
    token: {
      key: string;
      value: string;
    };
    image: {
      tag: string;
    };
    config?: {
      path: string;
      version: string;
    };
  };
}
0.10.0

1 year ago

0.9.0

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.1

3 years ago

0.4.0

3 years ago

0.5.1

3 years ago

0.3.0

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago