-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Remove Master/Slave terminology from stateless application tutorial. #22934
Remove Master/Slave terminology from stateless application tutorial. #22934
Conversation
The stateless application tutorial is littered with unsuitable terminology. This update switches the database technology to a database that has already updated their own terminology as well as removes the terminology from the tutorial itself. The advanced logging tutorial followup is set to Draft as it will take a larger effort to convert that, and I'm not convinced its even in a working state right now. A followup PR to the examples repo to be referenced here will be made. Addresses kubernetes#22918 Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
The guestbook and redis documentation are littered with master/slave terminology. This update along with the update to the [website](kubernetes/website#22934) removes that terminology and technology. Addresses kubernetes/website#22918 Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
We need a more appropriate place to host the built docker image as I don't have access to the original google repository, and it shouldn't be hosted in my personal one. |
This looks like a work-in-progress (not yet ready for review) - is that right @paulczar ? |
BTW, Redis uses the term “replica” in place of the problematic word “slave”. |
Deploy preview for kubernetes-io-master-staging ready! Built with commit f7a4acf https://deploy-preview-22934--kubernetes-io-master-staging.netlify.app |
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.
I'm worried that the removal will break existing links to the Redis manifests. I'd like to make sure that these still work or that we've made sure they aren't referenced from elsewhere.
/hold
waiting for the revised container image to be hosted as part of the Kubernetes project
content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md
Outdated
Show resolved
Hide resolved
content/en/examples/application/guestbook/frontend-deployment.yaml
Outdated
Show resolved
Hide resolved
- name: php-redis | ||
image: gcr.io/google-samples/gb-frontend:v4 | ||
- name: guestbook | ||
image: paulczar/gb-frontend:v5 |
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.
This does need to change.
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.
There is also these manifest changes
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.
it seems like the correct image would be image: gcr.io/google-samples/gb-frontend:v5
. image version was updated here https://console.cloud.google.com/gcr/images/google-samples/GLOBAL/gb-frontend around the same time of this initial PR
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.
@notchairmk, OK. Is this image publicly available?
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.
@kbhawkey yes, publicly available. Although, gcr.io/google-samples/gb-frontend:v5
seems more tied to redis, but relies on a slightly different configuration.
I built the guestbook app from Paul's dockerfile PR'd against kubernetes/examples. Unfortunately with that image the guestbook app doesn't appear to run correctly (specifically I'm currently experiencing data duplication on submit).
For both of these reasons, it might be preferable to stay with redis gcr.io/google-samples/gb-frontend:v4
and update file/naming terminology to leader/follow.
content/en/examples/application/guestbook/mongo-deployment.yaml
Outdated
Show resolved
Hide resolved
content/en/examples/application/guestbook/mongo-deployment.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
content/en/examples/application/guestbook/frontend-deployment.yaml
Outdated
Show resolved
Hide resolved
Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
/wg naming |
/assign |
@paulczar: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@justaugustus Any word on where can host that container image? |
@ameukam merged a PR to create a staging repository which can house these images: kubernetes/k8s.io#1299 (ref: #22515, kubernetes/k8s.io#1033). It sounds like the next bit would be wiring up the k/examples repo to do image building and support PRs like kubernetes/examples#393 (ref: #22918). |
We can also setup a dedicated staging container registry for those images. I am happy to help if there is any need! |
I'd love to take some help if people are offering, I don't have a lot of time over the next few weeks to work on this. |
bfaf512
to
f7a4acf
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
Hi @paulczar . Just checking on the status of the pull request? |
hey @kbhawkey I probably need to take some time to implement @justaugustus suggestions above, This week is already toast for me, hopefully next week I can focus on this for a day and get it closed out. |
Thanks for the update! |
I'm going to look into some of this this week. |
Thank you, @justaugustus! I'll be free next week if you need anything extra on this front. |
Some extra context: #25704 |
I went through the tutorial and it worked well. I have a few comments: Creating the Mongo Deployment
Creating the MongoDB Service
Creating the Guestbook Frontend Deployment
Creating the Frontend Service
Viewing the Frontend Service via kubectl port-forward
|
I have a few notes for things I've noticed:
Everything else looked good. 🙂 |
thanks folks for the reviews, I'm waiting to hear back on image storage before I get back to this, but rest assured its not forgotten. |
Yep! |
@justaugustus: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The stateless application tutorial is littered with unsuitable terminology. This update switches the database technology to a database that has already updated their own terminology as well as removes the terminology from the tutorial itself.
The advanced logging tutorial followup is set to Draft as it will take a larger effort to convert that, and I'm not convinced its even in a working state right now.
A followup PR to the examples repo is here - kubernetes/examples#393
Addresses #22918 #19821 and #20088
Signed-off-by: Paul Czarkowski username.taken@gmail.com