Commit Graph

3561 Commits

Author SHA1 Message Date
Kubernetes Submit Queue 6589ee9ff1 Merge pull request #3173 from neocortical/patch-1
Automatic merge from submit-queue

Specify initial period in gossip-based cluster name pattern

This is the most trivial change ever, but I actually got bitten by this and had to grep the source code to figure out that the initial period needed to be in the cluster name suffix.
2017-08-10 21:06:45 -07:00
Kubernetes Submit Queue 6483ba6ac7 Merge pull request #3151 from johanneswuerbach/ssl-healthchecks
Automatic merge from submit-queue

Use SSL in ELB API server health check

This switch causes the ELB to perform a SSL handshake and makes the
`I0427 03:57:55.059255       1 logs.go:41] http: TLS handshake error from IP:PORT: EOF`
disappear from the apiserver logs.

Tested manually and everything looks  

Inspiration from https://github.com/kubernetes-incubator/kube-aws/pull/604
2017-08-10 17:30:26 -07:00
Kubernetes Submit Queue 386402e0a6 Merge pull request #3175 from alrs/fix-dropped-err-in-kops-cmd-package
Automatic merge from submit-queue

Fix dropped error in kops cmd package

This fixes a dropped error variable in the kops cmd package.
2017-08-10 16:57:45 -07:00
Kubernetes Submit Queue 4119cc57f6 Merge pull request #3103 from justinsb/update_channel
Automatic merge from submit-queue

Update alpha channel with update image & versions
2017-08-10 16:26:35 -07:00
Lars Lehtonen 5bdd7f2568
Fix dropped error in kops cmd package 2017-08-09 16:29:18 -07:00
Nathan Smith 3e24cef79f Specify initial period in gossip-based cluster name pattern 2017-08-09 14:26:08 -07:00
Kubernetes Submit Queue 3d2bcdf547 Merge pull request #3156 from asifdxtreme/typo
Automatic merge from submit-queue

Fix Typo to improve GoReportCard
2017-08-08 20:22:32 -07:00
asifdxtreme 65e48b553a Update the docs 2017-08-08 11:03:38 +08:00
asifdxtreme 18f6edd850 Fix Typo to improve GoReportCard 2017-08-08 10:48:14 +08:00
Kubernetes Submit Queue 38608bd802 Merge pull request #2777 from MadDogTechnology/master
Automatic merge from submit-queue

Add support for cluster using http forward proxy #2481

Adds support for running a cluster where access to external resources must be done through an http forward proxy.  This adds a new element to the ClusterSpec, `EgressProxy`, and then sets up environment variables where appropriate.  Access to API servers is additionally assumed to be done through the proxy, in particular this is necessary for AWS VPCs with private topology and egress by proxy (no NAT), at least until Amazon implements VPC Endpoints for the APIs.

Additionally, see my notes in #2481


TODOs

- [x] Consider editing files from nodeup rather than cloudup
- [x] Add support for RHEL
    - [x] Validate on RHEL
- [x] ~Add support for CoreOS~ See #3032
- [x] ~Add support for vSphere~ See #3071
- [x] Minimize services effected
- [x] ~Support seperate https_proxy configuration~ See #3069
- [x] ~Remove unvalidated proxy auth support (save for future PR)~ See #3070
- [x] Add Documentation
- [x] Fill in some sensible default exclusions for the user, allow the user to extend this list
- [x] Address PR review comments
- [x] Either require port or handle nil
- [x] ~Do API validation (or file an issue for validation)~ See #3077 
- [x] Add uppercase versions of proxy env vars to cover our bases
- [x] ~File an issue for unit tests~ 😬  See #3072 
- [x] Validate cluster upgrades and updates
- [x] Remove ftp_proxy (nothing uses)
2017-08-07 15:20:15 -07:00
Derek VerLee ffa95b8112 Add support for cluster using http forward proxy 2017-08-07 14:30:42 -04:00
Johannes Würbach 2accc73a72
Use SSL in ELB API server health check
This switch causes the ELB to perform a SSL handshake and makes the
`I0427 03:57:55.059255       1 logs.go:41] http: TLS handshake error from IP:PORT: EOF`
disappear from the apiserver logs.
2017-08-07 13:02:40 +02:00
Kubernetes Submit Queue ca1ebbfc25 Merge pull request #3089 from gambol99/replace_cmd
Automatic merge from submit-queue

Kops Replace Command - create unprovisioned

The current 'kops replace' fails if the resource does not exist, which is annoying if you want to use the feature to drive your CI. This PR adds a --create option to create any resource which does not exist. At the moment we limit this to instanceGroups only. I'd also like to see this command perhaps be renamed to kops apply?

