Skip to content

Commit 6095268

Browse files
authored
Merge pull request #880 from Mirantis/ivan4th/k8s-1.14
Update for Kubernetes 1.14
2 parents 0b41dd4 + 49e3643 commit 6095268

File tree

9 files changed

+40
-37
lines changed

9 files changed

+40
-37
lines changed

.circleci/config.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ e2e: &e2e
169169
elif [[ ${CIRCLE_JOB} = e2e_multi_cni ]]; then
170170
export MULTI_CNI=1
171171
echo >&2 "*** Using multiple CNIs (flannel + calico)"
172-
elif [[ ${CIRCLE_JOB} = e2e_1_12 ]]; then
173-
export KUBE_VERSION=1.12
172+
elif [[ ${CIRCLE_JOB} = e2e_1_13 ]]; then
173+
export KUBE_VERSION=1.13
174174
fi
175175
# APISERVER_PORT is set explicitly to avoid dynamic allocation
176176
# of the port by kdc
@@ -399,7 +399,7 @@ jobs:
399399
e2e_multi_cni:
400400
<<: *e2e
401401

402-
e2e_1_12:
402+
e2e_1_13:
403403
<<: *e2e
404404

405405
e2e_debian:
@@ -538,7 +538,7 @@ workflows:
538538
# only: /^master$|^.*-net$|^.*-ext-e2e$/
539539
# tags:
540540
# only: /^v[0-9].*/
541-
- e2e_1_12:
541+
- e2e_1_13:
542542
requires:
543543
- build
544544
filters:
@@ -569,7 +569,7 @@ workflows:
569569
- e2e_weave
570570
# XXX: temporarily disabled, to be fixed
571571
# - e2e_multi_cni
572-
- e2e_1_12
572+
- e2e_1_13
573573
- e2e_debian
574574
- integration
575575
filters:

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The demo script will check for KVM support on the host and will make Virtlet use
7373

7474
The demo is based on [kubeadm-dind-cluster](https://github.com/kubernetes-sigs/kubeadm-dind-cluster) project. **Docker btrfs storage driver is currently unsupported.** Please refer to `kubeadm-dind-cluster` documentation for more info.
7575

76-
You can remove the test cluster with `./dind-cluster-v1.13.sh clean` when you no longer need it.
76+
You can remove the test cluster with `./dind-cluster-v1.14.sh clean` when you no longer need it.
7777

7878
## External projects using Virtlet
7979
There are some external projects using Virtlet already.

build/circle-dump.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -o nounset
44
set -o pipefail
55
set -o errtrace
66

7-
DIND_SCRIPT="${DIND_SCRIPT:-$HOME/dind-cluster-v1.13.sh}"
7+
DIND_SCRIPT="${DIND_SCRIPT:-$HOME/dind-cluster-v1.14.sh}"
88
circle_token_file="$HOME/.circle-token"
99

1010
job_num="${1:-}"
@@ -41,7 +41,7 @@ cd virtlet-circle-dump
4141
url="$(curl -sSL -u "${CIRCLE_TOKEN}:" "${base_url}/${job_num}/artifacts" |
4242
jq -r '.[]|select(.path=="tmp/cluster_state/kdc-dump.gz")|.url')"
4343
echo >&2 "Getting cluster dump from ${url}"
44-
curl -sSL "${url}" | gunzip | ~/dind-cluster-v1.13.sh split-dump
44+
curl -sSL "${url}" | gunzip | ~/dind-cluster-v1.14.sh split-dump
4545

4646
url="$(curl -sSL -u "${CIRCLE_TOKEN}:" "${base_url}/${job_num}/artifacts" |
4747
jq -r '.[]|select(.path=="tmp/cluster_state/virtlet-dump.json.gz")|.url')"

deploy/demo.sh

+16-13
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ set -o nounset
55
set -o pipefail
66
set -o errtrace
77

