Skip to content

Commit

Permalink
Upgrade Kubernetes from 1.19.14 to 1.21.2
Browse files Browse the repository at this point in the history
This upgrades Kubernetes version in airshipctl to v1.21.2

Depends on https://review.opendev.org/c/airship/image-builder/+/812013/

https: //github.com//issues/589
Change-Id: I30ef2543d91f574e73a555bf67ab7ec2764a4411
Signed-off-by: diwakar thyagaraj <dt241s@att.com>
  • Loading branch information
diwrajchitoor authored and snehal1797 committed Nov 1, 2021
1 parent 9f4d0ef commit a384b4e
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ else
GOBIN = $(shell go env GOBIN 2> /dev/null)
endif

# Produce CRDs that work back to Kubernetes 1.16
# Produce CRDs that work back to Kubernetes 1.21.2
CRD_OPTIONS ?= crd:crdVersions=v1
TOOLBINDIR := tools/bin

Expand Down Expand Up @@ -83,7 +83,7 @@ DOCS_DIR ?= docs
# document validation options
UNAME != uname
export KIND_URL ?= https://kind.sigs.k8s.io/dl/v0.8.1/kind-$(UNAME)-amd64
KUBECTL_VERSION ?= v1.18.6
KUBECTL_VERSION ?= v1.21.2
export KUBECTL_URL ?= https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl

.PHONY: depend
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec:
init_images:
image: quay.io/airshipit/ipa-wallaby:latest
qcow_bundle:
image: quay.io/airshipit/qcow-bundle:k8s-1.19-latest-ubuntu_focal
image: quay.io/airshipit/qcow-bundle:k8s-1.21-latest-ubuntu_focal
dnsmasq:
image: quay.io/metal3-io/ironic:capm3-v0.5.0
mariadb:
Expand Down Expand Up @@ -152,9 +152,9 @@ spec:
image_builder:
image_builder:
image_builder:
image: quay.io/airshipit/image-builder:k8s-1.19-latest-ubuntu_focal
image: quay.io/airshipit/image-builder:k8s-1.21-latest-ubuntu_focal

kubernetes: v1.19.14
kubernetes: v1.21.2

image_repositories:
cni:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
type: array
kubernetesVersion:
description: KubernetesVersion is the version of Kubernetes to validate
against (default "1.18.6").
against (default "1.21.2").
type: string
schemaLocation:
description: SchemaLocation is the base URL from which to search for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ spec:
type: array
kubernetesVersion:
description: KubernetesVersion is the version of Kubernetes to
validate against (default "1.18.6").
validate against (default "1.21.2").
type: string
schemaLocation:
description: SchemaLocation is the base URL from which to search
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- sh
- -c
- "cp /qcows/*.qcow2 /qcows/*.qcow2.md5sum /shared/html/images/"
image: "quay.io/airshipit/qcow-bundle:k8s-1.19-latest-ubuntu_focal"
image: "quay.io/airshipit/qcow-bundle:k8s-1.21-latest-ubuntu_focal"
imagePullPolicy: Always
volumeMounts:
- mountPath: "/shared"
Expand Down
2 changes: 1 addition & 1 deletion manifests/function/k8scontrol-capd/controlplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ spec:
nodeRegistration:
criSocket: /var/run/containerd/containerd.sock
kubeletExtraArgs: {eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'}
version: "v1.18.6"
version: "v1.21.2"
2 changes: 1 addition & 1 deletion manifests/function/k8scontrol/controlplane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: cluster-controlplane
spec:
replicas: 1
version: v1.19.14
version: v1.21.2
machineTemplate:
infrastructureRef:
kind: Metal3MachineTemplate
Expand Down
2 changes: 1 addition & 1 deletion manifests/function/workers-capd/workers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
template:
spec:
clusterName: "target-cluster"
version: "v1.18.6"
version: "v1.21.2"
bootstrap:
configRef:
name: "target-cluster-md-0"
Expand Down
2 changes: 1 addition & 1 deletion manifests/function/workers-capm3/machinedeployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
cluster.x-k8s.io/cluster-name: target-cluster
spec:
clusterName: target-cluster
version: v1.19.14
version: v1.21.2
bootstrap:
configRef:
name: worker-1
Expand Down
2 changes: 1 addition & 1 deletion manifests/function/workers-capz/v0.4.8/workers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AzureMachineTemplate
name: target-cluster-md-0
version: v1.18.6
version: v1.21.2
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AzureMachineTemplate
Expand Down
2 changes: 1 addition & 1 deletion tools/deployment/01_install_kubectl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

set -xe

: ${KUBE_VERSION:="v1.19.1"}
: ${KUBE_VERSION:="v1.21.2"}

# Install kubectl
URL="https://storage.googleapis.com"
Expand Down

0 comments on commit a384b4e

Please sign in to comment.