adorable-agency-45573
07/03/2025, 4:25 PMadamant-lawyer-19698
07/04/2025, 7:21 AMadorable-agency-45573
07/20/2025, 1:52 AMadamant-lawyer-19698
07/20/2025, 2:25 AMadamant-lawyer-19698
07/20/2025, 2:26 AMquick-house-41860
07/21/2025, 2:06 PMNodePool
CRs. You can create those using the pulumi-kubernetes provider: CustomResourceadorable-agency-45573
07/24/2025, 4:10 AMadorable-agency-45573
08/26/2025, 4:02 PMconst cluster = new eks.Cluster(
`${regionalNamespace}-cluster`,
{
name: `${regionalNamespace}`,
version: K8S_VERSION,
vpcId: ...,
privateSubnetIds: ...,
publicSubnetIds: ...,
enabledClusterLogTypes: ['api', 'audit', 'authenticator'],
tags: projectTags,
endpointPrivateAccess: true,
endpointPublicAccess: true,
nodeAssociatePublicIpAddress: false,
gpu: true,
autoMode: {
enabled: true,
createNodeRole: true,
computeConfig: {
nodePools: ['general-purpose'],
},
},
authenticationMode: eks.AuthenticationMode.Api,
accessEntries: ...,
providerCredentialOpts:...,
{ provider: ... },
);
const nodePool = new kubernetes.apiextensions.CustomResource(
`${regionalNamespace}-nodepool`,
{
apiVersion: '<http://karpenter.sh/v1|karpenter.sh/v1>',
kind: 'NodePool',
metadata: {
name: `${regionalNamespace}-gpu-nodepool`,
namespace: 'kube-system',
clusterName: cluster.eksCluster.name,
},
spec: {
template: {
spec: {
taints: [
{
key: '<http://nvidia.com/gpu|nvidia.com/gpu>',
effect: 'NoSchedule',
},
],
nodeClassRef: {
name: 'default',
group: '<http://eks.amazonaws.com|eks.amazonaws.com>',
kind: 'NodeClass',
},
requirements: [
{
key: '<http://karpenter.sh/capacity-type|karpenter.sh/capacity-type>',
operator: 'In',
values: ['on-demand'],
},
{
key: '<http://eks.amazonaws.com/instance-family|eks.amazonaws.com/instance-family>',
operator: 'In',
values: ['g5'],
},
{
key: '<http://nvidia.com/gpu.count|nvidia.com/gpu.count>',
operator: 'In',
values: ['1'],
},
],
},
},
limits: {
gpu: 4,
},
},
},
{
provider: ...,
},
);
adorable-agency-45573
08/26/2025, 4:02 PMadorable-agency-45573
08/26/2025, 4:10 PM.metadata.clusterName: field not declared in schema
quick-house-41860
08/26/2025, 4:19 PMmetadata.clusterName
property in k8s. Did you want to add this as a label instead?adorable-agency-45573
08/26/2025, 4:27 PMadorable-agency-45573
08/26/2025, 4:28 PMquick-house-41860
08/26/2025, 4:35 PMprovider
you define in the resource options.
If you don't define any it uses your current k8s context - that's why you most likely got an error (because you weren't logged in?)adorable-agency-45573
08/26/2025, 4:35 PM