Kubernetes application generator.
npm install -g @blastz/kx
kx create [workspace-name]
kx update .
kx g values [app-name]
Canary deployment depend on istio, check your kubernetes environment before use this feature.
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.
Add below config into values file
gateway:
hosts:
- "*.yourdomain.com"
interface Config {
canaryDeployment?: {
enable: boolean;
token: {
key: string;
value: string;
};
image: {
tag: string;
};
config?: {
path: string;
version: string;
};
};
}