- added a --create command line option to the replace command to create unprovisioned resources
2017-08-06 14:37:11 -07:00
Kubernetes Submit Queue 5d5945cb00 Merge pull request #3114 from gambol99/etcd_tls
Automatic merge from submit-queue

Etcd TLS Options

The current implementation does not put any transport security on the etcd cluster. The PR provides and optional flag to enable TLS the etcd cluster

- cleaned up and fixed any formatting issues on the journey
- added two new certificates (server/client) for etcd peers and a client certificate for kubeapi and others perhaps (perhaps calico?)
- disabled the protokube service for nodes completely is not required; note this was first raised in https://github.com/kubernetes/kops/pull/3091, but figured it would be easier to place in here given the relation
- updated protokube codebase to reflect the changes, removing the master option as its no longer required
- added additional integretion tests for the protokube manifests;
- note, still need to add documentation, but opening the PR to get feedback
- one outstanding issue is the migration from http -> https for preexisting clusters, i'm gonna hit the coreos board to ask for the best options
2017-08-06 14:02:06 -07:00
Rohith f61e1ebe08 Etcd TLS Options
- changed the location of this variable to be in the etcd cluster spec rather the kops cluster spec
- reflected the changes against the models
2017-08-06 20:50:05 +01:00
Rohith 74f59612c7 Fixes
- added the master option back the protokube, updating the nodeup model and protokube code
- removed any comments no related to the PR as suggested
- reverted the ordering of the mutex in the AWSVolumes in protokube
2017-08-06 18:52:38 +01:00
Kubernetes Submit Queue 9f079975be Merge pull request #3142 from prachetasp/psp/canal-tolerations
Automatic merge from submit-queue

Fix for Canal Taints and Tolerations

This PR fixes issues with taints and tolerations for the Canal network type.

There are 2 problems:

1. Canal pods will not schedule onto dedicated instancegroups due to their too-strict tolerations. A similar fix for calico was merged recently #3097 - this is the same fix for Canal instead.
2. When booting a cluster with 1.7.0 we ran into the same issue mentioned in projectcalico/canal#77 and likely experienced in #2856. Specifically one of our dedicated instancegroups and the master nodes had no Taints attached. To mitigate we simply bump the versions of calico/node and calico/cni to match the versions that resolved projectcalico/canal#77.

When using these fixes to boot our k8s 1.7.3 cluster with this branch the Taints showed up and Calico scheduled on our masters and our dedicated IG.

I am not sure if there are associated tests that need to be updated here - still not familiar enough with the kops repo to tell.
2017-08-06 10:40:21 -07:00
Kubernetes Submit Queue 0942ae3783 Merge pull request #3145 from BradErz/fixing-clusterautoscaler-rbac
Automatic merge from submit-queue

Fixing clusterautoscaler rbac

Fixes #3144 

I have tested on my cluster and it can now update the status of the pods. Im not sure if it also needs the permission to `patch` on the `endpoint`

Maybe someone with better RBAC knowlage can pick up on this? @chrislovecnm 

I also gave the file some pretty treatment.. sorry habbit
2017-08-06 10:08:12 -07:00
Rohith a73d255b03 Etcd TLS Options
The current implementation does not put any transport security on the etcd cluster. The PR provides and optional flag to enable TLS the etcd cluster

- cleaned up and fixed any formatting issues on the journey
- added two new certificates (server/client) for etcd peers and a client certificate for kubeapi and others perhaps (perhaps calico?)
- disabled the protokube service for nodes completely is not required; note this was first raised in https://github.com/kubernetes/kops/pull/3091, but figured it would be easier to place in here given the relation
- updated protokube codebase to reflect the changes, removing the master option as its no longer required
- added additional integretion tests for the protokube manifests;
- note, still need to add documentation, but opening the PR to get feedback
- one outstanding issue is the migration from http -> https for preexisting clusters, i'm gonna hit the coreos board to ask for the best options
2017-08-06 17:06:46 +01:00
Prachetas Prabhu 76378da0d0 Bumps version of Canal manifest addon to upgrade Canal on existing clusters 2017-08-06 00:57:20 -05:00
Kubernetes Submit Queue 75c6de3ec4 Merge pull request #3134 from johanneswuerbach/configure-docker-on-coreos
Automatic merge from submit-queue

CoreOS: Ensure docker configuration is loaded
2017-08-05 21:17:29 -07:00
BradErz be2305ff18 Adding pod/status update permissions and adding patch for events 2017-08-05 12:53:52 +01:00
BradErz 938f42ca5a Fixing the order of the manifest 2017-08-05 12:52:01 +01:00
Prachetas Prabhu 8f13944ac3 Bumps calico versions to mitigate taint stripping issue 2017-08-04 21:23:23 -05:00
Prachetas Prabhu 32502ad54f Adds wider tolerations to Canal Daemonset to allow scheduling on nodes with strict taints 2017-08-04 21:23:23 -05:00
Kubernetes Submit Queue ec4c33ed89 Merge pull request #3133 from spiffxp/assignees-to-approvers
Automatic merge from submit-queue

