import { ClusterAutoScaler } from '@opencdk8s/cdk8s-cluster-autoscaler-aws'
new ClusterAutoScaler(scope: Construct, name: string, opts: ClusterAutoScalerOptions)
Name | Type | Description |
---|---|---|
scope |
constructs.Construct |
No description. |
name |
string |
No description. |
opts |
ClusterAutoScalerOptions |
No description. |
- Type: constructs.Construct
- Type: string
- Type: ClusterAutoScalerOptions
Name | Type | Description |
---|---|---|
command |
string[] |
Extra commands for controller. |
createServiceAccount |
boolean |
service account for aws-load-balancer-controller. |
image |
string |
image for deployment. |
namespace |
string |
Namespace. |
serviceAccountName |
string |
Service Account Name. |
public readonly command: string[];
- Type: string[]
- Default: [ './cluster-autoscaler', '--v=4', '----stderrthreshold=info', '--cloud-provider=aws', '--skip-nodes-with-local-storage=false', '--expander=least-waste' ]
Extra commands for controller.
public readonly createServiceAccount: boolean;
- Type: boolean
- Default: true
service account for aws-load-balancer-controller.
public readonly image: string;
- Type: string
image for deployment.
public readonly namespace: string;
- Type: string
- Default: kube-system
Namespace.
public readonly serviceAccountName: string;
- Type: string
- Default: cluster-autoscaler
Service Account Name.
import { ClusterAutoScalerOptions } from '@opencdk8s/cdk8s-cluster-autoscaler-aws'
const clusterAutoScalerOptions: ClusterAutoScalerOptions = { ... }
Name | Type | Description |
---|---|---|
command |
string[] |
Extra commands for controller. |
createServiceAccount |
boolean |
service account for aws-load-balancer-controller. |
image |
string |
image for deployment. |
namespace |
string |
Namespace. |
serviceAccountName |
string |
Service Account Name. |
public readonly command: string[];
- Type: string[]
- Default: [ './cluster-autoscaler', '--v=4', '----stderrthreshold=info', '--cloud-provider=aws', '--skip-nodes-with-local-storage=false', '--expander=least-waste' ]
Extra commands for controller.
public readonly createServiceAccount: boolean;
- Type: boolean
- Default: true
service account for aws-load-balancer-controller.
public readonly image: string;
- Type: string
image for deployment.
public readonly namespace: string;
- Type: string
- Default: kube-system
Namespace.
public readonly serviceAccountName: string;
- Type: string
- Default: cluster-autoscaler
Service Account Name.
Aws External Dns Policy class ,help you add policy to your Iam Role for service account.
import { AwsClusterAutoScalerPolicyHelper } from '@opencdk8s/cdk8s-cluster-autoscaler-aws'
new AwsClusterAutoScalerPolicyHelper()
Name | Type | Description |
---|
Name | Description |
---|---|
addPolicy |
No description. |
import { AwsClusterAutoScalerPolicyHelper } from '@opencdk8s/cdk8s-cluster-autoscaler-aws'
AwsClusterAutoScalerPolicyHelper.addPolicy(role: any)
- Type: any