17 Commits

Author SHA1 Message Date
Chulmin Kang
56d4657561 Fix a typo in the comment in kubelet-container
set 'to_this' one --> set to 'this_one'

TrivialFix

Change-Id: Icb6946d36a37c91a87a922320f1388f3c53c6c59
2017-11-20 22:29:48 +09:00
Vlad Naboichenko
ed81234e22 Upgrade kubernetes version
- k8s version = 1.8.2
- change 'kubectl upgrade' to 'replace' since its unavailable
  in new version

Change-Id: If0feabfe678d558e15273bd20b51994a56b9ea6e
2017-11-02 20:19:18 +00:00
Vlad Naboichenko
a168c44949 Modify DockerFile to support multiple k8s versions
- service-node-port-range changed to support extended port range

Change-Id: Ia3d70504ffe1ac93df816b9798e8341dde9b65bb
2017-10-31 18:43:30 +00:00
Chris Wedgwood
3d75724318 apiVersion rbac.authorization.k8s.io/v1alpha1 is no longer valid
rbac.authorization.k8s.io/v1alpha1 is no longer valid in recent
Kuernetes releases (where /v1beta1 and /v1 work).  Use
rbac.authorization.k8s.io/v1beta1 which works on currently supported
releases.

Change-Id: I91ed84f9d3305ca1098e7743999a319c9e47b4a0
2017-10-17 03:14:54 +00:00
Pete Birley
010955fbef Kubernetes: move to Kubernetes v1.7.5 gate
This PS moves to use Kubernetes v1.7.5 as the reference deployment
version.

Change-Id: Ie2060dc5271decf1b9298fc8fc8f23ead6501fbd
2017-09-14 20:34:45 +00:00
Pete Birley
52c549a2d3 KubeADM-AIO: allow customisation of CNI
This PS adds the ability to customise the CNI used by
the AIO KubeADM container.

Change-Id: If531a896e38baeda32c008d9645c34174603c690
2017-08-15 08:12:21 -05:00
Michał Dulko
03543a3d53 Add support for Keystone's fernet tokens
Keystone supports (and that's a default setting since Ocata) using
non-persistent fernet tokens instead of UUID tokens written into the DB.
This setting is in some cases better in terms of performance and
manageability (no more tokens DB table cleanups). OpenStack-Helm should
be able to support it.

General issue with fernet tokens is that keys used to encrypt them need
to be persistent and shared accross the cluster. Moreover "rotate"
operation generates a new key, so key repository will change over time.

This commit implements fernet tokens support by:
* A 'keystone-fernet-keys' secret is created to serve as keys repository.
* New fernet-setup Job will populate secret with initial keys.
* New fernet-rotate CronJob will be run periodically (weekly by default)
  and perform key rotation operation and update the secret.
* Secret is attached to keystone-api pods in /etc/keystone/fernet-tokens
  directory.

Turns out k8s is updating secrets attached to pods automatically, so
because of Keystone's fernet tokens implementation, we don't need to
worry about synchronization of the key repository. Everything should be
fine unless fernet-rotate job will run before all of the pods will
notice the change in the secret. As in real-world scenario you would
rotate your keys no more often than once an hour, this should be totally
fine.

Implements: blueprint keystone-fernet-tokens
Change-Id: Ifc84b8c97e1a85d30eb46260582d9c58220fbf0a
2017-08-02 13:22:05 +02:00
Pete Birley
04e015e49b Zuul: Gate script tidy
This PS cleans up some of the worst offenders in the gate scripts.

Change-Id: If310ae798c9572e8bde4834e5a4af5f97196efea
2017-07-29 23:58:08 -05:00
Pete Birley
8ef5d94674 Refactor Ceph secret generation
This PS refactors the ceph chart and secret generation process.
The updated chart replaces the existing "bootstrap" chart.
Additionally, Ceph manifests and deployment guides were modified
accordingly.

Change-Id: I6f5bb88fc0f40cfee8865d9dab83859d765e7537
Co-Authored-By: Larry Rensing <lr699s@att.com>
2017-06-27 13:42:03 -05:00
Pete Birley
979591af87 KubeADM-AIO: Make init more stable and support multiple PVC backends
This PS makes the init of the KubeADM environment more stable by ensuring
all kube-system pods are up before trying to launch tiller. the NFS PVC
provider is now made optional but enabled by default, so that Ceph (and
other more complex providers) can be supported in future. Finaly the
scripts to bring up k8s/helm are refined to not bring in the clients if
already present with the correct versions on the host.

Change-Id: I4d7ceb6196e8fd5e3350ec99f09fbe6bb5fe01f6
2017-06-14 20:30:51 -05:00
Pete Birley
1ca8efa3a6 KubeADM-AIO: Update Image to support Multinode Operation Natively
This PS also pins the remaining components of the kubelet, moves
the K8s version to 1.6.4 and restores CentOS 7 operation.

Change-Id: Ia32c9e02dbf9451c13addce436f6e36f5a0a622f
2017-06-05 18:09:16 -05:00
Darla Ahlert
78dd37efc2 Update deployment for kubernetes 1.6
In Kubernetes 1.6, the deployment API version was changed
from extensions/v1beta1 to apps/v1beta1

Change-Id: I14ee465de381d25866224b9eae3512f0b42588d3
2017-06-02 08:45:08 -05:00
Pete Birley
d1313cd0a0 KubeADM-AIO: Reinstate Calico CNI
This PS reinstates Calico as the default CNI backend, and deploys from
a local manifest.

Change-Id: Ic92a40f88b05ccbe0426a207af30608fbadfaf82
2017-05-02 02:14:45 -05:00
Pete Birley
8f41cde73a KubeADM-AIO: update NFS image and move to Canal
This PS updates the NFS Image, and moves the CNI to use Canal as
the backend for container networking.

Change-Id: Iade12181be9a427bad7bc5eb2658eefacbff0279
2017-04-26 15:22:33 -05:00
Steve Wilkerson
f5f6dd8a2b Add /var/log/containers mount
The /var/log/containers mount is necessary for use with fluentd.
The kubelet creates symlinks that grab the pod name, namespace,
and container name from this directory on the host, so it needs
to be mounted

Change-Id: Ib1e4769b739d1f85ab22ad66612fb96d4c917b33
2017-04-22 18:29:01 -05:00
Pete Birley
3f894c65ea Kubeadm-aio: Fix echo outputs
This PS fixes the quotes round the echo statments. Though mostly
cosmetic, it is needed for some things that slipped thorough with ! them.

Change-Id: Ie752cc88732192c51e97a2f44f554ad0474f09e5
2017-04-14 19:16:44 -05:00
Pete Birley
00e76c1572 Kubeadm-aio container for dev and gates
This PS brings in a container for setting up a Kubeadm based
AIO environement for development and Gating purposes.

Change-Id: Ice96b03b519a380d4679d701e4bbb97024bb2fb5
2017-04-14 14:27:37 -05:00