@@ -39,9 +39,7 @@ awslocal eks create-cluster \
3939 --resources-vpc-config " {}"
4040```
4141
42- You can see an output similar to the following:
43-
44- ``` bash
42+ ``` bash title="Output"
4543{
4644 " cluster" : {
4745 " name" : " cluster1" ,
@@ -71,9 +69,7 @@ You can use the `docker` CLI to check that some containers have been created:
7169docker ps
7270```
7371
74- The output will be:
75-
76- ``` bash
72+ ``` bash title="Output"
7773CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7874...
7975b335f7f089e4 rancher/k3d-proxy:5.0.1-rc.1 " /bin/sh -c nginx-pr…" 1 minute ago Up 1 minute 0.0.0.0:8081-> 80/tcp, 0.0.0.0:44959-> 6443/tcp k3d-cluster1-serverlb
@@ -88,9 +84,7 @@ Run the following command:
8884awslocal eks describe-cluster --name cluster1
8985```
9086
91- The output will be:
92-
93- ``` json
87+ ``` bash title="Output"
9488{
9589 " cluster" : {
9690 " name" : " cluster1" ,
@@ -145,9 +139,7 @@ Run the following command:
145139awslocal ecr create-repository --repository-name " fancier-nginx"
146140```
147141
148- The output will be:
149-
150- ``` json
142+ ``` bash title="Output"
151143{
152144 " repository" : {
153145 " repositoryArn" : " arn:aws:ecr:us-east-1:000000000000:repository/fancier-nginx" ,
@@ -194,9 +186,7 @@ awslocal eks update-kubeconfig --name cluster1 && \
194186 kubectl config use-context arn:aws:eks:us-east-1:000000000000:cluster/cluster1
195187```
196188
197- The output will be:
198-
199- ``` bash
189+ ``` bash title="Output"
200190...
201191Added new context arn:aws:eks:us-east-1:000000000000:cluster/cluster1 to /home/localstack/.kube/config
202192Switched to context " arn:aws:eks:us-east-1:000000000000:cluster/cluster1" .
@@ -239,7 +229,7 @@ kubectl describe pod fancier-nginx
239229
240230In the events, we can see that the pull from ECR was successful:
241231
242- ``` bash
232+ ``` bash title="Output"
243233 Normal Pulled 10s kubelet Successfully pulled image " 000000000000.dkr.ecr.us-east-1.localhost.localstack.cloud:4566/fancier-nginx:latest" in 2.412775896s
244234```
245235
@@ -300,9 +290,7 @@ You will be able to send a request to `nginx` via the load balancer port `8081`
300290curl http://localhost:8081/test123
301291```
302292
303- The output will be:
304-
305- ``` bash
293+ ``` bash title="Output"
306294< html>
307295...
308296< hr><center> nginx/1.21.6< /center>
@@ -379,9 +367,7 @@ You can create an EKS Cluster configuration using the following command:
379367awslocal eks create-cluster --name cluster1 --role-arn arn:aws:iam::000000000000:role/eks-role --resources-vpc-config '{}'
380368` ` `
381369
382- The output will be :
383-
384- ` ` ` json
370+ ` ` ` bash title="Output"
385371{
386372 "cluster": {
387373 "name": "cluster1",
@@ -400,9 +386,7 @@ And check that it was created with:
400386awslocal eks list-clusters
401387` ` `
402388
403- The output will be :
404-
405- ` ` ` json
389+ ` ` ` bash title="Output"
406390{
407391 "clusters": [
408392 "cluster1"
@@ -487,19 +471,15 @@ This host-based routing mechanism ensures that each service is uniquely identifi
487471curl http://eks-service-1.localhost.localstack.cloud:8081/v1
488472` ` `
489473
490- The output will be :
491-
492- ` ` ` bash
474+ ` ` ` bash title="Output"
493475... [output of service 1]
494476` ` `
495477
496478` ` ` bash
497479curl http://eks-service-2.localhost.localstack.cloud:8081/v1
498480` ` `
499481
500- The output will be :
501-
502- ` ` ` bash
482+ ` ` ` bash title="Output"
503483... [output of service 2]
504484` ` `
505485
@@ -528,9 +508,7 @@ awslocal eks create-cluster \
528508 --tags '{"_volume_mount_":"/path/on/host:/path/on/node"}'
529509` ` `
530510
531- The output will be :
532-
533- ` ` ` json
511+ ` ` ` bash title="Output"
534512{
535513 "cluster": {
536514 "name": "cluster1",
0 commit comments