From 2f89ddd01c1a95a033b2cf771f6ffd5df099b9be Mon Sep 17 00:00:00 2001 From: Swadhin Jain Date: Sun, 31 May 2020 15:39:54 -0700 Subject: [PATCH 1/2] removing unwanted words after kubectl commands which is causing confusion Signed-off-by: Swadhin Jain --- guestbook-go/README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guestbook-go/README.md b/guestbook-go/README.md index 41fefe65..23b8b3c7 100644 --- a/guestbook-go/README.md +++ b/guestbook-go/README.md @@ -30,7 +30,7 @@ Use the `examples/guestbook-go/redis-master-controller.json` file to create a [r ```console $ kubectl create -f examples/guestbook-go/redis-master-controller.json - replicationcontrollers/redis-master + ``` 2. To verify that the redis-master controller is up, list the replication controllers you created in the cluster with the `kubectl get rc` command(if you don't specify a `--namespace`, the `default` namespace will be used. The same below): @@ -77,7 +77,7 @@ Services find the pods to load balance based on pod labels. The pod that you cre ```console $ kubectl create -f examples/guestbook-go/redis-master-service.json - services/redis-master + ``` 2. To verify that the redis-master service is up, list the services you created in the cluster with the `kubectl get services` command: @@ -100,7 +100,7 @@ The Redis master we created earlier is a single pod (REPLICAS = 1), while the Re ```console $ kubectl create -f examples/guestbook-go/redis-slave-controller.json - replicationcontrollers/redis-slave + ``` 2. To verify that the redis-slave controller is running, run the `kubectl get rc` command: @@ -143,7 +143,7 @@ Just like the master, we want to have a service to proxy connections to the read ```console $ kubectl create -f examples/guestbook-go/redis-slave-service.json - services/redis-slave + ``` 2. To verify that the redis-slave service is up, list the services you created in the cluster with the `kubectl get services` command: @@ -168,7 +168,7 @@ This is a simple Go `net/http` ([negroni](https://github.com/codegangsta/negroni ```console $ kubectl create -f examples/guestbook-go/guestbook-controller.json - replicationcontrollers/guestbook + ``` Tip: If you want to modify the guestbook code open the `_src` of this example and read the README.md and the Makefile. If you have pushed your custom image be sure to update the `image` accordingly in the guestbook-controller.json. From ef5deea76e023e32dbb71eba5e4f5c4840273e86 Mon Sep 17 00:00:00 2001 From: "Dean.Jain" Date: Sun, 31 May 2020 16:19:41 -0700 Subject: [PATCH 2/2] added GuestBook Go example on readme table --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f605d954..ac5a1eeb 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ and to refresh command syntax, output, changed prerequisites, as needed. |Name | Description | Notable Features Used | Complexity Level| ------------- | ------------- | ------------ | ------------ | |[Guestbook](guestbook/) | PHP app with Redis | Deployment, Service | Beginner | +|[Guestbook-Go](guestbook-go/) | Go app with Redis | Deployment, Service | Beginner | |[WordPress](mysql-wordpress-pd/) | WordPress with MySQL | Deployment, Persistent Volume with Claim | Beginner| |[Cassandra](cassandra/) | Cloud Native Cassandra | Daemon Set, Stateful Set, Replication Controller | Intermediate