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

Add ali cloud VPC network support #571

Merged
merged 1 commit into from
Jan 23, 2017
Merged

Add ali cloud VPC network support #571

merged 1 commit into from
Jan 23, 2017

Conversation

aoxn
Copy link
Contributor

@aoxn aoxn commented Dec 12, 2016

Add ali cloud VPC network driver

Add an ali-vpc backend which made flannel available on Alibaba cloud VPC network.
see README.md for ali-vpc backend configuration.

Signed-off-by: yaoyao.xyy yaoyao.xyy@alibaba-inc.com

@aoxn
Copy link
Contributor Author

aoxn commented Dec 13, 2016

@tomdee @evanfarrar Could you review this? Tks.

* Requirements:
* Running on an ECS instance that is in an Alicloud VPC.
* Permission require accessid and keysecret
* `Type` (string): `aws-vpc`
Copy link
Contributor

Choose a reason for hiding this comment

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

The type field is wrong here

cfg.AccessKeySecret = os.Getenv("ACCESS_KEY_SECRET")

if cfg.AccessKeyID == "" || cfg.AccessKeySecret == "" {
return nil, fmt.Errorf("ACCESS_KEY_ID and ACCESS_KEY_SECRET must provide ")
Copy link
Contributor

Choose a reason for hiding this comment

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

...must be provided

@tomdee
Copy link
Contributor

tomdee commented Dec 13, 2016

@spacexnice Are you happy to help out with supporting this if users hit problems?

@aoxn
Copy link
Contributor Author

aoxn commented Dec 14, 2016

@tomdee Tks, Yes,We are happy to help out with supporting! Please do not hesitate to contact us.

@tomdee
Copy link
Contributor

tomdee commented Dec 14, 2016

@spacexnice Excellent. Before I merge, it would be great to have a guide or something for this, similar to https://github.com/coreos/flannel/blob/master/Documentation/aws-vpc-backend.md would you be able to add that?

@aoxn
Copy link
Contributor Author

aoxn commented Dec 15, 2016

@tomdee Add a AliCloud VPC flannel Guide at Documentation directory. Pls review it .

beta.kubernetes.io/arch: amd64
containers:
- name: kube-flannel
image: registry.cn-hangzhou.aliyuncs.com/google-containers/flannel-git:v0.6.2-ubuntu
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this to quay.io/coreos/flannel:v0.7.0

- name: ACCESS_KEY_ID
value: [replace with your own key]
- name: ACCESS_KEY_SECRET
value: [replaces with your own secret]
Copy link
Contributor

Choose a reason for hiding this comment

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

replaces -> replace

- name: flannel-cfg
mountPath: /etc/kube-flannel/
- name: install-cni
image: registry.cn-hangzhou.aliyuncs.com/google-containers/flannel-git:v0.6.2-ubuntu
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to quay.io/coreos/flannel:v0.7.0

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because this driver is intended to be used on alibaba cloud env, and mostly for china users , BUT quay.io/coreos is behind china's great firewall which we can not access directly, So we need to mirror quay.io ourselves. On the other hand, we can add another yaml file call kube-flannel-alivpc-quay.yml for out of china purpose. and keep the old one. Or do you have any other suggestion? @tomdee Thanks!

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, could you at least update it to the 0.7.0 release (without the -git suffix)

@tomdee
Copy link
Contributor

tomdee commented Jan 20, 2017

@spacexnice looks good. Can you just change the the images to be the official 0.7.0 release?

Signed-off-by: yaoyao.xyy <yaoyao.xyy@alibaba-inc.com>
@aoxn
Copy link
Contributor Author

aoxn commented Jan 21, 2017

updated. @tomdee

@tomdee
Copy link
Contributor

tomdee commented Jan 23, 2017

Merging!

@tomdee tomdee merged commit ebb362b into flannel-io:master Jan 23, 2017
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.

2 participants