Skip to content

Commit

Permalink
Merge pull request #587 from briandowns/upgrade_kubernetes_to_1.18.13
Browse files Browse the repository at this point in the history
update code and docs to use and reference v1.18.13 respectively
  • Loading branch information
briandowns authored Dec 11, 2020
2 parents 4f49066 + f55599d commit 3ff7cff
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ RUN echo ${CACHEBUST}>/dev/null
RUN CHART_VERSION="v3.13.3" CHART_FILE=/charts/rke2-canal.yaml CHART_BOOTSTRAP=true /charts/build-chart.sh
RUN CHART_VERSION="1.10.101" CHART_FILE=/charts/rke2-coredns.yaml CHART_BOOTSTRAP=true /charts/build-chart.sh
RUN CHART_VERSION="1.36.300" CHART_FILE=/charts/rke2-ingress-nginx.yaml CHART_BOOTSTRAP=false /charts/build-chart.sh
RUN CHART_VERSION="v1.18.12" CHART_FILE=/charts/rke2-kube-proxy.yaml CHART_BOOTSTRAP=true /charts/build-chart.sh
RUN CHART_VERSION="v1.18.13" CHART_FILE=/charts/rke2-kube-proxy.yaml CHART_BOOTSTRAP=true /charts/build-chart.sh
RUN CHART_VERSION="2.11.100" CHART_FILE=/charts/rke2-metrics-server.yaml CHART_BOOTSTRAP=false /charts/build-chart.sh
RUN rm -vf /charts/*.sh /charts/*.md

# rke-runtime image
# This image includes any host level programs that we might need. All binaries
# must be placed in bin/ of the file image and subdirectories of bin/ will be flattened during installation.
# This means bin/foo/bar will become bin/bar when rke2 installs this to the host
FROM rancher/k3s:v1.18.12-k3s1 AS k3s
FROM rancher/k3s:v1.18.13-k3s1 AS k3s
FROM rancher/hardened-containerd:v1.3.9-k3s1 AS containerd
FROM rancher/hardened-crictl:v1.18.0 AS crictl
FROM rancher/hardened-runc:v1.0.0-rc92 AS runc
Expand Down
2 changes: 1 addition & 1 deletion channels.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
channels:
- name: stable
latest: v1.18.12+rke2r1
latest: v1.18.13+rke2r1
- name: latest
latestRegexp: .*
excludeRegexp: ^[^+]+-
Expand Down
4 changes: 2 additions & 2 deletions contrib/custom-image-kubelet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The remaining RKE2 components include:
Requirements
----

1. RKE2 v1.18.12-beta1+rke2r2 or newer (with image/kubelet override support)
1. RKE2 v1.18.13+rke2r1 or newer (with image/kubelet override support)
1. Python 3
1. Access to AWS ECR (either via AWS CLI IAM keys, or EC2 instance role)
*This is only necessary if the replacement RKE2 images are stored in ECR*
Expand All @@ -35,7 +35,7 @@ Installing
On an Ubuntu host:

```bash
curl -sfL https://get.rke2.io | INSTALL_RKE2_VERSION=v1.18.12-beta1+rke2r2 sh -
curl -sfL https://get.rke2.io | INSTALL_RKE2_VERSION=v1.18.13+rke2r1 sh -

sudo apt update
sudo apt install -y python3-venv python3-wheel python3-pip
Expand Down
8 changes: 4 additions & 4 deletions developer-docs/upgrading_kubernetes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Create a new release asset for in the [rke2-charts](github.com/rancher/rke2-char

The following files have references that will need to be updated in the respective locations. Replace the found version with the desired version.

* Dockerfile: `RUN CHART_VERSION="v1.18.10" CHART_FILE=/charts/rke2-kube-proxy.yaml`
* Dockerfile: `FROM rancher/k3s:v1.18.10-k3s1 AS k3s`
* images.go: `KubernetesVersion = "v1.18.10"`
* version.sh: `KUBERNETES_VERSION=${KUBERNETES_VERSION:-v1.18.10}`
* Dockerfile: `RUN CHART_VERSION="v1.18.13" CHART_FILE=/charts/rke2-kube-proxy.yaml`
* Dockerfile: `FROM rancher/k3s:v1.18.13-k3s1 AS k3s`
* images.go: `KubernetesVersion = "v1.18.13"`
* version.sh: `KUBERNETES_VERSION=${KUBERNETES_VERSION:-v1.18.13}`
4 changes: 2 additions & 2 deletions docs/upgrade/automated_upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ spec:
# force: true
upgrade:
image: rancher/rke2-upgrade
version: v1.18.9+rke2r1
version: v1.18.13+rke2r1
---
# Agent plan
apiVersion: upgrade.cattle.io/v1
Expand Down Expand Up @@ -85,7 +85,7 @@ spec:
force: true
upgrade:
image: rancher/rke2-upgrade
version: v1.18.9+rke2r1
version: v1.18.13+rke2r1
```

Expand Down
2 changes: 1 addition & 1 deletion pkg/images/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const (
)

var (
KubernetesVersion = "v1.18.12" // make sure this matches what is in the scripts/version.sh script
KubernetesVersion = "v1.18.13" // make sure this matches what is in the scripts/version.sh script
PauseVersion = "3.2" // make sure this matches what is in the scripts/build-images script
EtcdVersion = "v3.4.13-k3s1" // make sure this matches what is in the scripts/build-images script
RuntimeImageName = "rke2-runtime"
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ REVISION=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code;
PLATFORM=${GOOS}-${GOARCH}
RELEASE=${PROG}.${PLATFORM}
# hardcode k8s version unless its set specifically
KUBERNETES_VERSION=${KUBERNETES_VERSION:-v1.18.12}
KUBERNETES_VERSION=${KUBERNETES_VERSION:-v1.18.13}

if [ -d .git ]; then
if [ -z "$GIT_TAG" ]; then
Expand Down

0 comments on commit 3ff7cff

Please sign in to comment.