Commit Graph

366 Commits (8de8a6d8f2b90bd381cdbd86ffb90ccdc71a8621)

Author SHA1 Message Date
George Kraft f56463bf32 Fix flake8 lint error in kubernetes-master charm 2018-01-18 13:53:13 -06:00
Kubernetes Submit Queue ee43f7c34e
Merge pull request #57246 from juju-solutions/feature/etcd3
Automatic merge from submit-queue (batch tested with PRs 49874, 56919, 57246). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Enable support for etcd3

**What this PR does / why we need it**: With this PR juju deployments of kubernetes can use both etcd2 and 3.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:

**Special notes for your reviewer**: Lets not merge this immediately. Lets wait for next year. 

**Release note**:

```NONE

```
2018-01-10 08:15:46 -08:00
Konstantinos Tsakalozos e3cafd8303 Enable support for etcd3 2018-01-08 14:44:56 +02:00
Rye Terrell 9aa4fc0d3b Add proxy_read_timeout flag to kubeapi_load_balancer charm. 2018-01-05 21:20:31 -06:00
Kubernetes Submit Queue 7fb2d5432d
Merge pull request #57530 from hyperbolic2346/mwilson/nginx-daemonset
Automatic merge from submit-queue (batch tested with PRs 57492, 57530). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Changing ingress from manually scaling rc to a daemon set.

**What this PR does / why we need it**:
Quality of life fix. We used to set an RC to run the nginx ingress and then scale it in the charm as workers were added. Now we just use a daemon set to make sure it is running everywhere. Using application-specific names and roles so multiple applications can have different ingress settings.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #
https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/367

**Special notes for your reviewer**:

**Release note**:

```release-note
CDK nginx ingress is now handled via a daemon set.
```
2018-01-05 08:14:40 -08:00
Mike Wilson 4aef85aab4 Removing duplicate import 2018-01-05 09:41:23 -05:00
Mike Wilson 806759cfc9 Changed return of empty string to raise an exception as it should have been from the beginning. 2018-01-04 17:45:40 -05:00
Tim Hockin e9dd8a68f6 Revert k8s.gcr.io vanity domain
This reverts commit eba5b6092a.

Fixes https://github.com/kubernetes/kubernetes/issues/57526
2017-12-22 14:36:16 -08:00
Mike Wilson 1b814c43ad Changing ingress from manually scaling rc to a daemon set. 2017-12-21 18:31:08 -05:00
Konstantinos Tsakalozos bd8eaa7f18 Even better 2017-12-20 17:25:54 +02:00
Konstantinos Tsakalozos c9688155f6 Much better 2017-12-20 17:14:00 +02:00
Konstantinos Tsakalozos d3ca7a0eb8 reason key should exist 2017-12-20 16:56:18 +02:00
Konstantinos Tsakalozos b2a6eb99c1 Evicted pods should respawn 2017-12-20 16:30:07 +02:00
Kubernetes Submit Queue 4db2245a9f
Merge pull request #57403 from wwwtyro/rye/deprecated-dns-ip-handling
Automatic merge from submit-queue (batch tested with PRs 57400, 57403, 57303). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use old dns-ip mechanism with older cdk-addons.

**What this PR does / why we need it**: Use old dns-ip mechanism with older cdk-addons.

**Release note**:
```release-note
Use old dns-ip mechanism with older cdk-addons.
```
2017-12-19 11:27:35 -08:00
Kubernetes Submit Queue 866d1bed6b
Merge pull request #57400 from juju-solutions/feature/prep-1.9-release
Automatic merge from submit-queue (batch tested with PRs 57400, 57403, 57303). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Pointing juju charms to 1.9

**What this PR does / why we need it**: Point juju charms to 1.9 k8s release

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:

