sparse-intern-71089
11/17/2021, 10:04 PMbillowy-army-68599
pulumi up
?lively-student-98057
11/17/2021, 10:07 PMlively-student-98057
11/17/2021, 10:07 PMbillowy-army-68599
aws:cloudformation:Stack ix-test-eks-cluster-public-gateway-nodes created
billowy-army-68599
lively-student-98057
11/17/2021, 10:10 PMlively-student-98057
11/17/2021, 10:20 PMbillowy-army-68599
billowy-army-68599
billowy-army-68599
lively-student-98057
11/17/2021, 11:11 PMbillowy-army-68599
lively-student-98057
11/17/2021, 11:13 PM// Create a VPC for our cluster.
const vpc = new awsx.ec2.Vpc("jh-test-vpc", {
tags: { Name: "jh-test-vpc" },
numberOfAvailabilityZones: 3,
subnets: [
{ type: "public", name: "public", tags: { Name: "public", "<http://kubernetes.io/role/elb|kubernetes.io/role/elb>": "1" } },
{ type: "private", name: "gateway-k8s", tags: { Name: "gateway-k8s", "<http://kubernetes.io/cluster/jh-gateway-cluster-eksCluster-a94d2a1|kubernetes.io/cluster/jh-gateway-cluster-eksCluster-a94d2a1>": "owned", "<http://kubernetes.io/role/internal-elb|kubernetes.io/role/internal-elb>": "1" } },
],
});
const gatewayCluster = new eks.Cluster("jh-gateway-cluster", {
vpcId: vpc.id,
publicSubnetIds: vpc.publicSubnetIds,
privateSubnetIds: vpc.privateSubnetIds,
nodeAssociatePublicIpAddress: false,
createOidcProvider: true,
providerCredentialOpts: {
profileName: aws.config.profile,
},
});
billowy-army-68599
lively-student-98057
11/17/2021, 11:29 PMwonderful-twilight-70958
11/17/2021, 11:40 PMimport * as awsx from "@pulumi/awsx";
import * as eks from "@pulumi/eks";
import * as aws from "@pulumi/aws";
const vpc = new awsx.ec2.Vpc("test-vpc", {
tags: {Name: "test-vpc"},
numberOfAvailabilityZones: 3,
subnets: [
{ type: "public", name: "public", tags: {Name: "public", "<http://kubernetes.io/role/elb|kubernetes.io/role/elb>": ""} },
{ type: "private", name: "private", tags: {Name: "private", "<http://kubernetes.io/role/internal-elb|kubernetes.io/role/internal-elb>": ""} },
],
});
const testCluster = new eks.Cluster("test-cluster", {
vpcId: vpc.id,
publicSubnetIds: vpc.publicSubnetIds,
privateSubnetIds: vpc.privateSubnetIds,
nodeAssociatePublicIpAddress: false,
createOidcProvider: true,
providerCredentialOpts: {
profileName: aws.config.profile,
},
});
export const testKubeconfig = testCluster.kubeconfig;
does result in 2 nodes showing on the EKS console. I'm working with @lively-student-98057 on this little project and I feel sure it's perhaps our subnet variables that are not being pulled through / resolved correctly. He's offline right now but we'll try and debug those variables tomorrow to ensure they're what we think they are.billowy-army-68599
wonderful-twilight-70958
11/17/2021, 11:41 PMbillowy-army-68599
wonderful-twilight-70958
11/17/2021, 11:42 PMwonderful-twilight-70958
11/17/2021, 11:42 PMbillowy-army-68599
billowy-army-68599
wonderful-twilight-70958
11/17/2021, 11:44 PMwonderful-twilight-70958
11/17/2021, 11:45 PMwonderful-twilight-70958
11/17/2021, 11:46 PMwonderful-twilight-70958
11/17/2021, 11:47 PMwonderful-twilight-70958
11/17/2021, 11:49 PMvpc.{private,public}SubnetIds
variables are not (resolving to) what we think they are, leading to the cluster creating but no nodes being provisioned. We'll debug that tomorrow with some logging and figure it out.billowy-army-68599
billowy-army-68599
wonderful-twilight-70958
11/17/2021, 11:53 PMwonderful-twilight-70958
11/17/2021, 11:53 PMwonderful-twilight-70958
11/17/2021, 11:54 PMbillowy-army-68599
wonderful-twilight-70958
11/17/2021, 11:54 PMdestroy
even fails because the vpc is protected (but almost all the other resources are not).billowy-army-68599
pulumi state delete <urn>
wonderful-twilight-70958
11/17/2021, 11:55 PMwonderful-twilight-70958
11/17/2021, 11:55 PMwonderful-twilight-70958
11/17/2021, 11:56 PMbillowy-army-68599
destroy
operations is saying "remove everything in this stack" - the protect just stops that from happeningbillowy-army-68599
wonderful-twilight-70958
11/18/2021, 12:14 AM