Automatic merge from submit-queue.
Fix CoreOS logrotate service failure.
The switch statement was incorrect, causing a bad logrotate unit file to be created for CoreOS.
Automatic merge from submit-queue.
Fix CNI CPU allocations
* Limit each CNI provider to 100m
* Remove CPU limits - they cause serious problems
(https://github.com/kubernetes/kubernetes/issues/51135), but this also
makes the CPU allocation less problematic.
* Bump versions and start introducing the `-kops.1` suffix preemptively.
* Upgrade flannel to 0.9.0 as it fixes a lot.
Builds on #3843
* Limit each CNI provider to 100m
* Remove CPU limits - they cause serious problems
(https://github.com/kubernetes/kubernetes/issues/51135), but this also
makes the CPU allocation less problematic.
* Bump versions and start introducing the `-kops.1` suffix preemptively.
* Upgrade flannel to 0.9.0 as it fixes a lot.
Automatic merge from submit-queue.
kube-router: remove beta annotation versions (deprectated in 1.8) of init container
kube-router: remove beta annotation versions (deprectated in 1.8) of init container and move init container to spec section
Automatic merge from submit-queue.
Bump alpha and stable to latest
We are happily running k8s 1.7.10 and kops 1.7.1 in production since yesterday, so far so good :)
Automatic merge from submit-queue.
Add a default NodeLabel with the InstanceGroup name
As requested in https://github.com/kubernetes/kops/issues/2999, this change just auto-populates new InstanceGroup specs with a default node label containing the name of the instance group. It would be really useful for those of us managing environments with multiple instance groups.
It allows an admin to easily view the instance groups using kubectl:
```
kubectl get nodes --label-columns kops.k8s.io/instancegroup
NAME STATUS AGE VERSION INSTANCEGROUP
ip-172-20-108-120.eu-west-1.compute.internal Ready,node 3m v1.7.4 xtra-large
ip-172-20-117-133.eu-west-1.compute.internal Ready,master 14m v1.7.4 master-eu-west-1c
ip-172-20-32-139.eu-west-1.compute.internal Ready,master 14m v1.7.4 master-eu-west-1a
ip-172-20-32-92.eu-west-1.compute.internal Ready,node 12m v1.7.4 nodes
ip-172-20-67-184.eu-west-1.compute.internal Ready,master 13m v1.7.4 master-eu-west-1b
```
Automatic merge from submit-queue.
Add Node IAM permissions to access kube-router key in S3.
Fixes#3792
An additional S3 IAM permission is added to the nodes policy when `Networking.Kuberouter` is specified.
Automatic merge from submit-queue.
Debian Stretch versions for Docker to support K8s 1.8
Sadly no armhf support, as Docker only started building armhf builds for 17.06+ for Debian Stretch.
This fixes https://github.com/kubernetes/kops/issues/2783
Automatic merge from submit-queue.
Consolidate two separate CNI sections
There was a second section about CNI that was confusing since it was superfluous to the first one.
Also updated a couple of calico references from version-pinned to 'latest'.
Automatic merge from submit-queue.
Allow passing in extra user-data to cloud-init
This allows for the utilization of multipart mime to pass extra data to cloud-init.
This gives you the ability to utilize cloud-init features such as setting up a CM or monitoring so that existing infrastructure components can be leveraged.
Automatic merge from submit-queue.
Bugfix kops update always detecting changes when using ExecContainerAction.
`ExecContainerAction` is referenced as a pointer in the `HookSpec`. When the bootstrapscript is run, it fingerprints the content here and stores it on-top of the existing `ExecContainerAction` within the Hook being parsed. The bootstrapscript is called for every Instance Group, and so the fingerprinted content gets passed and re-parsed.
This PR fixes the issue by creating a new `ExecContainerAction` object and assigning it to the hook being processed. Tests should now cover this case by running the `ResourceNodeUp` fn multiple times.
Fixes#3516
Automatic merge from submit-queue.
DNS Controller Watch Command line
- adding a fix to the building of the argument, as the double quote cause an yaml parsing error
```shell
error building tasks: error remapping manifest addons/dns-controller.addons.k8s.io/pre-k8s-1.6.yaml: error parsing yaml: error converting YAML to JSON: yaml: line 37: did not find expected key
```
- adding a fix to the building of the argument, as the double quote cause an yaml parsing error
error building tasks: error remapping manifest addons/dns-controller.addons.k8s.io/pre-k8s-1.6.yaml: error parsing yaml: error converting YAML to JSON: yaml: line 37: did not find expected key