Commit Graph

4749 Commits

Author SHA1 Message Date
Kubernetes Submit Queue 43b79a29b5
Merge pull request #4102 from rcuza/patch-1
Automatic merge from submit-queue.

make it go to f
2017-12-18 10:13:42 -08:00
Kubernetes Submit Queue 2eae62d460
Merge pull request #4085 from xoen/ag-oidc-prefixes-config
Automatic merge from submit-queue.

Support for OIDC 'username-prefix' and 'groups-prefix' flags

### What
Added support for `--oidc-username-prefix` and `--oidc-groups-prefix`.
By passing these it's possible to override the default prefixes used to map the OIDC user with the username in kubernetes.

### See
See: https://kubernetes.io/docs/admin/authentication/#configuring-the-api-server

### IMPORTANT
I'm far from a kubernetes/KOPS, this is not tested so someone needs to have a look and see if something is missing or if this can cause troubles! (don't want to accidentally cause the destruction of the universe 💥 )

It's basically the same done in this other PR: https://github.com/kubernetes/kops/pull/1438/files

I did **not** change the `zz_generated.conversion.go` files as according to comment at the top of them they're autogenerated:
```go
// This file was autogenerated by conversion-gen. Do not edit it manually!
```
(I wonder if they should be `.gitignore`d)

