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
This commit is contained in:
parent
d2b4a35e75
commit
010955fbef
@ -26,7 +26,7 @@ images:
|
|||||||
bootstrap: quay.io/attcomdev/ceph-daemon:tag-build-master-jewel-ubuntu-16.04
|
bootstrap: quay.io/attcomdev/ceph-daemon:tag-build-master-jewel-ubuntu-16.04
|
||||||
dep_check: docker.io/kolla/ubuntu-source-kubernetes-entrypoint:4.0.0
|
dep_check: docker.io/kolla/ubuntu-source-kubernetes-entrypoint:4.0.0
|
||||||
daemon: quay.io/attcomdev/ceph-daemon:tag-build-master-jewel-ubuntu-16.04
|
daemon: quay.io/attcomdev/ceph-daemon:tag-build-master-jewel-ubuntu-16.04
|
||||||
ceph_config_helper: docker.io/port/ceph-config-helper:v1.6.8
|
ceph_config_helper: docker.io/port/ceph-config-helper:v1.7.5
|
||||||
rbd_provisioner: quay.io/external_storage/rbd-provisioner:v0.1.1
|
rbd_provisioner: quay.io/external_storage/rbd-provisioner:v0.1.1
|
||||||
pull_policy: "IfNotPresent"
|
pull_policy: "IfNotPresent"
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ against your Kubernetes cluster.
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
export KUBE_VERSION=v1.6.8
|
export KUBE_VERSION=v1.7.5
|
||||||
export HELM_VERSION=v2.5.1
|
export HELM_VERSION=v2.5.1
|
||||||
export TMP_DIR=$(mktemp -d)
|
export TMP_DIR=$(mktemp -d)
|
||||||
|
|
||||||
@ -136,11 +136,11 @@ Build
|
|||||||
-----
|
-----
|
||||||
|
|
||||||
Using the Dockerfile defined in tools/kubeadm-aio directory, build the
|
Using the Dockerfile defined in tools/kubeadm-aio directory, build the
|
||||||
'openstackhelm/kubeadm-aio:v1.6.8' image.
|
'openstackhelm/kubeadm-aio:v1.7.5' image.
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
export KUBEADM_IMAGE=openstackhelm/kubeadm-aio:v1.6.8
|
export KUBEADM_IMAGE=openstackhelm/kubeadm-aio:v1.7.5
|
||||||
sudo docker build --pull -t ${KUBEADM_IMAGE} tools/kubeadm-aio
|
sudo docker build --pull -t ${KUBEADM_IMAGE} tools/kubeadm-aio
|
||||||
|
|
||||||
CNI Configuration
|
CNI Configuration
|
||||||
@ -166,7 +166,7 @@ displayed during execution.
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
export KUBE_VERSION=v1.6.8
|
export KUBE_VERSION=v1.7.5
|
||||||
./tools/kubeadm-aio/kubeadm-aio-launcher.sh
|
./tools/kubeadm-aio/kubeadm-aio-launcher.sh
|
||||||
export KUBECONFIG=${HOME}/.kubeadm-aio/admin.conf
|
export KUBECONFIG=${HOME}/.kubeadm-aio/admin.conf
|
||||||
mkdir -p ${HOME}/.kube
|
mkdir -p ${HOME}/.kube
|
||||||
|
@ -29,7 +29,7 @@ comments, please create an `issue
|
|||||||
- Version
|
- Version
|
||||||
- Notes
|
- Notes
|
||||||
* - **Kubernetes**
|
* - **Kubernetes**
|
||||||
- `v1.6.8 <https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md#v165>`_
|
- `v1.7.5 <https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG.md#v175>`_
|
||||||
- `Custom Controller for RDB tools <https://quay.io/repository/attcomdev/kube-controller-manager?tab=tags>`_
|
- `Custom Controller for RDB tools <https://quay.io/repository/attcomdev/kube-controller-manager?tab=tags>`_
|
||||||
* - **Helm**
|
* - **Helm**
|
||||||
- `v2.5.1 <https://github.com/kubernetes/helm/releases/tag/v2.5.1>`_
|
- `v2.5.1 <https://github.com/kubernetes/helm/releases/tag/v2.5.1>`_
|
||||||
@ -67,7 +67,7 @@ should just require a single command on the master node:
|
|||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
admin@kubenode01:~$ kubeadm init --kubernetes-version v1.6.8
|
admin@kubenode01:~$ kubeadm init --kubernetes-version v1.7.5
|
||||||
|
|
||||||
|
|
||||||
If your environment looks like this after all nodes have joined the
|
If your environment looks like this after all nodes have joined the
|
||||||
|
@ -24,7 +24,7 @@ export HOST_OS=${HOST_OS:="${ID}"}
|
|||||||
|
|
||||||
# Set versions of K8s and Helm to use
|
# Set versions of K8s and Helm to use
|
||||||
export HELM_VERSION=${HELM_VERSION:-"v2.5.1"}
|
export HELM_VERSION=${HELM_VERSION:-"v2.5.1"}
|
||||||
export KUBE_VERSION=${KUBE_VERSION:-"v1.6.8"}
|
export KUBE_VERSION=${KUBE_VERSION:-"v1.7.5"}
|
||||||
|
|
||||||
# Set K8s-AIO options
|
# Set K8s-AIO options
|
||||||
export KUBECONFIG=${KUBECONFIG:="${HOME}/.kubeadm-aio/admin.conf"}
|
export KUBECONFIG=${KUBECONFIG:="${HOME}/.kubeadm-aio/admin.conf"}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:16.04
|
||||||
MAINTAINER pete.birley@att.com
|
MAINTAINER pete.birley@att.com
|
||||||
|
|
||||||
ARG KUBE_VERSION=v1.6.8
|
ARG KUBE_VERSION=v1.7.5
|
||||||
|
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& TMP_DIR=$(mktemp --directory) \
|
&& TMP_DIR=$(mktemp --directory) \
|
||||||
|
@ -31,7 +31,7 @@ repo run:
|
|||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
|
|
||||||
export KUBE_VERSION=v1.6.8
|
export KUBE_VERSION=v1.7.5
|
||||||
sudo docker build \
|
sudo docker build \
|
||||||
--build-arg KUBE_VERSION=${KUBE_VERSION} \
|
--build-arg KUBE_VERSION=${KUBE_VERSION} \
|
||||||
-t docker.io/port/ceph-config-helper:${KUBE_VERSION} \
|
-t docker.io/port/ceph-config-helper:${KUBE_VERSION} \
|
||||||
|
@ -2,7 +2,7 @@ FROM ubuntu:16.04
|
|||||||
MAINTAINER pete.birley@att.com
|
MAINTAINER pete.birley@att.com
|
||||||
|
|
||||||
ENV HELM_VERSION=v2.5.1 \
|
ENV HELM_VERSION=v2.5.1 \
|
||||||
KUBE_VERSION=v1.6.8 \
|
KUBE_VERSION=v1.7.5 \
|
||||||
CNI_VERSION=v0.6.0-rc2 \
|
CNI_VERSION=v0.6.0-rc2 \
|
||||||
container="docker" \
|
container="docker" \
|
||||||
DEBIAN_FRONTEND="noninteractive"
|
DEBIAN_FRONTEND="noninteractive"
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
apiVersion: kubeadm.k8s.io/v1alpha1
|
apiVersion: kubeadm.k8s.io/v1alpha1
|
||||||
kind: MasterConfiguration
|
kind: MasterConfiguration
|
||||||
|
kubernetesVersion: v1.7.5
|
||||||
apiServerExtraArgs:
|
apiServerExtraArgs:
|
||||||
runtime-config: "batch/v2alpha1=true"
|
runtime-config: "batch/v2alpha1=true"
|
||||||
|
@ -15,6 +15,9 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
|
echo 'Starting the kubelet'
|
||||||
|
systemctl start kubelet
|
||||||
|
|
||||||
source /etc/kube-role
|
source /etc/kube-role
|
||||||
if [[ "${KUBE_ROLE}" == "master" ]]; then
|
if [[ "${KUBE_ROLE}" == "master" ]]; then
|
||||||
# Source network vars
|
# Source network vars
|
||||||
@ -22,11 +25,9 @@ if [[ "${KUBE_ROLE}" == "master" ]]; then
|
|||||||
|
|
||||||
# Define k8s version
|
# Define k8s version
|
||||||
source /etc/kube-version
|
source /etc/kube-version
|
||||||
if [[ "${KUBE_VERSION}" == "default" ]]; then
|
if ! [[ "${KUBE_VERSION}" == "default" ]]; then
|
||||||
KUBE_VERSION_FLAG=""
|
|
||||||
else
|
|
||||||
KUBE_VERSION_FLAG="--kubernetes-version=${KUBE_VERSION}"
|
|
||||||
echo "We will use K8s ${KUBE_VERSION}"
|
echo "We will use K8s ${KUBE_VERSION}"
|
||||||
|
sed -i "s|^kubernetesVersion: v1.7.5|kubernetesVersion: ${KUBE_VERSION}|g" /etc/kubeadm.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'Setting up K8s'
|
echo 'Setting up K8s'
|
||||||
@ -34,14 +35,14 @@ if [[ "${KUBE_ROLE}" == "master" ]]; then
|
|||||||
if [[ "$KUBE_BIND_DEV" != "autodetect" ]]; then
|
if [[ "$KUBE_BIND_DEV" != "autodetect" ]]; then
|
||||||
KUBE_BIND_IP=$(ip addr list ${KUBE_BIND_DEV} |grep "inet " |cut -d' ' -f6|cut -d/ -f1)
|
KUBE_BIND_IP=$(ip addr list ${KUBE_BIND_DEV} |grep "inet " |cut -d' ' -f6|cut -d/ -f1)
|
||||||
echo 'We are going to bind the K8s API to: ${KUBE_BIND_IP}'
|
echo 'We are going to bind the K8s API to: ${KUBE_BIND_IP}'
|
||||||
kubeadm init ${KUBE_VERSION_FLAG} \
|
kubeadm init \
|
||||||
--skip-preflight-checks \
|
--skip-preflight-checks \
|
||||||
--pod-network-cidr ${CNI_POD_CIDR} \
|
--api-advertise-addresses ${KUBE_BIND_IP} \
|
||||||
--api-advertise-addresses ${KUBE_BIND_IP}
|
--config /etc/kubeadm.conf
|
||||||
else
|
else
|
||||||
kubeadm init ${KUBE_VERSION_FLAG} \
|
kubeadm init \
|
||||||
--skip-preflight-checks \
|
--skip-preflight-checks \
|
||||||
--pod-network-cidr ${CNI_POD_CIDR}
|
--config /etc/kubeadm.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo 'Setting up K8s client'
|
echo 'Setting up K8s client'
|
||||||
|
@ -24,7 +24,6 @@ CGROUP_DRIVER=$(docker info | awk '/^Cgroup Driver:/ { print $NF }')
|
|||||||
if [[ "${KUBELET_CONTAINER}" == "this_one" ]]; then
|
if [[ "${KUBELET_CONTAINER}" == "this_one" ]]; then
|
||||||
exec kubelet-real \
|
exec kubelet-real \
|
||||||
--containerized=true \
|
--containerized=true \
|
||||||
--enable-cri=false \
|
|
||||||
--cgroup-driver=${CGROUP_DRIVER} "${@}"
|
--cgroup-driver=${CGROUP_DRIVER} "${@}"
|
||||||
else
|
else
|
||||||
# Lets remove any old containers
|
# Lets remove any old containers
|
||||||
@ -57,6 +56,5 @@ else
|
|||||||
${KUBELET_CONTAINER} \
|
${KUBELET_CONTAINER} \
|
||||||
kubelet \
|
kubelet \
|
||||||
--containerized=true \
|
--containerized=true \
|
||||||
--enable-cri=false \
|
|
||||||
--cgroup-driver=${CGROUP_DRIVER} "${@}"
|
--cgroup-driver=${CGROUP_DRIVER} "${@}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user