Skip to content

Conversation

nikhiljindal
Copy link
Contributor

@nikhiljindal nikhiljindal commented Jun 13, 2016

cc @kubernetes/sig-cluster-federation @colhom @mml

Guide with steps for admin to setup federation

```shell
$ kubectl get clusters --context=federation-cluster
NAME STATUS VERSION AGE
cluster1 Ready 3m
Copy link
Contributor Author

Choose a reason for hiding this comment

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

FYI, I havent been able to reach this state. My cluster remains in "Offline" state. I see the following in my controller manager logs:

E0613 03:29:22.404990       1 cluster_client.go:147] Failed to list nodes while getting zone names: the server could not find the requested resource
W0613 03:29:22.405017       1 clustercontroller.go:194] Failed to get zones and region for cluster cluster1: the server could not find the requested resource

Am still debugging it

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 was a config problem with my setup.
Works great now!

@nikhiljindal
Copy link
Contributor Author

cc @lavalamp who also had suggestions on making this easier for admins to setup

@nikhiljindal
Copy link
Contributor Author

cc @kubernetes/docs @kubernetes/docs-review-team @johndmulhausen

Can you please confirm that this is the right way to create a doc now?
Do I need to create a placeholder doc in kubernetes repo?

@nikhiljindal
Copy link
Contributor Author

This is part of 1.3 docs

@lavalamp
Copy link
Contributor

The placeholders in the main repo are only for auto-generated documents. I thought we copied docs from there to here ~each release. @johndmulhausen would know if the canonical doc should be here or there.

@bgrant0607
Copy link
Member

@nikhiljindal Needs to go into the release-1.3 branch

@nikhiljindal
Copy link
Contributor Author

@bgrant0607 So I need to move this PR to the core kubernetes repo?

Last time I created a PR there I was told that only auto generated docs are accepted there. All other docs should be edited directly here: kubernetes/kubernetes#26313.

@rata
Copy link
Member

rata commented Jun 14, 2016

@nikhiljindal: I guess @bgrant0607 says the branch release-1.3 in this repo.

@nikhiljindal
Copy link
Contributor Author

aah thanks @rata Hadnt noticed the branch in this repo :)

@johndmulhausen The edit instructions are geared towards editing existing docs. We should add instructions for adding docs.

Sent #662 for branch release-1.3.
Closing this.

k8s-github-robot pushed a commit to kubernetes/kubernetes that referenced this pull request Jun 14, 2016
Automatic merge from submit-queue

Updating federation up scripts to work in non e2e setup

Ref: kubernetes/website#656

Updating the federation up scripts so that they work as per steps in kubernetes/website#656.

Changes are:
* Updating the default namespace to be "federation" instead of "federation-e2e"
* Updated the kubeconfig context to be named "federation-cluster" instead of "federated-context"
* Fixing federation-up so that FEDERATION_IMAGE_TAG is set even when federation-up is run without running `e2e.go --up`. e2e-up.sh sets it here: https://github.com/kubernetes/kubernetes/blob/6a388d4a0d9e7fc2549ab89c97bf29ce53982e39/hack/e2e-internal/e2e-up.sh#L44.
* Adding a "missingkey=zero" option to template parser. Without this, the parser adds `"<no value>"` at the place of an env var that is not set. With this change, it instead replaces it with the corresponding zero value (for ex "" for strings). This is required for the FEDERATION_DNS_PROVIDER_CONFIG env var.

cc @kubernetes/sig-cluster-federation @colhom @mml
@johndmulhausen
Copy link

The edit docs page does include the necessary details on adding pages. See: "Edit Page Titles or Change the Left Navigation" -- definitely will need to add a left nav entry for this file.

And yes, please ensure release-1.3 is the target for any Kubernetes 1.3 docs.

Now that we have the federation control plane up and running, we can start registering kubernetes clusters.

First of all, we need to create a secret containing kubeconfig for that kubernetes cluster, which federation control plane will use to talk to that kubernetes cluster.
For now, we create this secret in the host kubernetes cluster (that hosts federation control plane). When we start supporting secrets in federation control plane, we will create this secret their.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/their/there

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in #662, thx!

@jamiehannaford
Copy link
Contributor

jamiehannaford commented Jun 14, 2016

One important thing that isn't included here is how DNS works. Right now AWS and GCE are supported, but the docs don't mention how/why DNS is used, or how users can add their own DNS provider.

Another thing that isn't clear is whether resources - like pods or services - can exist at the federation level, i.e. in the federation-cluster context. The use case would be: I want a pod to exist at the top level which intercepts and parses a request, finds a region value, then passes it on to the relevant cluster. If this is not possible, each cluster will need to run that pod and forward on accordingly after the federation load balancer stage.


```

By specifying `--cluster=federation-cluster`, we direct the request to federation apiserver.
Copy link
Contributor

Choose a reason for hiding this comment

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

this should be --context right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, fixed in #662, thx!

@nikhiljindal
Copy link
Contributor Author

Thanks for your comments @jamiehannaford
This PR is now superseded by #662. I will fix your comments there.
Closing this one.

perotinus pushed a commit to kubernetes-retired/cluster-registry that referenced this pull request Sep 2, 2017
Automatic merge from submit-queue

Updating federation up scripts to work in non e2e setup

Ref: kubernetes/website#656

Updating the federation up scripts so that they work as per steps in kubernetes/website#656.

Changes are:
* Updating the default namespace to be "federation" instead of "federation-e2e"
* Updated the kubeconfig context to be named "federation-cluster" instead of "federated-context"
* Fixing federation-up so that FEDERATION_IMAGE_TAG is set even when federation-up is run without running `e2e.go --up`. e2e-up.sh sets it here: https://github.com/kubernetes/kubernetes/blob/6a388d4a0d9e7fc2549ab89c97bf29ce53982e39/hack/e2e-internal/e2e-up.sh#L44.
* Adding a "missingkey=zero" option to template parser. Without this, the parser adds `"<no value>"` at the place of an env var that is not set. With this change, it instead replaces it with the corresponding zero value (for ex "" for strings). This is required for the FEDERATION_DNS_PROVIDER_CONFIG env var.

cc @kubernetes/sig-cluster-federation @colhom @mml
mikutas pushed a commit to mikutas/k8s-website that referenced this pull request Feb 24, 2021
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.

7 participants