-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Follow-up to #583: Modernize remaining manifests updating ReplicationController to Deployment #586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Follow-up to #583: Modernize remaining manifests updating ReplicationController to Deployment #586
Conversation
|
/assign idvoretskyi |
janetkuo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix! Would you update the README as well?
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: sorcerer-ares The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…icationController with Deployment
cbdbf60 to
72c1752
Compare
web/guestbook-go/README.md
Outdated
| This example shows how to build a simple multi-tier web application using Kubernetes and Docker. The application consists of a web front end, Redis master for storage, and replicated set of Redis replicas, all for which we will create Kubernetes replication controllers, pods, and services. | ||
| This example shows how to build a simple multi-tier web application using Kubernetes and Docker. The application consists of a web front end, Redis master for storage, and replicated set of Redis replicas, all for which we will create Kubernetes deployments, pods, and services. | ||
|
|
||
| If you are running a cluster in Google Container Engine (GKE), instead see the [Guestbook Example for Google Container Engine](https://cloud.google.com/container-engine/docs/tutorials/guestbook). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's drop this paragraph, I believe we should ensure our docs are vendor neutral as much as possible.
web/guestbook-go/README.md
Outdated
| ### Step One: Create the Redis master pod<a id="step-one"></a> | ||
|
|
||
| Use the `examples/guestbook-go/redis-master-controller.yaml` file to create a [replication controller](https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/) and Redis master [pod](https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/). The pod runs a Redis key-value server in a container. Using a replication controller is the preferred way to launch long-running pods, even for 1 replica, so that the pod benefits from the self-healing mechanism in Kubernetes (keeps the pods alive). | ||
| Use the `examples/guestbook-go/redis-master-controller.yaml` file to create a [Deployment](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/) and Redis master [pod](https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/). The pod runs a Redis key-value server in a container. Using a deployment is the preferred way to launch long-running pods, even for 1 replica, so that the pod benefits from the self-healing mechanism in Kubernetes (keeps the pods alive). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add https://kubernetes.io/docs/concepts/architecture/self-healing/ link under the self-healing wording.
web/guestbook-go/README.md
Outdated
|
|
||
| ```console | ||
| $ kubectl create -f guestbook-go/redis-master-controller.yaml | ||
| $ kubectl apply -f guestbook-go/redis-master-controller.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's try to unify the approach here, currently you're using 3 different paths when pointing to this file:
- First instance uses full path
examples/guestbook-go/redis-master-controller.yaml - Second one (above) uses just
redis-master-controller.yaml - Here, you're using
guestbook-go/redis-master-controller.yaml
I'm inclined to say to stick with this file context, so just use redis-master-controller.yaml
Let's use one consistently across all, so there is no confusion to the reader.
Co-authored-by: Maciej Szulik <[email protected]>
Co-authored-by: Maciej Szulik <[email protected]>
Co-authored-by: Maciej Szulik <[email protected]>
This PR continues the modernization work started in #583 by updating the remaining Redis example manifests that are still using 'ReplicationController' in order to be up-to-date and maintain consistency. Deployment provides better rollout behavior, scaling, and self-healing.
Changes made:
Follow-up to: #583