How do i launch a demo application on an aws eks cluster?
-
This is the demo application as shown in: https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html
The previous steps to follow before running this demo application are as follows:
How do i setup the pre-reqs for eks - aws kubernetes service?
How do i install linux kubectl for aws eks - aws kubernetes?
How do i install the go programming language on linux?
How do i install the aws-iam-authenticator for aws eks?
How do i create an aws eks cluster using the cli?
How do i configure kubectl for aws eks?
How do i add worker nodes to an aws eks cluster?
How do i enable worker nodes to join my eks cluster?
If you want to see the code for each kubernetes object view the raw github URL in a browser or use curl e.g:
$ curl https://raw.githubusercontent.com/kubernetes/kubernetes/v1.10.3/examples/guestbook-go/guestbook-controller.json
Create the Redis master replication controller.
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/kubernetes/v1.10.3/examples/guestbook-go/redis-master-controller.json replicationcontroller "redis-master" created
Create the Redis master service.
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/kubernetes/v1.10.3/examples/guestbook-go/redis-master-service.json service "redis-master" created
Create the Redis slave replication controller.
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/kubernetes/v1.10.3/examples/guestbook-go/redis-slave-controller.json replicationcontroller "redis-slave" created
Create the Redis slave service.
kubectl apply -f https://raw.githubusercontent.com/kubernetes/kubernetes/v1.10.3/examples/guestbook-go/redis-slave-service.json service "redis-slave" created
Create the guestbook replication controller.
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/kubernetes/v1.10.3/examples/guestbook-go/guestbook-controller.json replicationcontroller "guestbook" created
Create the guestbook service.
$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/kubernetes/v1.10.3/examples/guestbook-go/guestbook-service.json service "guestbook" created
Query the services in your cluster and wait until the External IP column for the guestbook service is populated.
$ kubectl get services -o wide
Open the URL in a browser to see the guestbook application.
© Lightnetics 2024