melodic-secretary-404
05/23/2024, 2:00 PMDiagnostics:
pulumi:pulumi:Stack (EKS-dev):
Warning: Field 'items' does not exist on Object 'config.privateSubnetIds'
on Pulumi.yaml line 21:
21: items:
Existing fields are: 'name', 'type', 'secret', 'value', 'default'
Unable to connect to the server: dial tcp 172.30.2.236:443: i/o timeout
error: update failed
eks:index:VpcCni (eks-cluster-vpc-cni):
error: Command failed: kubectl apply -f /var/folders/c5/dstyrm1x3518rf_bt2j9m1wh0000gn/T/tmp-19575U33DM6p76gNN.tmp
Unable to connect to the server: dial tcp 172.30.2.236:443: i/o timeout
modern-zebra-45309
05/23/2024, 5:15 PMmelodic-secretary-404
05/23/2024, 5:21 PMPulumi.yaml
name: 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
items:
type: string
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: false
instanceType: ${eksNodeInstanceType}
maxSize: ${maxClusterSize}
minSize: ${minClusterSize}
nodeAssociatePublicIpAddress: false
privateSubnetIds: ${privateSubnetIds}
vpcId: ${vpcId}
Pulumi.dev.yaml
```
config:
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
```
modern-zebra-45309
05/23/2024, 5:23 PMprivateSubnetIds:
type: array
items:
type: string
melodic-secretary-404
05/23/2024, 5:24 PMmodern-zebra-45309
05/23/2024, 5:29 PMmodern-zebra-45309
05/23/2024, 5:30 PMconfig:
subnets:
type: array
description: an array of subnets to create
items:
type: string
melodic-secretary-404
05/23/2024, 5:34 PMmodern-zebra-45309
05/23/2024, 5:46 PMNo matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by