Rename OWNERS assignees: to approvers:

They are effectively the same, assignees is deprecated

ref: kubernetes/test-infra#3851

I broke this into two commits around vendor/ because I'm not sure it's kosher to be editing vendored OWNERS directly. ref: kubernetes/test-infra#3694

ref: https://github.com/kubernetes/gengo/pull/71 for the gengo OWNERS changes if that's the more appropriate route to go
2017-08-04 14:55:06 -07:00
Rohith 3599e64205 - fixing up the flag name from --create to --force to make it align to the kubectl syntax 2017-08-04 20:44:49 +01:00
Rohith 70144d1b88 - updated the generated documentation with the new cli option 2017-08-04 20:44:49 +01:00
Rohith e4a53dd044 Replace Command
The current 'kops replace' fails if the resource does not exist, which is annoying if you want to use the feature to drive your CI. This PR adds a --create option to create any resource which does not exist. At the moment we limit this to instanceGroups only. I'd also like to see this command perhaps be renamed to kops apply?
2017-08-04 20:44:49 +01:00
Kubernetes Submit Queue 10ce978b64 Merge pull request #3040 from mad01/templating
Automatic merge from submit-queue

MVP of templating 

MVP implementation of templating to generate cluster.yaml file: related to #2404 implementation is using the `text/template`

```bash
cat > values.yaml <<EOF
clusterName: eu1
kubernetesVersion: 1.7.1
dnsZone: k8s.example.com
awsRegion: eu-west-1
EOF
```

```bash
cat > cluster.tmpl.yaml <<EOF
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
  labels:
	kops.k8s.io/cluster: {{.clusterName}}.{{.dnsZone}}
  name: nodes
spec:
  image: coreos.com/CoreOS-stable-1409.6.0-hvm
  machineType: m4.large
  maxPrice: "0.5"
  maxSize: 2
  minSize: 15
  role: Node
  rootVolumeSize: 100
  subnets:
  - {{.awsRegion}}a
  - {{.awsRegion}}b
  - {{.awsRegion}}c

EOF
```

running the templating command
```bash
  kops toolbox template \
      --values values.yaml \
      --template cluster.tmpl.yaml \
      --output cluster.yaml
```

output
```bash
apiVersion: kops/v1alpha2
kind: InstanceGroup
metadata:
  labels:
	kops.k8s.io/cluster: eu1.k8s.example.com
  name: nodes
spec:
  image: coreos.com/CoreOS-stable-1409.6.0-hvm
  machineType: m4.large
  maxPrice: "0.5"
  maxSize: 2
  minSize: 15
  role: Node
  rootVolumeSize: 100
  subnets:
  - eu-west-1a
  - eu-west-1b
  - eu-west-1c
```
2017-08-04 09:26:41 -07:00
Kubernetes Submit Queue 76fc1aed3f Merge pull request #3138 from sathiyas/patch-1
Automatic merge from submit-queue

Update aws.md for SSH Key pair generation instructions
2017-08-04 08:54:24 -07:00
Sathiya Shunmugasundaram d92ea22ecd Update aws.md
SSH key pair must be available before creating the cluster, adding the instructions.
2017-08-04 09:48:42 -04:00
Johannes Würbach 47256fed82
CoreOS: Ensure docker configuration is loaded
Previously the configuration has been written after docker has been started and
was actually only applied after a reboot.

Manually reload system and restart docker to ensure the configuration has been
applied.
2017-08-04 11:44:12 +02:00
Kubernetes Submit Queue 09452834eb Merge pull request #3130 from gambol99/feature_gates
Automatic merge from submit-queue

Kube Proxy Feature Gates

