Commit Graph

417 Commits

Author SHA1 Message Date
Justin Santa Barbara 383c2bf5ed Use explicit tag management in network tasks
This lets us use the new shared cluster tags, for shared networking
objects - in particular subnets.

We continue to add the existing tags also, for compatability. When we
add direct management of shared networks, we will likely address that.
2017-05-01 22:55:27 -04:00
Justin Santa Barbara 864a999602 Fix automatic private DNS zone creation
We have to defer creation of the IAM policy until we have created the
hosted zone.

Fix #2444
2017-04-29 17:01:18 -04:00
chrislovecnm 1aaf973607 missing DisableSecurityGroupIngress from api files 2017-04-26 11:16:25 -06:00
Justin Santa Barbara eddd73549c Use LB IP address for private dns 2017-04-25 01:32:27 -04:00
Justin Santa Barbara c8b18be9dd Gossip backed DNS 2017-04-25 01:32:21 -04:00
Miao Luo aed9f154ad Fix minor errors due to rebase. 2017-04-21 11:03:13 -07:00
Miao Luo de72c50a0d Change the default image name for vsphere provider and other minor fix. 2017-04-20 23:38:33 -07:00
Miao Luo 58197e6dab Support user-defined s3 endpoint.
When Environment variable S3_ENDPOINT is not empty, kops will use
the bucket on this specific s3 endpoint, instead of using AWS S3
by default.
2017-04-20 23:38:32 -07:00
prashima 3bfe3b6e18 Added comments for files and functions. Fixes #52. (#55) 2017-04-20 23:37:41 -07:00
prashima 074791b446 Removed hardcode from protokube logic. Fixes #15. (#46) 2017-04-20 23:37:40 -07:00
prashima 5c92bc6a2d Added featureflag for vSphere cloud. Fixes #26. (#29) 2017-04-20 23:37:40 -07:00
prashima 4128b50bae Added support for multiple workers for vSphere. 2017-04-20 23:37:19 -07:00
prashima bc3e8c3734 Added code to enable nodeup and protokube building and execution for vSphere VM (#11)
* Added code to enable nodeup and protokube building and execution for vSphere VM.

* Fixed nodeup template for vSphere.
2017-04-20 23:37:19 -07:00
Abrar Shivani 5889814c90 Support for vSphere Cloud Provider 2017-04-20 23:33:21 -07:00
SandeepPissay 22e0ce3775 Implemented AttachISO task (#4)
AttachISO task creates the user-data/meta-data cloud init files and creates cloud-init.iso file using "genisoimage" tool. It then uploads it to the datastore where the master/worker VM resides and inserts it into the cd-rom device of the master/worker VM. When the master/worker VM powers on, the cloud-init package in it runs the bootstrap script that downloads nodeup and runs it.

Also removed redundant VirtualMachineModelBuilder that does nothing.

Testing done:
1. Tested end to end that the master and worker VMs executes the cloud-init script successfully.
2, "make ci" is successful.
2017-04-20 23:33:21 -07:00
Miao Luo 4f98f5b47e Use CoreDNS for vSphere provider (#2)
* Add support of CoreDNS for vSphere provider.

* Add instructions about how to setup CoreDNS for vSphere provider.

* Address comments for CoreDNS support code.
2017-04-20 23:33:20 -07:00
SandeepPissay 117f4747b8 Implemented VM power on (#7) 2017-04-20 23:33:19 -07:00
SandeepPissay 17baf04218 Implemented creating a link cloned VM from a template VM (#5)
Implemented CreateLinkClonedVM cloud interface to create a link cloned VM from a template VM. The code checks if the template VM has a snapshot, if no it creates it before creating a link cloned VM. If snapshot already exists, it uses it to create the link cloned VM.

Testing done:
1. kops cluster create goes through fine and creates the link cloned VM for the master and worker. Verified that it creates the snapshot on the template VM if it does not exists before creating a link cloned VM. In case the snapshot exists, it uses it to create the link cloned VM.
2. "make ci" is successful.
2017-04-20 23:33:19 -07:00
Miao Luo 716349bf22 Fix the type of vSphere fields in CloudConfig and update auto-generated conversion files.
To make sure the vSphere fields in CloudConfiguration can be successfully serialized
and output into config file.
2017-04-20 23:33:18 -07:00
Miao Luo efdffd1c41 Address comments.
1. Check the emptiness of VSPHERE_USERNAME and VSPHERE_PASSWORD
2. Move vSphere specific fields from clusterSpec to clusterSpec.CloudConfig
2017-04-20 23:33:17 -07:00
Miao Luo 30573e9aaf Add more supports for vsphere.
Accept vSphere's server, datacenter, cluster setting by flags
"vsphere-server", "vsphere-datacenter", and "vsphere-resource-pool".
Username and password can be set by environment variables:
"VSPHERE_USERNAME" and "VSPHERE_PASSWORD".
2017-04-20 23:32:59 -07:00
SandeepPissay 3ed60bd708 Fixed the formatting and added copyright headers to new files 2017-04-20 23:31:49 -07:00
SandeepPissay 333e1aee40 Sample vsphere tasks added 2017-04-20 23:31:21 -07:00
SandeepPissay 82f9f0668d vsphere initial support. 2017-04-20 23:31:21 -07:00
Justin Santa Barbara 08e2d07a9c Merge pull request #2389 from luomiao/userdefined-s3endpoint-fix
Fix user-defined s3 endpoint support code
2017-04-20 22:07:15 -04:00
Chris Love 233cee6ffa Merge pull request #2112 from justinsb/fix_2110
Perform validation of the security group names
2017-04-20 19:58:46 -06:00
Miao Luo 22c49e76cb Fix user-defined s3 endpoint support.
Address review feedbacks and remove unintended space.
2017-04-19 23:46:05 -07:00
Justin Santa Barbara 4dcc6ad067 Merge pull request #2370 from luomiao/userdefined-s3endpoint
Support user-defined s3 endpoint
2017-04-20 01:17:08 -04:00
Justin Santa Barbara 30361eef68 Merge pull request #2328 from andrewsykim/2310
Move cluster delete files to pkg/resources
2017-04-19 21:31:38 -04:00
Justin Santa Barbara 7c556571dc Merge pull request #2382 from GauntletWizard/validate
Test for having fewer nodes than minimum count
2017-04-19 20:43:27 -04:00
Chris Love 6e81a8c1b5 Merge pull request #2260 from justinsb/hooks_poc
PoC of hooks
2017-04-19 16:00:24 -06:00
Thomas Hahn df0482c6eb Test for having fewer nodes than minimum count 2017-04-19 06:40:50 +00:00
Ted Hahn 46d885d39b Change validation to be happy with more than minimum nodes. 2017-04-18 18:50:19 -07:00
Ted Hahn 395c7428ad add a second, always ready node. Having healthy nodes shouldn't be a
problem for validation.
2017-04-18 18:50:08 -07:00
Miao Luo 76437a77d4 Support user-defined s3 endpoint. 2017-04-18 11:27:07 -07:00
andrewsykim 440976074d Move cluster delete files to pkg/resources 2017-04-08 10:14:15 -04:00
Justin Santa Barbara 76f7665ed1 Apply gofmt 2017-04-08 01:53:09 -04:00
Justin Santa Barbara 7ba283f5e3 Merge pull request #2172 from waldman/feature/issue-2171
Add AWS CloudConfig DisableSecurityGroupIngress Configuration Parameter
2017-04-08 01:52:38 -04:00
Justin Santa Barbara 79b19bcd14 Perform validation of the security group names
Fix #2110
2017-04-07 22:43:18 -04:00
Chris Love c5daf400ba Merge pull request #2283 from justinsb/docker_1_12_6
Update to docker 1.12.6 for k8s 1.6
2017-04-06 13:34:28 -06:00
Chris Love 72754d896e Merge pull request #2105 from justinsb/kopeio_networking_no_configure_cloud_routes
kopeio networking should not set configure-cloud-routes
2017-04-06 13:29:50 -06:00
Justin Santa Barbara ba1af6950e Tidy up kubelet nodeup tests 2017-04-06 00:18:43 -04:00
Justin Santa Barbara bc0063e1cb Update to docker 1.12.6 for k8s 1.6 2017-04-04 01:24:49 -04:00
chrislovecnm 131bc77abb Adding feature gates flag for kubelet, and unit tests 2017-04-03 11:13:21 -06:00
Justin Santa Barbara e04fdbd95d PoC of hooks 2017-03-31 22:33:25 -04:00
Justin Santa Barbara 6556eeda69 Fix node role defaulting
This otherwise breaks validation.
2017-03-31 01:49:48 -04:00
Justin Santa Barbara db5e435c55 Merge pull request #2233 from justinsb/authorization_flag
Add authorization flag to kops create
2017-03-29 19:31:52 -04:00
Justin Santa Barbara 4fcb6e31da API machinery for AlwaysAllow 2017-03-29 13:54:44 -04:00
Justin Santa Barbara c9f412f0c8 Add authorization flag
Also add AlwaysAllow to the schema
2017-03-29 13:53:06 -04:00
Chris Love f63c52c425 Merge pull request #2225 from justinsb/use_kcm_serviceaccounts
Set --use-service-account-credentials for 1.6
2017-03-29 10:50:42 -06:00