```NONE

```
2017-12-19 11:27:32 -08:00
Rye Terrell d8e3861991 Use old dns-ip mechanism with older cdk-addons. 2017-12-19 07:48:16 -06:00
Konstantinos Tsakalozos f2da078168 Pointing juju charms to 1.9 2017-12-19 14:48:05 +02:00
Konstantinos Tsakalozos f4e8385a3b Minor lint fix 2017-12-19 09:13:28 +02:00
Kubernetes Submit Queue 4c36d487f0
Merge pull request #57337 from wwwtyro/rye/wait-kube-dns
Automatic merge from submit-queue (batch tested with PRs 55751, 57337, 56406, 56864, 57347). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Wait for kubedns to be ready when collecting the cluster IP.

**What this PR does / why we need it**: Wait for kubedns to be ready when collecting the cluster IP.

**Release note**:
```release-note
Wait for kubedns to be ready when collecting the cluster IP.
```
2017-12-18 18:50:40 -08:00
Kubernetes Submit Queue e5abffca6f
Merge pull request #54174 from thockin/gcr-vanity
Automatic merge from submit-queue (batch tested with PRs 54379, 56593, 56685, 54174, 57309). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use k8s.gcr.io vanity domain for container images

Related issue: https://github.com/kubernetes/release/issues/281

```release-note
Use "k8s.gcr.io" for container images rather than "gcr.io/google_containers".  This is just a redirect, for now, so should not impact anyone materially.  

Documentation and tools should all convert to the new name. Users should take note of this in case they see this new name in the system.
```
2017-12-18 14:45:45 -08:00
Tim Hockin eba5b6092a Use k8s.gcr.io vanity domain for container images 2017-12-18 09:18:34 -08:00
Rye Terrell 23c81bb3d4 wait for kubedns to be ready 2017-12-18 09:28:03 -06:00
Konstantinos Tsakalozos adf3c21495 Fix LB lint errors 2017-12-18 10:56:34 +02:00
Kubernetes Submit Queue cab439b20f
Merge pull request #57195 from marcoceppi/s390x-fixes
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Use an s390x default-http-backend

This needs to be refactored to eventually say all non x86 architectures place a -arch() in the image name to support ppc64el, arm, etc.

Most all gcr.io/google_containers have -arch() image names.


**What this PR does / why we need it**:

Adds s390x images for when deploying to z system mainframes for default-http-backend image

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/455

**Special notes for your reviewer**:

**Release note**:

```release-note
NONE
```
2017-12-17 00:54:22 -08:00
Kubernetes Submit Queue 3492467178
Merge pull request #57113 from wwwtyro/rye/optional-kube-dns
Automatic merge from submit-queue (batch tested with PRs 56676, 57050, 54881, 56822, 57113). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

make kube-dns addon optional

**What this PR does / why we need it**: Makes the kube-dns addon optional so that users can deploy their own DNS solution.

**Release note**:
```release-note
Makes the kube-dns addon optional so that users can deploy their own DNS solution.
```
2017-12-16 19:19:49 -08:00
Kubernetes Submit Queue cb127830ff
Merge pull request #56979 from hyperbolic2346/mwilson/apilb-log-rotate
Automatic merge from submit-queue (batch tested with PRs 56858, 57040, 56979, 57051, 57052). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

enabling log rotate for api logs in nginx

**What this PR does / why we need it**:
Prevent the load balancer from filling the disk with logs from the api server
**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #
https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/449
**Special notes for your reviewer**:

**Release note**:

```release-note
Enabled log rotation for load balancer's api logs to prevent running out of disk space.
```
2017-12-16 16:34:44 -08:00
Kubernetes Submit Queue 7a3fa9d58e
Merge pull request #56633 from juju-solutions/bug/restarts
Automatic merge from submit-queue (batch tested with PRs 56337, 56546, 56550, 56633, 56635). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Remove do-restart states

**What this PR does / why we need it**: Simplify juju reactive part of the master.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/448

**Special notes for your reviewer**:

**Release note**:

```NONE```
2017-12-16 01:53:52 -08:00
Kubernetes Submit Queue 4af5dd1bff
Merge pull request #56490 from juju-solutions/bug/upgrade-masters
Automatic merge from submit-queue (batch tested with PRs 56413, 56322, 56490, 56460, 56487). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Fix status messaging when juju masters upgrade