- fixing the [kubeproxy feature gates](https://github.com/kubernetes/kops/pull/3078), this should have been a [map](https://github.com/kubernetes/kops/blob/master/pkg/apis/kops/v1alpha2/componentconfig.go#L134) not  an array ... apologizes!! from
2017-08-03 23:46:07 -07:00
Kubernetes Submit Queue f123a95236 Merge pull request #3075 from Globegitter/patch-2
Automatic merge from submit-queue

Add k8s dashbard v1.6.2
2017-08-03 23:16:30 -07:00
Kubernetes Submit Queue 5153ed5cf7 Merge pull request #3116 from gekart/patch-1
Automatic merge from submit-queue

added missing command in documentation

Documentation correction.
2017-08-03 22:42:18 -07:00
Kubernetes Submit Queue b040c11281 Merge pull request #3098 from johanneswuerbach/configure-docker-on-coreos
Automatic merge from submit-queue

Configure docker on CoreOS/ContainerOS

While the installation of docker should be skipped, docker should still be
configured to allow overriding the docker config using kops.

Fixes https://github.com/kubernetes/kops/issues/3057

//cc @aledbf
2017-08-03 22:10:40 -07:00
Kubernetes Submit Queue 29415860e2 Merge pull request #2950 from chrislovecnm/full-spec-warning
Automatic merge from submit-queue

adding warning about --full

This starts work on https://github.com/kubernetes/kops/issues/2290.  Adds a warning to deter users from using YAML generated by --full.
2017-08-03 21:05:02 -07:00
Kubernetes Submit Queue d274b22016 Merge pull request #3067 from erickt/hostname
Automatic merge from submit-queue

Update kube-proxy to handle aws returning multiple hostnames

Amazon's dhcp service supports returning a space separated list of hostnames. This patch makes sure to split the domains first before picking the hostname override.

Closes #3060.
2017-08-03 20:34:49 -07:00
Kubernetes Submit Queue 69d6fc9f6b Merge pull request #3097 from igorcanadi/calico_tolerations
Automatic merge from submit-queue

added wider toleration to calico-node daemonset (#2857)

Calico pod needs to run on all nodes, regardless of their taints. Otherwise the node cannot join the cluster. See #2857 for more discussion. This commit was originally b66b6260e7 by @ca16. It's also similar to the PR that kube-aws recently merged: https://github.com/kubernetes-incubator/kube-aws/pull/687/files.

Would you mind merging this to 1.7 branch too?
2017-08-03 20:02:57 -07:00
Kubernetes Submit Queue 5577fab602 Merge pull request #3087 from blakebarnett/bdb/add_node_docker_config_secret
Automatic merge from submit-queue

Add `kops create secret dockerconfig` feature

This adds a well-known secret name `dockerconfig` which will automatically
be used if present to create `/root/.docker/config.json` on all nodes. This will
allow private registries to be used for kops hooks as well as any k8s images
without the need to define `imagePullSecrets` in every namespace.

closes https://github.com/kubernetes/kops/issues/2505
2017-08-03 19:33:42 -07:00
Aaron Crickenberger 1297328f47 Rename OWNERS assignees: to approvers: (ignoring vendor)
They are effectively the same, assignees is deprecated
2017-08-03 17:03:51 -07:00
Rohith 2057f60def Kube Proxy Feature Gates
- fixing the kubeproxy feature gates, this should have been a map not array (https://github.com/kubernetes/kops/blob/master/pkg/apis/kops/v1alpha2/componentconfig.go#L134)
2017-08-03 20:34:36 +01:00
Kubernetes Submit Queue 0fa00f3653 Merge pull request #3128 from bhack/patch-1
Automatic merge from submit-queue

Sync image version
2017-08-03 09:14:08 -07:00
Kubernetes Submit Queue 26e0c781ea Merge pull request #3078 from gambol99/component_options
Automatic merge from submit-queue

Vetting / Formatting / Cleanup

- fixed any of the vettting / formatting issues that i'm came across on the update
- removed the commented out lines from the componentconfig as it make its increasingly difficult to find what is supported, what is not and the difference between them.
- added SerializeImagePulls, RegisterSchedulable to kubelet (by default they are ignored)
- added FeatureGates to the kube-proxy
- fixed the vetting issue with NodeUpConfig -> Config
- added the aws london regions for cloud provider lookup

Out of interest can someone point me to where these multi-versioned componentconfig are being used?
2017-08-03 08:03:06 -07:00
Kubernetes Submit Queue 0b3bf5f1aa Merge pull request #3074 from Globegitter/heapster-kubernetes-1.7.0
Automatic merge from submit-queue

Updated Heapster for kubernetes 1.7.0
2017-08-03 07:29:18 -07:00
Kubernetes Submit Queue bc47b748f2 Merge pull request #3095 from msvbhat/docs-topology-command-fix
Automatic merge from submit-queue

docs/topology - Fix the rolling-update command

This patch updates the `kops rolling-update` command which should be
run after making changes to the API server topology.

Fixes #3093 

Signed-off-by: M S Vishwanath Bhat <msvbhat@gmail.com>
2017-08-02 23:45:29 -07:00
bhack ddef7f13c5 Sync image version 2017-08-02 19:04:34 -07:00
Grischa Ekart 04ffccf60f added missing command 2017-08-02 16:08:38 +02:00
Johannes Würbach 798d87da32
Configure docker on CoreOS/ContainerOS
While the installation of docker should be skipped, docker should still be
configured to allow overriding the docker config using kops.

Fixes https://github.com/kubernetes/kops/issues/3057
2017-08-02 13:32:33 +02:00