-
Notifications
You must be signed in to change notification settings - Fork 4.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
Add a doc to describe how to use kops in AWS China #3360
Conversation
Hi @qqshfox. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with I understand the commands that are listed here. 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. I understand the commands that are listed here. |
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 is amazing!! Bunch of comments. If you want to file an issue and update the changes as needed we can merge before all the changes are done.
docs/aws-china.md
Outdated
|
||
## Getting Started | ||
|
||
Kops used to only support Google Cloud DNS and Amazon Route53 to provision a kubernetes cluster. But since 1.6.2 `gossip` has been added which make it possible to provision a cluster without one of those DNS providers. Thanks to `gossip`, it's officially supported to provision a fully-functional kubernetes in AWS China Region [which doesn't have Route53 so far][1] since [1.7][2]. |
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.
Can we provide the name of the region? Also how much work would it be to get this doc in mandarin?
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.
Also how much work would it be to get this doc in mandarin?
Maybe this weekend or next...
docs/aws-china.md
Outdated
|
||
When `aws configure`, remember to set the `default region name` to the correct one, e.g. `cn-north-1`. | ||
|
||
```bash |
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.
console may highlight better
docs/aws-china.md
Outdated
${GOPATH}/bin/imagebuilder --config aws.yaml --v=8 --publish false --replicate false --up false | ||
``` | ||
|
||
*The execution might fail but the AMI will be created successfully.* |
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.
Do we have a bug for this?
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.
How do you validate that the ami was created?
docs/aws-china.md
Outdated
Set up a few environment variables. | ||
|
||
```bash | ||
export NAME=myfirstcluster.k8s.local |
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.
We usually use the words example here in the name.
docs/aws-china.md
Outdated
|
||
### [Create cluster configuration](aws.md#create-cluster-configuration) | ||
|
||
We will need to note which availability zones are available to us. AWS China (Beijing) Region only has two availability zones. It will have [the same problem][6], like other regions having less than three AZs, that there is no true HA support. |
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.
No capability to run 3 masters with three azs? We may want to note that we can use three masters in one az.
|
||
**Please note that this will still have 50% chance to break the cluster when one of the AZs are down.** | ||
|
||
### Offline mode |
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.
Should we note that assest API will provide this capability in the future?
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.
You did below
docs/aws-china.md
Outdated
|
||
### Assets API | ||
|
||
It hasn't been tested as this approach was only a PR when the author experimenting with provisioning a cluster in AWS China Region. It's the official way to achieve offline mode and should be superior to the previous naive attempt. |
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.
Work in progress ;)
docs/aws-china.md
Outdated
```bash | ||
## Setup vars | ||
|
||
KUBERNETES_VERSION=v1.7.2 |
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.
Can we pull from the version file?
docs/aws-china.md
Outdated
## Setup vars | ||
|
||
KUBERNETES_VERSION=v1.7.2 | ||
KOPS_VERSION=1.7.0 |
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.
Same can we pull the latest version with curl?
docs/aws-china.md
Outdated
ASSET_PREFIX="" | ||
|
||
export KOPS_BASE_URL=https://s3.cn-north-1.amazonaws.com.cn/$ASSET_BUCKET/kops/$KOPS_VERSION/ | ||
export CNI_VERSION_URL=https://s3.cn-north-1.amazonaws.com.cn/$ASSET_BUCKET/kubernetes/network-plugins/cni-0799f5732f2a11b329d9e3d51b9c8f2e3759f2ff.tar.gz |
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.
Make a note that this changes with k8s version
/ok-to-test |
@chrislovecnm Thank you for your review. I update the changes following your comments. And still keep them in small chunks to be convenient for your eyes. I can squash them into a single commit afterwards if you wish. |
Please squash and we can get this in! |
Squashed. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrislovecnm The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue |
Closes #2933, closes #3282.
@wangycc, @mgyong, @hb404 This doc might be helpful for you guys to deploy a cluster in AWS China Region.
@chrislovecnm, @justinsb Please help to review. Thanks.