### Fixes
This should fix [#4007: field oidcUsernamePrefix is not recognized in cluster configuration file](https://github.com/kubernetes/kops/issues/4007)
2017-12-18 09:37:31 -08:00
Aldo "xoen" Giambelluca 9e30999d06 Support for OIDC 'username-prefix' and 'groups-prefix' flags
See: https://kubernetes.io/docs/admin/authentication/#configuring-the-api-server

This is very similar to this other PR: https://github.com/kubernetes/kops/pull/1438/files

I also updated the format of the documentation for the OIDC API Server fields
to follow the Go Style guide: https://blog.golang.org/godoc-documenting-go-code

Fixes: https://github.com/kubernetes/kops/issues/4007
2017-12-18 15:34:37 +00:00
Raúl Cuza cd442b3560
make it go to f
`aws ec2 describe-availability-zones` returns 1a-1f for my account. This change allows me to provision things in the 1f availability zone.
2017-12-18 10:05:41 -05:00
Kubernetes Submit Queue 15c7d61dfb
Merge pull request #3997 from aledbf/amazon-vpc-cni
Automatic merge from submit-queue.

Add support for Amazon VPC CNI plugin

TODO:
- [x] IAM perms so that the CNI provider only has perms for the nodes in the cluster
- [x] Cleanup of security groups
- [ ] Replace image aledbf/k8s-ec2-srcdst:v0.1.0-5 with the official after https://github.com/ottoyiu/k8s-ec2-srcdst/pull/5 and https://github.com/ottoyiu/k8s-ec2-srcdst/pull/6
2017-12-17 21:41:13 -08:00
Kubernetes Submit Queue ff857218df
Merge pull request #4098 from chrislovecnm/gazelle-updates
Automatic merge from submit-queue.

fixing bazel

man we need a ci test for this :(
2017-12-17 17:36:13 -08:00
Kubernetes Submit Queue dd49d69399
Merge pull request #3254 from chrislovecnm/file-assets
Automatic merge from submit-queue.

work on using files assets

Basic MVP for file assests.

- using file assest builder
- able to upload files
- using URL structs instead of strings everywhere
2017-12-17 16:10:23 -08:00
chrislovecnm c0da5e7fbb fixing bazel 2017-12-17 17:03:58 -07:00
Kubernetes Submit Queue 0bfb273f72
Merge pull request #4095 from reactiveops/fix_3883
Automatic merge from submit-queue.

Adds permissions for ELB and NLB req'd by 1.9

Adds appropriate IAM permissions to Masters (in restrictive mode) for ELB and NLB.

Closes https://github.com/kubernetes/kops/issues/3883
2017-12-17 15:38:32 -08:00
Kubernetes Submit Queue 7768729cf2
Merge pull request #3832 from justinsb/cleanup_ssh
Automatic merge from submit-queue.

Refactor: separate out SSHCredentials from Keyset stores
2017-12-17 15:05:09 -08:00
chrislovecnm 7057aaf1bb Enabling the file assets
File assets and the SHA files are uploaded to the new location. Files
when are users uses s3 are upload public read only. The copyfile task
uses only the existing SHA value.

This PR include major refactoring of the use of URLs.  Strings are no
longer categnated, but converted into a URL struct and path.Join is
utlilized.

A new values.go file is included so that we can start refactoring more
code out of the "fi" package.

A
2017-12-17 15:26:57 -07:00
Kubernetes Submit Queue 0d07cc9f4c
Merge pull request #4046 from artsy/master
Automatic merge from submit-queue.

add imagePullProgressDeadline to kubelet config

Support the kubelet runtime flag `--image-pull-progress-deadline` by mapping the config key `imagePullProgressDeadline`

This supports extending the deadline to pull new images, as detailed in [this issue](https://github.com/openshift/origin/issues/13122)
2017-12-17 13:32:43 -08:00
Manuel de Brito Fontes 2e05dd17aa Add support for Amazon VPC CNI plugin 2017-12-17 18:08:24 -03:00
Eric Hole 59bc52a05a Adds permissions for ELB and NLB req'd by 1.9 2017-12-17 13:03:54 -08:00
Kubernetes Submit Queue b4157ffba4
Merge pull request #4077 from justinsb/admin_or_root
Automatic merge from submit-queue.

nodeup: create kubeconfig under admin or root
2017-12-17 09:41:09 -08:00
Isac Petruzzi 92abe3676f capitalize imagePullProgressDeadline in docstrings 2017-12-17 18:35:09 +01:00
Kubernetes Submit Queue 922a0d3ac6
Merge pull request #3924 from justinsb/remove_nodeup_templates
Automatic merge from submit-queue.

Remove nodeup templating
2017-12-16 09:58:09 -08:00
Kubernetes Submit Queue b44d894813
Merge pull request #3860 from justinsb/batching
Automatic merge from submit-queue.

Copy dnsprovider into our code, implement route53 batching

Fixes #3121
2017-12-15 15:44:12 -08:00
Kubernetes Submit Queue ce7fe5142c
Merge pull request #3981 from justinsb/return_not_found_error
Automatic merge from submit-queue.

Return apierrors NotFound when object not found
2017-12-15 15:05:46 -08:00
Kubernetes Submit Queue fb7c42cb4d
Merge pull request #3987 from justinsb/default_subnets_on_create_ig
Automatic merge from submit-queue.

Use default subnet when creating IG
2017-12-15 09:23:14 -08:00
Kubernetes Submit Queue 09ba34c116 Merge pull request #4079 from justinsb/validation_baremetal_no_subnet_cidrs
Automatic merge from submit-queue.

validation: don't require subnet CIDRs on baremetal
2017-12-15 07:30:21 -08:00
Kubernetes Submit Queue 96ee92a4b3
Merge pull request #4063 from rajivm/fix-canal-hostport
Automatic merge from submit-queue.

Support for hostPort when using canal

Similar to: https://github.com/kubernetes/kops/pull/3206

Without this, we are unable to get `hostPort` working with `canal`. The same is true for `flannel`, but this does add support for plain flannel.
2017-12-15 07:00:22 -08:00
Kubernetes Submit Queue 794b7a12f4
Merge pull request #4075 from justinsb/assetstore_atomic_expand
Automatic merge from submit-queue.

assetstore: extract tar files to a temp directory
2017-12-15 06:09:19 -08:00
Kubernetes Submit Queue 576f3dc603
Merge pull request #4076 from justinsb/refactor_hosts
Automatic merge from submit-queue.

Refactor protokube hosts file into its own package
2017-12-15 05:35:12 -08:00
Kubernetes Submit Queue 490f860bc9
Merge pull request #4078 from justinsb/protokube_local_addresses
Automatic merge from submit-queue.

protokube: better discovery of local address
2017-12-15 05:03:47 -08:00
Kubernetes Submit Queue 6eb1de3825
Merge pull request #4080 from justinsb/protokube_cluster_id_logging
Automatic merge from submit-queue.

protokube: fix logging / logic around cluster-id
2017-12-15 04:19:58 -08:00
Kubernetes Submit Queue 56da7ed34e
Merge pull request #4081 from justinsb/files_npe
Automatic merge from submit-queue.

files task: fix potential nil pointer error
2017-12-15 03:47:04 -08:00
Kubernetes Submit Queue f0303c80dc
Merge pull request #4082 from justinsb/unattended_apt_get
Automatic merge from submit-queue.

apt-get: specify unattended installation
2017-12-15 03:14:37 -08:00
Justin Santa Barbara 743e482660 nodeup: create kubeconfig under admin or root
While the admin account is created on stock debian images, it isn't on
all of them.  Check admin first, then check root, and don't treat it as
an error if neither is found - this is only a convenience.
2017-12-15 01:29:48 -05:00
Justin Santa Barbara 6d166a41dd Refactor protokube hosts file into its own package
So we can bring this in without our gossip layer

This supports an imminent implementation that uses DNS-SD
2017-12-15 01:22:51 -05:00
Justin Santa Barbara 6cedbbf456 Remove nodeup templating
As it is now unused
2017-12-15 01:20:34 -05:00
Justin Santa Barbara 65aea59418 Return apierrors NotFound when object not found 2017-12-15 01:19:54 -05:00
Justin Santa Barbara 78b84d6c2c apt-get: specify unattended installation
Otherwise we risk getting stuck on a prompt
2017-12-15 01:12:37 -05:00
Justin Santa Barbara 060d94e9e8 files task: fix potential nil pointer error
If the user didn't exist, we would panic with a nil pointer error
2017-12-15 01:12:20 -05:00
Justin Santa Barbara 3472b0dc6d protokube: fix logging / logic around cluster-id
Remove superfluous if statement
2017-12-15 01:11:56 -05:00
Justin Santa Barbara 6ef414e040 validation: don't require subnet CIDRs on baremetal
They aren't needed!
2017-12-15 01:10:54 -05:00
Justin Santa Barbara 414b0172f0 protokube: better discovery of local address
Fix up the local IP address discovery logic, to recognize new
en-interfaces, and to better log what it is doing.  Plug it in for
baremetal installations.
2017-12-15 01:10:26 -05:00
Justin Santa Barbara c198d3ed89 assetstore: extract tar files to a temp directory
This ensures that even if we are interrupted mid-expand, we won't leave
the system in an unexpected state.
2017-12-15 00:44:29 -05:00
Rajiv Makhijani 2c42970c24 Bump canal version for kops manifest tweaks 2017-12-14 14:42:37 -08:00
Kubernetes Submit Queue 3a10a8c7cb
Merge pull request #4067 from chrislovecnm/gazelle-updates
Automatic merge from submit-queue.

Gazelle updates

We missed one

/assign @justinsb @KashifSaadat 

- applying 4065 this should drop out b29e1c5bd2
- just review the second commit
2017-12-14 13:25:43 -08:00
Kubernetes Submit Queue 5f5ef35126
Merge pull request #4070 from kintoandar/patch-1
Automatic merge from submit-queue.

Fix minor typo
2017-12-14 11:25:42 -08:00
Kubernetes Submit Queue 210a22458c
Merge pull request #4026 from ihoegen/patch-1
Automatic merge from submit-queue.

Fix node counts

When running `kops validate`, and the cluster size is greater than the minimum configuration, the display message is 
<img width="153" alt="screen shot 2017-12-07 at 1 10 14 pm" src="https://user-images.githubusercontent.com/11003242/33738958-1571943e-db50-11e7-9156-f034c9af7d9c.png">

This PR sets the NodeCount value to the length of the nodes array instead of the configuration.
2017-12-14 10:25:42 -08:00
Kubernetes Submit Queue bea129142a
Merge pull request #4051 from robinpercy/autoscaler-perms
Automatic merge from submit-queue.

Adding DescribeTags to masters

/fixes #2681
2017-12-14 09:25:42 -08:00
Kubernetes Submit Queue a19d90143f
Merge pull request #4062 from justinsb/bump_weave_for_212
Automatic merge from submit-queue.

Bump weave version in bootstrapchannelbuilder

2.1.3 upstream becomes 2.1.3-kops.1, so if we need to make our own
"packaging" changes, we can do 2.1.3-kops.2 etc.
2017-12-14 06:25:41 -08:00
Joel Bastos 58854a3e9c
Fix minor typo 2017-12-14 14:18:14 +00:00
Kubernetes Submit Queue 9487dd4102
Merge pull request #4064 from justinsb/bump_flannel_version_for_3952
Automatic merge from submit-queue.

Bump flannel packaging version
2017-12-14 05:25:42 -08:00
Kubernetes Submit Queue 28965240d3
Merge pull request #3983 from szuecs/add/kube-ingress-aws-controller
Automatic merge from submit-queue.

add kube-ingress-aws-controller + skipper addons

Adds an addon that needs some more requirements, because it has to have the rights to create/update/delete ALBs, find certificates, ..

I hope this is ok to have here a more long page to explain requirements and show some features that are not common in ingress implementations.
2017-12-14 04:25:41 -08:00
Kubernetes Submit Queue 86630a2806
Merge pull request #4045 from tuannvm/2017-12-12-bump-version
Automatic merge from submit-queue.

[Add-on][kube-state-metrics] Bump version

## Why?
- Bump kube-state-metrics version 1.1.0
- Bump addon-resizer version to 1.8.1
- Adjust `addon-resizer` scaling threshold
2017-12-14 03:25:41 -08:00
Kubernetes Submit Queue d533714aa8
Merge pull request #4036 from almariah/feature-api-elb-security-groups
Automatic merge from submit-queue.

Allow additional SGs to be added to API loadbalancer

Allow adding precreated additional security groups to the API loadbalancer using cluster spec:
```yaml
spec:
  api:
    loadBalancer:
      type: Public
      additionalSecurityGroups:
      - sg-exampleid3
      - sg-exampleid4
```

- [x] Adding additionalSecurityGroups cluster spec
- [x] Adding validation for repeated security groups
- [x] Adding validation for API loadbalancer security groups
- [x] Integration test for API loadbalancer and its security groups
- [x] Update API docs and cluster.spec docs
2017-12-14 02:25:40 -08:00
Kubernetes Submit Queue 8f271027a9
Merge pull request #4065 from justinsb/gazelle
Automatic merge from submit-queue.

Update gazelle
2017-12-14 01:25:41 -08:00