creamy-beach-53040
05/23/2023, 4:47 PM'pulumi==3.68.0',
'pulumi-aws==5.41.0',
'pulumi-eks==1.0.2',
'pulumi-kubernetes==3.28.0',
'pulumi-awsx==1.0.2'
This is the code:
cluster = eks.Cluster(
f"cluster-{project_name}-{stack_name}",
vpc_id=vpc.vpc_id,
subnet_ids=kube_subnets,
node_associate_public_ip_address=False,
enabled_cluster_log_types=[
"api",
"audit",
"authenticator",
],
tags=tags,
min_size=5,
max_size=10,
desired_capacity=5,
instance_type=t2.large,
instance_role=cluster_node_role,
provider_credential_opts=eks.KubeconfigOptionsArgs(profile_name="pulumi")
)
I also tried the following configuration, in this case the cluster size and instance type change to the default 2, and t2.medium respectively. The extra_node_security_groups weren't assigned to the nodes.
cluster = peks.Cluster(
f"cluster-{project_name}-{stack_name}",
vpc_id=vpc.vpc_id,
subnet_ids=kube_subnets,
node_associate_public_ip_address=False,
enabled_cluster_log_types=[
"api",
"audit",
"authenticator",
],
tags=tags,
node_group_options=peks.ClusterNodeGroupOptionsArgs(
extra_node_security_groups=[db_security_group],
min_size=5,
max_size=10,
desired_capacity=5,
instance_type="t2.large"
),
instance_role=cluster_node_role,
provider_credential_opts=peks.KubeconfigOptionsArgs(profile_name="pulumi")
)
Thanks in advance for any hint provided.hundreds-lunch-5706
05/23/2023, 9:54 PMcreamy-beach-53040
05/23/2023, 11:46 PMkubectl get nodes
i get No resources found