23
loading...
This website collects cookies to deliver better user experience
gc tree
gc graph
This example is located at examples/starhackit/eks-lean
For end-to-end automation, the rootDomainName should be registered or transferred to the AWS Route53 service.
When the backend container is changed to another backend, do not forget to change the target group health check in configAWS.js
gc list
Listing resources on 2 providers: aws, k8s
✓ aws
✓ Initialising
✓ Listing 29/29
k8s
Initialising
Listing 0/8
List Summary:
Provider: aws
┌───────────────────────────────────────────────────────────────────────────────────────────────┐
│ aws │
├────────────────────┬──────────────────────────────────────────────────────────────────────────┤
│ IamPolicy │ AmazonEKSClusterPolicy │
│ │ AmazonEKSVPCResourceController │
│ │ AmazonEKSWorkerNodePolicy │
│ │ AmazonEC2ContainerRegistryReadOnly │
│ │ AmazonEKS_CNI_Policy │
├────────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ Route53Domain │ grucloud.org │
├────────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ Vpc │ default │
├────────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ InternetGateway │ igw-9c2f1ae7 │
├────────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ SecurityGroup │ default │
├────────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ Subnet │ default │
│ │ default │
│ │ default │
│ │ default │
│ │ default │
│ │ default │
├────────────────────┼──────────────────────────────────────────────────────────────────────────┤
│ RouteTable │ rtb-19753867 │
└────────────────────┴──────────────────────────────────────────────────────────────────────────┘
19 resources, 8 types, 1 provider
Command "gc l" executed in 5s
Verify that the domain name is registered with Route53Domain, in this case, grucloud.org
gc apply
kubectl config current-context
arn:aws:eks:eu-west-2:999541460000:cluster/cluster
gc list -p aws --graph -a --default-exclude --types-exclude Certificate --types-exclude Route53Domain --types-exclude NetworkInterface
gc apply
command will find out the difference between the expected version and the deployed version.Querying resources on 2 providers: aws, k8s
✓ aws
✓ Initialising
✓ Listing 30/30
✓ Querying
✓ HostedZone 1/1
✓ Certificate 1/1
✓ Route53Record 2/2
✓ Vpc 1/1
✓ InternetGateway 1/1
✓ Subnet 4/4
✓ RouteTable 3/3
✓ Route 3/3
✓ ElasticIpAddress 1/1
✓ NatGateway 1/1
✓ IamRole 2/2
SecurityGroup 3/4
✓ SecurityGroupRuleIngress 6/6
✓ SecurityGroupRuleEgress 1/1
✓ KmsKey 1/1
✓ EKSCluster 1/1
✓ EKSNodeGroup 1/1
✓ LoadBalancer 1/1
✓ TargetGroup 2/2
✓ Listener 2/2
✓ Rule 3/3
✓ k8s
✓ Initialising
✓ Listing 8/8
✓ Querying
✓ Namespace 1/1
✓ ConfigMap 2/2
✓ StatefulSet 2/2
✓ Service 4/4
✓ Deployment 2/2
┌────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ 1 Deployment from k8s │
├────────────────────────────────────────────────────────────────────────────────────────────────────┤
│ ┌───────────────────────────────────────────────────────────────────────────────────────────────┐ │
│ │ UPDATE: name: default::web, id: web │ │
│ ├───────────────────────────────────────────────────────────────────────────────────────────────┤ │
│ │ Key: spec │ │
│ ├───────────────────────────────────────────────┬───────────────────────────────────────────────┤ │
│ │ - template: │ + template: │ │
│ │ spec: │ spec: │ │
│ │ containers: │ containers: │ │
│ │ 0: │ 0: │ │
│ │ image: fredericheem/ui:v10.14.0 │ image: fredericheem/ui:v10.15.0 │ │
│ │ │ │ │
│ └───────────────────────────────────────────────┴───────────────────────────────────────────────┘ │
└────────────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Plan summary for provider aws │
└─────────────────────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────────────────────┐
│ Plan summary for provider k8s │
├─────────────────────────────────────────────────────────────────────────────────────────────┤
│ DEPLOY RESOURCES │
├────────────────────┬────────────────────────────────────────────────────────────────────────┤
│ Deployment │ default::web │
└────────────────────┴────────────────────────────────────────────────────────────────────────┘
? Are you sure to deploy 1 resource, 1 type on 1 provider? › (y/N)
kubectl apply
, except that kubectl
is "fire and forget", but gc apply the changes and waits for the resources to be ready before returning.gc destroy
23