**What this PR does / why we need it**: When upgrading masters we want to not skip the message prompting the admin to trigger an upgrade action.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:


**Special notes for your reviewer**:

**Release note**:

```
NONE
```
2017-12-15 16:43:53 -08:00
Kubernetes Submit Queue 05acd736c1
Merge pull request #56217 from Cynerva/gkk/docker-logins
Automatic merge from submit-queue (batch tested with PRs 56217, 56268, 56263, 56328, 56200). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Add docker-logins config to kubernetes-worker charm

**What this PR does / why we need it**:

This adds a `docker-logins` config option to the kubernetes-worker charm, which allows cluster operators to authenticate against docker registries so kubelet can pull containers from them.

**Release note**:

```release-note
Added docker-logins config to kubernetes-worker charm
```
2017-12-14 23:37:39 -08:00
Marco Ceppi 6592e44d18 Use an s390x default-http-backend
This needs to be refactored to eventually say all non x86 architectures place a -arch() in the image name to support ppc64el, arm, etc.

Most all gcr.io/google_containers have -arch() image names.
2017-12-14 13:28:41 +00:00
Rye Terrell 6559e4dede make kube-dns addon optional 2017-12-12 14:33:38 -06:00
Mike Wilson 57059ea442 apilb template writes a log file to /var/log/nginx.*.log and not into the nginx directory where the log rotation is setup. Adding a log rotation file for these logs. 2017-12-11 12:33:58 -05:00
Konstantinos Tsakalozos 0f591aeabc Fix flake8 error 2017-12-01 16:28:32 +02:00
Konstantinos Tsakalozos 85ac2dc9fa Remove do-restart states 2017-11-30 16:50:40 +02:00
Konstantinos Tsakalozos f0ace95218 Handling the case of an upgrade from a non-rolling master with resource change 2017-11-29 09:56:42 +02:00
Konstantinos Tsakalozos 61d9848438 Improve handling of snap resources 2017-11-28 20:47:19 +02:00
Konstantinos Tsakalozos 1550df99eb The change in channels will be caught config change after the upgrade. 2017-11-28 12:24:40 +02:00
Konstantinos Tsakalozos 280b833f39 Fix master upgrade cornercases 2017-11-27 21:53:22 +02:00
Konstantinos Tsakalozos a6ee55c4a7 Lowecasing the hostname on the known nodes entry 2017-11-22 16:55:39 +02:00
Konstantinos Tsakalozos 99a25fed19 Lowercase hostnames when used as node names in k8s 2017-11-22 09:45:23 +02:00
George Kraft ca9076cf0f Add docker-logins config to kubernetes-worker 2017-11-20 12:52:34 -06:00
Mike Wilson c8f6eaccba Master now supports delayed upgrades. It will wait until specifically told to upgrade with an action unless the configuration option require-manual-upgrade is false. 2017-11-18 01:04:13 -05:00
George Kraft 9036d07cb8 Add extra-args configs to kubernetes-worker charm 2017-11-08 12:49:37 -06:00
George Kraft 18a42bee37 Add extra-args configs for scheduler and controller-manager 2017-11-06 15:56:43 -06:00
Konstantinos Tsakalozos dce7a87d26 Removing flush_auth_for_departed 2017-11-03 23:24:57 +02:00
Konstantinos Tsakalozos b134ce7621 New master takes over 2017-11-03 20:47:43 +02:00
Mike Wilson 21c8253dfe Changing the way we clear the certificate written flag to use a helper function in the tls layer. 2017-11-01 17:53:29 -04:00
Mike Wilson b5b53bd273 Fixing indent 2017-11-01 13:24:55 -04:00
Mike Wilson b77b2b91c7 Merge branch 'master' into lb 2017-11-01 12:00:28 -04:00
Mike Wilson b25805f01c Adding extra_sans option to load balancer to allow custom SAN entries on the certificate
Adding support for restarting nginx on the load balancer
Added better support for knowing when certificates are written. This helps the master restart the apiserver appropriately.
2017-11-01 11:56:58 -04:00