8-
KUBE_VERSION="${KUBE_VERSION:-1.13}"
8+
KUBE_VERSION="${KUBE_VERSION:-1.14}"
99
CRIPROXY_DEB_URL="${CRIPROXY_DEB_URL:-https://github.com/Mirantis/criproxy/releases/download/v0.14.0/criproxy-nodeps_0.14.0_amd64.deb}"
1010
NONINTERACTIVE="${NONINTERACTIVE:-}"
1111
NO_VM_CONSOLE="${NO_VM_CONSOLE:-}"
1212
INJECT_LOCAL_IMAGE="${INJECT_LOCAL_IMAGE:-}"
13-
dind_script="dind-cluster-v${KUBE_VERSION}.sh"
13+
KDC_VERSION="${KDC_VERSION:-v0.2.0}"
14+
KDC_BASE_LOCATION="${KDC_BASE_LOCATION:-https://github.com/kubernetes-sigs/kubeadm-dind-cluster/releases/download}"
15+
kdc_script="dind-cluster-v${KUBE_VERSION}.sh"
16+
kdc_url="${KDC_BASE_LOCATION}/${KDC_VERSION}/${kdc_script}"
1417
kubectl="${HOME}/.kubeadm-dind-cluster/kubectl"
1518
BASE_LOCATION="${BASE_LOCATION:-https://raw.githubusercontent.com/Mirantis/virtlet/master/}"
1619
RELEASE_LOCATION="${RELEASE_LOCATION:-https://github.com/Mirantis/virtlet/releases/download/}"
@@ -98,24 +101,24 @@ function demo::ask-user {
98101

99102
function demo::get-dind-cluster {
100103
download="true"
101-
if [[ -f ${dind_script} ]]; then
102-
demo::step "Will update ${dind_script} script to the latest version"
104+
if [[ -f ${kdc_script} ]]; then
105+
demo::step "Will update ${kdc_script} script to the latest version"
103106
if [[ ! ${NONINTERACTIVE} ]]; then
104-
demo::ask-user "Do you want to redownload ${dind_script} ?" download
107+
demo::ask-user "Do you want to redownload ${kdc_script} ?" download
105108
if [[ ${download} = "true" ]]; then
106-
rm "${dind_script}"
109+
rm "${kdc_script}"
107110
fi
108111
else
109-
demo::step "Will now clear existing ${dind_script}"
110-
rm "${dind_script}"
112+
demo::step "Will now clear existing ${kdc_script}"
113+
rm "${kdc_script}"
111114
fi
112115
fi
113116

114117
if [[ ${download} = "true" ]]; then
115-
demo::step "Will download ${dind_script} into current directory"
118+
demo::step "Will download ${kdc_script} into current directory"
116119
demo::ask-before-continuing
117-
wget "https://raw.githubusercontent.com/kubernetes-sigs/kubeadm-dind-cluster/master/fixed/${dind_script}"
118-
chmod +x "${dind_script}"
120+
wget -O "${kdc_script}" "${kdc_url}"
121+
chmod +x "${kdc_script}"
119122
fi
120123
}
121124

@@ -135,8 +138,8 @@ function demo::start-dind-cluster {
135138
fi
136139
echo "To clean up the cluster, use './dind-cluster-v${KUBE_VERSION}.sh clean'" >&2
137140
demo::ask-before-continuing
138-
"./${dind_script}" clean
139-
"./${dind_script}" up
141+
"./${kdc_script}" clean
142+
"./${kdc_script}" up
140143
}
141144

142145
function demo::jq-patch {

docs/docs/101/workshop-setup.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ chmod 600 virtlet/examples/vmkey
1010
wget https://github.com/Mirantis/virtlet/releases/download/v1.4.4/virtletctl
1111
chmod +x virtletctl
1212

13-
wget https://storage.googleapis.com/kubernetes-release/release/v1.13.3/bin/linux/amd64/kubectl
13+
wget https://storage.googleapis.com/kubernetes-release/release/v1.14.1/bin/linux/amd64/kubectl
1414
chmod +x kubectl
1515

1616
mkdir -p ~/bin

docs/docs/dev/setup.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ You'll need the following to run the local environment:
1313
be enough, but please follow the Docker documentation for your Linux
1414
distribution),
1515
* [kubeadm-dind-cluster](https://github.com/kubernetes-sigs/kubeadm-dind-cluster/)
16-
script for Kubernetes version 1.13 (`dind-cluster-v1.13.sh`).
16+
script for Kubernetes version 1.14 (`dind-cluster-v1.14.sh`).
1717

1818
You can get the cluster startup script like this:
1919
```
20-
$ wget -O ~/dind-cluster-v1.13.sh https://github.com/kubernetes-sigs/kubeadm-dind-cluster/releases/download/v0.1.0/dind-cluster-v1.13.sh
21-
$ chmod +x ~/dind-cluster-v1.13.sh
20+
$ wget -O ~/dind-cluster-v1.14.sh https://github.com/kubernetes-sigs/kubeadm-dind-cluster/releases/download/v0.1.0/dind-cluster-v1.14.sh
21+
$ chmod +x ~/dind-cluster-v1.14.sh
2222
```
2323

2424
## Running the local environment
@@ -34,7 +34,7 @@ $ # build Virtlet binaries & the image
3434
$ build/cmd.sh build
3535
3636
$ # start DIND cluster
37-
$ ~/dind-cluster-v1.13.sh up
37+
$ ~/dind-cluster-v1.14.sh up
3838
3939
$ # copy binaries to kube-node-1
4040
$ build/cmd.sh copy-dind
@@ -50,7 +50,7 @@ $ build/cmd.sh e2e -test.v -ginkgo.focus="Should have default route"
5050
5151
$ # Restart the DIND cluster. Binaries from copy-dind are preserved
5252
$ # (you may copy newer ones with another copy-dind command)
53-
$ ~/dind-cluster-v1.13.sh up
53+
$ ~/dind-cluster-v1.14.sh up
5454
5555
$ # start Virtlet daemonset again
5656
$ build/cmd.sh start-dind

docs/docs/reference/vm-pod.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,8 @@ kube-system weave-net-88jv4 2/2 Running 1 69m
260260
kube-system weave-net-kz698 2/2 Running 0 69m
261261
kube-system weave-net-rbnmf 2/2 Running 1 69m
262262
root@k8s-0:~# kubectl get nodes
263-
NAME STATUS ROLES AGE VERSION
264-
k8s-0 Ready master 69m v1.13.3
265-
k8s-1 Ready <none> 69m v1.13.3
266-
k8s-2 Ready <none> 69m v1.13.3
263+
NAME STATUS ROLES AGE VERSION
264+
kube-master Ready master 29m v1.14.1
265+
kube-node-1 Ready <none> 28m v1.14.1
266+
kube-node-2 Ready <none> 28m v1.14.1
267267
```

docs/docs/user-guide/virtlet-on-kdc.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ The steps described here are performed automatically by
44
[demo.sh](https://github.com/Mirantis/virtlet/blob/master/deploy/demo.sh) script.
55

66
1. Start [kubeadm-dind-cluster](https://github.com/kubernetes-sigs/kubeadm-dind-cluster)
7-
with Kubernetes version 1.13 (you're not required to download it to your home directory).
7+
with Kubernetes version 1.14 (you're not required to download it to your home directory).
88
The cluster script stores appropriate kubectl version in `~/.kubeadm-dind-cluster`.
99

10-
wget -O ~/dind-cluster-v1.13.sh \
11-
https://github.com/kubernetes-sigs/kubeadm-dind-cluster/releases/download/v0.1.0/dind-cluster-v1.13.sh
12-
chmod +x ~/dind-cluster-v1.13.sh
13-
~/dind-cluster-v1.13.sh up
10+
wget -O ~/dind-cluster-v1.14.sh \
11+
https://github.com/kubernetes-sigs/kubeadm-dind-cluster/releases/download/v0.2.0/dind-cluster-v1.14.sh
12+
chmod +x ~/dind-cluster-v1.14.sh
13+
~/dind-cluster-v1.14.sh up
1414
export PATH="$HOME/.kubeadm-dind-cluster:$PATH"
1515

1616
1. Label a node to accept Virtlet pod:

examples/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ for testing, you can use this command to start the cluster with
8787
FEATURE_GATES="BlockVolume=true" \
8888
KUBELET_FEATURE_GATES="BlockVolume=true" \
8989
ENABLE_CEPH=1 \
90-
./dind-cluster-v1.13.sh up
90+
./dind-cluster-v1.14.sh up
9191
```
9292

9393
[ubuntu-vm-local-block-pv.yaml](ubuntu-vm-local-block-pv.yaml)

0 commit comments

Comments
 (0)