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

Fix local cluster scripts #2129

Merged
merged 1 commit into from
Nov 3, 2014
Merged

Conversation

ddysher
Copy link
Contributor

@ddysher ddysher commented Nov 3, 2014

Allow creating a local cluster. (However, kube-proxy needs root privilege for iptable)

@smarterclayton
Copy link
Contributor

Getting an error when running it directly:

Starting etcd
!!! Timed out waiting for http://localhost:4001/v2/keys/
!!! Error in /home/vagrant/go/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/util.sh:37
  'return 1' exited with status 1
Call stack:
  1: /home/vagrant/go/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/util.sh:37 kube::util::start_etcd(...)
  2: hack/local-up-cluster.sh:37 main(...)
Exiting with status 1

@smarterclayton
Copy link
Contributor

Probably this - etcd running on 127.0.0.1, not localhost:

etcd -name test -data-dir /tmp/test-etcd.D8OC00 -bind-addr 127.0.0.1:4001

@smarterclayton
Copy link
Contributor

Fixed the last by making wait_for_url use ${host}:${port}.

Seeing:

!!! Timed out waiting for http://127.0.0.1:8080/api/v1beta1/pods

I'm not sure, but that could be --public_address_override being unset.

@smarterclayton
Copy link
Contributor

It wasn't, it's $GO_OUT not being correct anymore. GO_OUT should be

GO_OUT=$(dirname $0)/../_output/local/bin/linux/amd64

@ddysher
Copy link
Contributor Author

ddysher commented Nov 3, 2014

Interesting... now i'm wondering why it works on my machine, the binaries aren't there anymore

@ddysher
Copy link
Contributor Author

ddysher commented Nov 3, 2014

@smarterclayton Let me know if it works... thx

@smarterclayton
Copy link
Contributor

With those two fixes in place everything works for me. Try a make clean, you might have caught the end of Joe's refactor?

@ddysher
Copy link
Contributor Author

ddysher commented Nov 3, 2014

Yeah, that's possible; if the new build process doesn't wipe out the old directory. I just rm -rf _output, so i'm unable to reproduce...

The PR was updated. PTAL

@brendandburns brendandburns self-assigned this Nov 3, 2014
brendandburns added a commit that referenced this pull request Nov 3, 2014
@brendandburns brendandburns merged commit a4abafe into kubernetes:master Nov 3, 2014
@WIZARD-CXY
Copy link
Contributor

The local setup guide says to install the newest etcd which now is pointed to the etcd v0.5.0-alpha.1 .But this version isn't compatible with the newest kubernetes. So the local cluster will fail.
The solution is to use etcd v0.4.6 now.

@ddysher
Copy link
Contributor Author

ddysher commented Nov 4, 2014

The local setup document is probabaly outdated about this, one should use hack/install_etcd.sh to install etcd.
https://github.com/GoogleCloudPlatform/kubernetes/blob/master/docs/devel/development.md#integration-tests

@WIZARD-CXY
Copy link
Contributor

yeah, the install_etcd.sh is now in hack/travis/ directory

@ddysher ddysher deleted the fix-local-up branch November 11, 2014 21:32
ffromani pushed a commit to ffromani/kubernetes that referenced this pull request Nov 8, 2024
OCPBUGS-34373: Bump library-go to fix routes/custom-host permission for externalCertificate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants