melodic-secretary-404
05/31/2024, 8:33 AM10.100.0.0/16
even if the vpc is different?hallowed-photographer-31251
05/31/2024, 8:46 AMmelodic-secretary-404
05/31/2024, 8:54 AMmelodic-secretary-404
05/31/2024, 8:54 AMname: Micro_Services
runtime: yaml
description: A Pulumi YAML program to deploy an EKS cluster on AWS using only private subnets
config:
desiredClusterSize:
type: integer
default: 3
eksNodeInstanceType:
type: string
default: t3.medium
maxClusterSize:
type: integer
default: 6
minClusterSize:
type: integer
default: 3
vpcId:
type: string
privateSubnetIds:
type: array
outputs:
# Output the Kubeconfig for the cluster
kubeconfig: ${eks-cluster.kubeconfig}
resources:
eks-cluster:
type: eks:Cluster
properties:
desiredCapacity: ${desiredClusterSize}
# Use private subnets only
endpointPrivateAccess: true
endpointPublicAccess: true
instanceType: ${eksNodeInstanceType}
maxSize: ${maxClusterSize}
minSize: ${minClusterSize}
nodeAssociatePublicIpAddress: false
privateSubnetIds: ${privateSubnetIds}
vpcId: ${vpcId}
melodic-secretary-404
05/31/2024, 8:55 AMconfig:
Micro_Services:desiredClusterSize: "3"
Micro_Services:eksNodeInstanceType: t3.medium
Micro_Services:maxClusterSize: "6"
Micro_Services:minClusterSize: "3"
Micro_Services:privateSubnetIds:
- subnet-0030afccf2147ee3c
- subnet-0429ed98e84b15994
Micro_Services:vpcId: vpc-0934f132b76c3cae6
Micro_Services:vpcNetworkCidr: 172.30.0.0/16
aws:region: eu-west-2
pulumi:template: kubernetes-aws-yaml
~
hallowed-photographer-31251
05/31/2024, 9:56 AMmelodic-secretary-404
05/31/2024, 9:57 AMhallowed-photographer-31251
05/31/2024, 10:00 AMmelodic-secretary-404
05/31/2024, 10:02 AMhallowed-photographer-31251
05/31/2024, 10:07 AMmelodic-secretary-404
05/31/2024, 10:08 AMhallowed-photographer-31251
05/31/2024, 10:08 AMmelodic-secretary-404
05/31/2024, 10:08 AMnote that vpcNetworkCidr doesn't seem to be used in your program, but i'm guessing that's the cidr you're expecting?
melodic-secretary-404
05/31/2024, 10:09 AMhallowed-photographer-31251
05/31/2024, 10:10 AMmelodic-secretary-404
05/31/2024, 10:11 AMmelodic-secretary-404
05/31/2024, 10:17 AMhallowed-photographer-31251
05/31/2024, 10:23 AMmelodic-secretary-404
05/31/2024, 10:23 AM