Merge "KubeADM-AIO: Stability changes"
This commit is contained in:
commit
b7f22c35a7
@ -16,5 +16,5 @@ set -ex
|
||||
source ${WORK_DIR}/tools/gate/funcs/kube.sh
|
||||
|
||||
kubeadm_aio_reqs_install
|
||||
kubeadm_aio_build
|
||||
#kubeadm_aio_build
|
||||
kubeadm_aio_launch
|
||||
|
@ -16,7 +16,7 @@ set -ex
|
||||
export HELM_VERSION=${2:-v2.3.0}
|
||||
export KUBE_VERSION=${3:-v1.6.0}
|
||||
export KUBECONFIG=${HOME}/.kubeadm-aio/admin.conf
|
||||
export KUBEADM_IMAGE=openstack-helm/kubeadm-aio:v1.6
|
||||
export KUBEADM_IMAGE=openstackhelm/kubeadm-aio:v1.6
|
||||
|
||||
export WORK_DIR=$(pwd)
|
||||
source ${WORK_DIR}/tools/gate/funcs/helm.sh
|
||||
|
@ -2,6 +2,7 @@ FROM ubuntu:16.04
|
||||
MAINTAINER pete.birley@att.com
|
||||
|
||||
ARG HELM_VERSION=v2.3.0
|
||||
ARG KUBE_VERSION=v1.6.2
|
||||
|
||||
ENV container="docker" \
|
||||
DEBIAN_FRONTEND="noninteractive"
|
||||
@ -30,10 +31,14 @@ RUN set -x \
|
||||
&& dpkg --configure kubeadm \
|
||||
&& apt-get install -yf kubeadm \
|
||||
&& mkdir -p /etc/kubernetes/manifests \
|
||||
# Install kubelet binary
|
||||
&& curl -sSL https://dl.k8s.io/v1.6.2/kubernetes-server-linux-amd64.tar.gz | tar -zxv --strip-components=1 \
|
||||
# Install kubelet & kubeadm binaries:
|
||||
# (portdirect) We do things in this weird way to let us use the deps and systemd
|
||||
# units from the packages in the .deb repo.
|
||||
&& curl -sSL https://dl.k8s.io/${KUBE_VERSION}/kubernetes-server-linux-amd64.tar.gz | tar -zxv --strip-components=1 \
|
||||
&& mv /tmp/server/bin/kubelet /usr/bin/kubelet \
|
||||
&& chmod +x /usr/bin/kubelet \
|
||||
&& mv /tmp/server/bin/kubeadm /usr/bin/kubeadm \
|
||||
&& chmod +x /usr/bin/kubeadm \
|
||||
# Move kubelet binary as we will run containerised
|
||||
&& mv /usr/bin/kubelet /usr/bin/kubelet-real \
|
||||
# Install helm binary
|
||||
|
@ -41,20 +41,24 @@ And clone the OpenStack-Helm repo:
|
||||
git clone https://git.openstack.org/openstack/openstack-helm
|
||||
```
|
||||
|
||||
### Build and deploy the AIO environment
|
||||
### Build the AIO environment (Optional)
|
||||
|
||||
From the root directory of the OpenStack-Helm repo run:
|
||||
A known good image is published to dockerhub on a fairly regular basis, but if
|
||||
you wish to build your own image, from the root directory of the OpenStack-Helm
|
||||
repo run:
|
||||
|
||||
``` bash
|
||||
export KUBEADM_IMAGE=openstack-helm/kubeadm-aio:v1.6
|
||||
export KUBEADM_IMAGE=openstackhelm/kubeadm-aio:v1.6
|
||||
sudo docker build --pull -t ${KUBEADM_IMAGE} tools/kubeadm-aio
|
||||
```
|
||||
|
||||
To launch the environment then run:
|
||||
### Deploy the AIO environment
|
||||
|
||||
To launch the environment run:
|
||||
|
||||
``` bash
|
||||
export KUBEADM_IMAGE=openstack-helm/kubeadm-aio:v1.6
|
||||
export KUBE_VERSION=v1.6.0
|
||||
export KUBEADM_IMAGE=openstackhelm/kubeadm-aio:v1.6
|
||||
export KUBE_VERSION=v1.6.2
|
||||
./tools/kubeadm-aio/kubeadm-aio-launcher.sh
|
||||
export KUBECONFIG=${HOME}/.kubeadm-aio/admin.conf
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user