Skip to content
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

Cassandra example: daemonset volume fix, readme cleanup, update to new gcr image #21645

Merged
merged 1 commit into from
Mar 7, 2016

Conversation

amygdala
Copy link
Contributor

Cassandra example: daemonset volume fix, readme cleanup, update to new gcr image consistent with the code base.

Am thinking to split the changes to this example into two phases. In this PR:

  • a rebuilt gcr image, moved under google-samples
  • made what appeared to be a necessary change to the daemonset volume spec in cassandra-daemonset.yaml (didn't work before; works now)
  • some readme cleanup... mostly cosmetic, but added a bit more info to the daemonset section: added a mention that the experimental API needs to be enabled, and (apparently) it's also necessary to turn off yaml validation when creating the daemonset resource. LMK if I missed something there.
  • added an apache lic header to the .java file

Then in a second phase, we can:

  • remove the pod adoption, assuming we're agreed there.
  • add a TOC to the readme
  • maybe add a little frontend piece to the app that accesses the cassandra cluster?

cc @bgrant0607

@k8s-github-robot
Copy link

Labelling this PR as size/L

@k8s-github-robot k8s-github-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 21, 2016
@k8s-bot
Copy link

k8s-bot commented Feb 21, 2016

GCE e2e test build/test passed for commit 3ad72d280f4b764ddb79d730a43bc18c4c99ff50.

@k8s-bot
Copy link

k8s-bot commented Feb 21, 2016

GCE e2e test build/test passed for commit c9839d984ec8b3681ada2430067a95dba8eaae9c.

@amygdala
Copy link
Contributor Author

Neglected to add: towards issue #20961.

@@ -364,9 +452,18 @@ Create this daemonset:
$ kubectl create -f examples/cassandra/cassandra-daemonset.yaml
```

Now if you list the pods in your cluster, and filter to the label ```name=cassandra```, you should see one cassandra pod for each node in your network:
Make sure that your Kubernetes cluster has enabled use of the experimental API.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mention of the experimental api will be outdated in 1.2, so maybe I shouldn't even add it here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this shouldn't be true at HEAD and in 1.2. Please try this on HEAD to confirm that it works, and remove this.

@bgrant0607
Copy link
Member

cc @janetkuo @pwittrock

@bgrant0607
Copy link
Member

Re. image sources, we have https://github.com/kubernetes/application-images

@bgrant0607
Copy link
Member

Does this make the cassandra e2e test pass?

@bgrant0607
Copy link
Member

Yes, we should remove pod adoption from here.

Cassandra `SeedProvider` is used to enable Cassandra to dynamically discover
new Cassandra nodes as they join the cluster.

This document also attempts to describe the core components of Kubernetes:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe better as a bullet list.

@amygdala
Copy link
Contributor Author

I changed the daemonset pod label key to 'app', so now those pods map to the cassandra service, and so now the cassandra seed provider works with just the daemonset pods. However, with this fix, I need to have the user shut down the rc before starting up the daemonset, else they fight with each other, thrashing back and forth, unless the number of rc replicas is the same as the number of nodes :). (hope that made sense). Also: #22158

I believe I've addressed the fixes/comments on the README. I'll do the pod adoption change in a following PR.

@bgrant0607
Copy link
Member

LGTM, thanks!

@bgrant0607 bgrant0607 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 29, 2016
@k8s-github-robot
Copy link

PR changed after LGTM, removing LGTM.

@k8s-github-robot k8s-github-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 1, 2016
@amygdala
Copy link
Contributor Author

amygdala commented Mar 1, 2016

arghh, the push after the LGTM was just me 'kicking' the test process by rebasing with master and repushing. No changes to the code in the PR. I won't do that in future. The test process still seems wedged anyway.

@bgrant0607
Copy link
Member

LGTM

@bgrant0607 bgrant0607 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 3, 2016
@bgrant0607
Copy link
Member

@k8s-bot test this issue: #IGNORE

@k8s-github-robot
Copy link

@k8s-bot test this issue: #IGNORE

Tests have been pending for 24 hours

@eparis
Copy link
Contributor

eparis commented Mar 3, 2016

@k8s-bot test this, issue #22435

@k8s-bot
Copy link

k8s-bot commented Mar 3, 2016

GCE e2e build/test failed for commit 04a5854.

Please reference the list of currently known flakes when examining this failure. If you request a re-test, you must reference the issue describing the flake.

@amygdala
Copy link
Contributor Author

amygdala commented Mar 4, 2016

@bgrant0607 Brian, are you able to see whether the jenkins e2e failure is related specifically to this PR? Nothing is obvious to me from the log. It had passed previously (before I made the label change in the daemonset yaml), but it seems unlikely that the daemonset change would be implicated.

@wojtek-t
Copy link
Member

wojtek-t commented Mar 5, 2016

@k8s-bot e2e test this please github issue: #22437

@k8s-github-robot
Copy link

@k8s-bot test this issue: #IGNORE

Tests have been pending for 24 hours

@k8s-bot
Copy link

k8s-bot commented Mar 5, 2016

GCE e2e build/test passed for commit 04a5854.

@k8s-bot
Copy link

k8s-bot commented Mar 5, 2016

GCE e2e build/test passed for commit 04a5854.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Mar 5, 2016

GCE e2e build/test passed for commit 04a5854.

@bgrant0607
Copy link
Member

@k8s-bot unit test this issue: #22614

@bgrant0607
Copy link
Member

@amygdala In the future, please ping me by IM

@k8s-github-robot
Copy link

@k8s-bot test this issue: #IGNORE

Tests have been pending for 24 hours

@k8s-bot
Copy link

k8s-bot commented Mar 6, 2016

GCE e2e build/test passed for commit 04a5854.

@k8s-github-robot
Copy link

@k8s-bot test this [submit-queue is verifying that this PR is safe to merge]

@k8s-bot
Copy link

k8s-bot commented Mar 6, 2016

GCE e2e build/test passed for commit 04a5854.

@bgrant0607
Copy link
Member

Merging in hopes of fixing the cassandra e2e. The submit queue is blocked by #22611.

bgrant0607 added a commit that referenced this pull request Mar 7, 2016
Cassandra example: daemonset volume fix, readme cleanup, update to new gcr image
@bgrant0607 bgrant0607 merged commit 8098504 into kubernetes:master Mar 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/example lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/backlog Higher priority than priority/awaiting-more-evidence. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants