Skip to content

Commit 3bcd031

Browse files
authored
Merge pull request #869 from Mirantis/ivan4th/k8s-1.13
Update for k8s 1.13
2 parents 3db338e + 4e5d241 commit 3bcd031

File tree

10 files changed

+28
-28
lines changed

10 files changed

+28
-28
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_11 ]]; then
173-
export KUBE_VERSION=1.11
172+
elif [[ ${CIRCLE_JOB} = e2e_1_12 ]]; then
173+
export KUBE_VERSION=1.12
174174
fi
175175
# APISERVER_PORT is set explicitly to avoid dynamic allocation
176176
# of the port by kdc
@@ -391,7 +391,7 @@ jobs:
391391
e2e_multi_cni:
392392
<<: *e2e
393393

394-
e2e_1_11:
394+
e2e_1_12:
395395
<<: *e2e
396396

397397
push_branch:
@@ -526,7 +526,7 @@ workflows:
526526
only: /^master$|^.*-net$/
527527
tags:
528528
only: /^v[0-9].*/
529-
- e2e_1_11:
529+
- e2e_1_12:
530530
requires:
531531
- build
532532
filters:
@@ -548,7 +548,7 @@ workflows:
548548
- e2e_flannel
549549
- e2e_weave
550550
- e2e_multi_cni
551-
- e2e_1_11
551+
- e2e_1_12
552552
- integration
553553
filters:
554554
branches:

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.12.sh clean` when you no longer need it.
76+
You can remove the test cluster with `./dind-cluster-v1.13.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.12.sh}"
7+
DIND_SCRIPT="${DIND_SCRIPT:-$HOME/dind-cluster-v1.13.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.12.sh split-dump
44+
curl -sSL "${url}" | gunzip | ~/dind-cluster-v1.13.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -o nounset
55
set -o pipefail
66
set -o errtrace
77

8-
KUBE_VERSION="${KUBE_VERSION:-1.12}"
8+
KUBE_VERSION="${KUBE_VERSION:-1.13}"
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:-}"

docs/design-proposals/fast-persistent-rootfs.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Right now, the persistent rootfs for VMs is initialized by the means
44
of `qemu-img convert` which converts a QCOW2 image to raw one and
55
writes the result over a block device mapped on the host. It's
66
possible to overcome the problem by utilizing the new persistent
7-
volume snapshotting feature in Kubernetes 1.12. It's also possible to
7+
volume snapshotting feature in Kubernetes 1.13. It's also possible to
88
implement a solution for VMs which use local libvirt volume as their
99
root filesystem. In both cases, we'll need to add a CRD and a
1010
controller for managing persistent root filesystems.
@@ -113,7 +113,7 @@ actions on libvirt volume objects.
113113

114114
## Using persistent volume snapshots
115115

116-
Kubernetes v1.12 adds support for
116+
Kubernetes v1.13 adds support for
117117
[persistent volume snapshots](https://kubernetes.io/blog/2018/10/09/introducing-volume-snapshot-alpha-for-kubernetes/)
118118
for CSI, which is supported by Ceph CSI driver among others. We can
119119
keep a pool of snapshots that correspond to different images. After
@@ -154,7 +154,7 @@ VirtletVMIdentitySet yaml and the name of the pod).
154154

155155
## Appendix A. Experimenting with Ceph CSI and external-snapshotter
156156

157-
For this experiment, kubeadm-dind-cluster with k8s 1.12 was used.
157+
For this experiment, kubeadm-dind-cluster with k8s 1.13 was used.
158158
The following settings were applied:
159159
```console
160160
$ export FEATURE_GATES="BlockVolume=true,CSIBlockVolume=true,VolumeSnapshotDataSource=true"

docs/docs/101/workshop-setup.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ In your shell clone the Virtlet repository and download `virtletctl` binary:
77
git clone https://github.com/Mirantis/virtlet.git
88
chmod 600 virtlet/examples/vmkey
99

10-
wget https://github.com/Mirantis/virtlet/releases/download/v1.4.1/virtletctl
10+
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.12.3/bin/linux/amd64/kubectl
13+
wget https://storage.googleapis.com/kubernetes-release/release/v1.13.3/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.12 (`dind-cluster-v1.12.sh`).
16+
script for Kubernetes version 1.13 (`dind-cluster-v1.13.sh`).
1717

1818
You can get the cluster startup script like this:
1919
```
20-
$ wget -O ~/dind-cluster-v1.12.sh https://github.com/kubernetes-sigs/kubeadm-dind-cluster/releases/download/v0.1.0/dind-cluster-v1.12.sh
21-
$ chmod +x ~/dind-cluster-v1.12.sh
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
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.12.sh up
37+
$ ~/dind-cluster-v1.13.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.12.sh up
53+
$ ~/dind-cluster-v1.13.sh up
5454
5555
$ # start Virtlet daemonset again
5656
$ build/cmd.sh start-dind

docs/docs/reference/vm-pod.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ 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
263263
NAME STATUS ROLES AGE VERSION
264-
k8s-0 Ready master 69m v1.12.2
265-
k8s-1 Ready <none> 69m v1.12.2
266-
k8s-2 Ready <none> 69m v1.12.2
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
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.12 (you're not required to download it to your home directory).
7+
with Kubernetes version 1.13 (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.12.sh \
11-
https://github.com/kubernetes-sigs/kubeadm-dind-cluster/releases/download/v0.1.0/dind-cluster-v1.12.sh
12-
chmod +x ~/dind-cluster-v1.12.sh
13-
~/dind-cluster-v1.12.sh up
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
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.12.sh up
90+
./dind-cluster-v1.13.sh up
9191
```
9292

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

0 commit comments

Comments
 (0)