Skip to content

Commit

Permalink
Fix AWS hosted-cp manifest examples (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
a13x5 authored Dec 17, 2024
1 parent 898aee2 commit 1180d28
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions docs/clustertemplates/aws/hosted-control-plane.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ kind: ManagedCluster
metadata:
name: aws-hosted-cp
spec:
template: aws-hosted-cp
template: aws-hosted-cp-0-0-3
credential: aws-credential
config:
vpcID: vpc-0a000000000000000
Expand All @@ -81,6 +81,13 @@ spec:
subnets:
- id: subnet-0aaaaaaaaaaaaaaaa
availabilityZone: us-west-1b
isPublic: true
natGatewayID: xxxxxx
routeTableId: xxxxxx
- id: subnet-1aaaaaaaaaaaaaaaa
availabilityZone: us-west-1b
isPublic: false
routeTableId: xxxxxx
instanceType: t3.medium
securityGroupIDs:
- sg-0e000000000000000
Expand All @@ -101,14 +108,22 @@ kind: ManagedCluster
metadata:
name: aws-hosted
spec:
template: aws-hosted-cp
template: aws-hosted-cp-0-0-3
credential: aws-credential
config:
vpcID: "{{.spec.network.vpc.id}}"
region: "{{.spec.region}}"
subnets:
- id: "{{(index .spec.network.subnets 0).resourceID}}"
availabilityZone: "{{(index .spec.network.subnets 0).availabilityZone}}"
{{- range $subnet := .spec.network.subnets }}
- id: "{{ $subnet.resourceID }}"
availabilityZone: "{{ $subnet.availabilityZone }}"
isPublic: {{ $subnet.isPublic }}
{{- if $subnet.isPublic }}
natGatewayId: "{{ $subnet.natGatewayId }}"
{{- end }}
routeTableId: "{{ $subnet.routeTableId }}"
zoneType: "{{ $subnet.zoneType }}"
{{- end }}
instanceType: t3.medium
securityGroupIDs:
- "{{.status.networkStatus.securityGroups.node.id}}"
Expand Down

0 comments on commit 1180d28

Please sign in to comment.