Skip to content

Commit

Permalink
Merge pull request #74 from sighupio/feat/upgrade-2.4.0
Browse files Browse the repository at this point in the history
v2.4.0
  • Loading branch information
sbruzzese902 authored Aug 2, 2024
2 parents 7f1d21d + 39bb49a commit 3fdd230
Show file tree
Hide file tree
Showing 21 changed files with 1,659 additions and 830 deletions.
723 changes: 327 additions & 396 deletions .drone.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
terraform 0.15.4
velero 1.13.0
velero v1.14.0
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</h1>
<!-- markdownlint-enable MD033 -->

![Release](https://img.shields.io/badge/Latest%20Release-v2.3.0-blue)
![Release](https://img.shields.io/badge/Latest%20Release-v2.4.0-blue)
![License](https://img.shields.io/github/license/sighupio/fury-kubernetes-dr?label=License)
[![Slack](https://img.shields.io/badge/slack-@kubernetes/fury-yellow.svg?logo=slack&label=Slack)](https://kubernetes.slack.com/archives/C0154HYTAQH)

Expand Down Expand Up @@ -39,7 +39,7 @@ Kubernetes Fury DR provides the following packages:

| Package | Version | Description |
| ------------------------ | -------- | --------------------------------------------------------------------------------------------------------------- |
| [velero](katalog/velero) | `1.13.0` | Backup and restore, perform disaster recovery, and migrate Kubernetes cluster resources and persistent volumes. |
| [velero](katalog/velero) | `1.14.0` | Backup and restore, perform disaster recovery, and migrate Kubernetes cluster resources and persistent volumes. |

The velero package contains the following additional components:

Expand Down Expand Up @@ -110,15 +110,15 @@ To deploy Velero on AWS:
```yaml
bases:
- name: dr/velero/velero-aws
version: "v2.3.0"
version: "v2.4.0"
- name: dr/velero/velero-node-agent
version: "v2.3.0"
version: "v2.4.0"
- name: dr/velero/velero-schedules
version: "v2.3.0"
version: "v2.4.0"

modules:
- name: dr/aws-velero
version: "v2.3.0"
version: "v2.4.0"
```
> See `furyctl` [documentation][furyctl-repo] for additional details about `Furyfile.yml` format.
Expand Down Expand Up @@ -172,15 +172,15 @@ To deploy Velero on GCP:
```yaml
bases:
- name: dr/velero/velero-gcp
version: "v2.3.0"
version: "v2.4.0"
- name: dr/velero/velero-node-agent
version: "v2.3.0"
version: "v2.4.0"
- name: dr/velero/velero-schedules
version: "v2.3.0"
version: "v2.4.0"
modules:
- name: dr/gcp-velero
version: "v2.3.0"
version: "v2.4.0"
```

> See `furyctl` [documentation][furyctl-repo] for additional details about `Furyfile.yml` format.
Expand Down Expand Up @@ -231,15 +231,15 @@ To deploy Velero on Azure:
```yaml
bases:
- name: dr/velero/velero-azure
version: "v2.3.0"
version: "v2.4.0"
- name: dr/velero/velero-node-agent
version: "v2.3.0"
version: "v2.4.0"
- name: dr/velero/velero-schedules
version: "v2.3.0"
version: "v2.4.0"
modules:
- name: dr/azure-velero
version: "v2.3.0"
version: "v2.4.0"
```

> See `furyctl` [documentation][furyctl-repo] for additional details about `Furyfile.yml` format.
Expand Down Expand Up @@ -290,11 +290,11 @@ To deploy `velero on-prem`:
```yaml
bases:
- name: velero/velero-on-prem
version: "v2.3.0"
version: "v2.4.0"
- name: velero/velero-node-agent
version: "v2.3.0"
version: "v2.4.0"
- name: velero/velero-schedules
version: "v2.3.0"
version: "v2.4.0"
```

> See `furyctl` [documentation][furyctl-repo] for additional details about `Furyfile.yml` format.
Expand Down
1 change: 1 addition & 0 deletions docs/COMPATIBILITY_MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
| v2.1.0 | | | | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | | | |
| v2.2.0 | | | | | | :white_check_mark: | :white_check_mark: | :white_check_mark: | | |
| v2.3.0 | | | | | | | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| v2.4.0 | | | | | | | :warning: | :white_check_mark: | :white_check_mark: | :white_check_mark: |

:white_check_mark: Compatible

Expand Down
46 changes: 46 additions & 0 deletions docs/releases/v2.4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Disaster recovery Core Module Release 2.4.0

Welcome to the latest release of the `DR` module of [`Kubernetes Fury Distribution`](https://github.com/sighupio/fury-distribution) maintained by team SIGHUP.

This latest release upgrades the components in the module to their latest stable release.
It also removes `csi` plugin, because it's already merged into Velero itself.

## Component Images 🚢

| Component | Supported Version | Previous Version |
|-------------------------------------|-----------------------------------------------------------------------------------------------------|------------------|
| `velero` | [`v1.14.0`](https://github.com/vmware-tanzu/velero/releases/tag/v1.14.0) | `1.13.0` |
| `velero-plugin-for-aws` | [`v1.10.0`](https://github.com/vmware-tanzu/velero-plugin-for-aws/releases/tag/v1.10.0) | `1.9.0` |
| `velero-plugin-for-microsoft-azure` | [`v1.10.0`](https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/releases/tag/v1.10.0) | `1.9.0` |
| `velero-plugin-for-gcp` | [`v1.10.0`](https://github.com/vmware-tanzu/velero-plugin-for-gcp/releases/tag/v1.10.0) | `1.9.0` |
| `velero-plugin-for-csi` | `Removed` | `0.7.0` |

> Please refer to the individual release notes to get a detailed information on each release.
## Features 💥

- Update Velero to v1.14.0
- Update plugins
- Add flags `--client-qps` and `--client-burst` to avoid the throttling errors. See [here](https://github.com/vmware-tanzu/velero/issues/3191)

## Update Guide 🦮

### Process

To upgrade this module from v2.3.x to v2.4.0, you need to download this new version and then:

1. Upgrade Velero
```bash
# Upgrade CRDs
kubectl apply -f katalog/velero-base/crds.yaml

# Upgrade Velero
kustomize build katalog/velero/velero-aws | kubectl apply -f -
# Or
kustomize build katalog/velero/velero-gcp | kubectl apply -f -
# Or
kustomize build katalog/velero/velero-azure | kubectl apply -f -
# Or, if the cluster is on-premise remove the minio-setup job first
kubectl delete job -n kube-system minio-setup
kustomize build katalog/velero/velero-on-prem | kubectl apply -f -
```
47 changes: 47 additions & 0 deletions katalog/tests/kind-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright (c) 2020 SIGHUP s.r.l All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
networking:
apiServerAddress: "0.0.0.0"

nodes:
- role: control-plane
kubeadmConfigPatches:
- |
group: kubeadm.k8s.io
version: v1beta1
kind: ClusterConfiguration
patch: |
- op: add
path: /apiServer/certSANs/-
value: docker
- |
kind: ClusterConfiguration
metadata:
name: config
etcd:
local:
extraArgs:
"listen-metrics-urls": "http://0.0.0.0:2378"
apiServer:
extraArgs:
"enable-admission-plugins": "NamespaceLifecycle,LimitRanger,PodNodeSelector,ServiceAccount,DefaultStorageClass,DefaultTolerationSeconds,MutatingAdmissionWebhook,ValidatingAdmissionWebhook,ResourceQuota"
controllerManager:
extraArgs:
"bind-address": "0.0.0.0"
scheduler:
extraArgs:
"bind-address": "0.0.0.0"
- role: worker

containerdConfigPatches:
- |-
[debug]
level = "debug"
[plugins."io.containerd.grpc.v1.cri".registry]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."docker.io"]
endpoint = ["https://mirror.gcr.io", "https://registry-1.docker.io"]
2 changes: 1 addition & 1 deletion katalog/tests/velero/velero-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ load ./../helper
test() {
kubectl get service velero -n kube-system
}
loop_it test 10 10
loop_it test 15 15
[ "$status" -eq 0 ]
}

Expand Down
4 changes: 2 additions & 2 deletions katalog/velero/velero-aws/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Velero AWS

This Velero deployment is ready to be deployed in any AWS cluster as it includes the
[AWS Velero plugin](https://github.com/vmware-tanzu/velero-plugin-for-aws/tree/v1.9.0).
[AWS Velero plugin](https://github.com/vmware-tanzu/velero-plugin-for-aws/tree/v1.10.0).

## Image repository and tag

- Velero AWS Plugin image: `velero/velero-plugin-for-aws:v1.9.0`
- Velero AWS Plugin image: `velero/velero-plugin-for-aws:v1.10.0`
- Velero AWS Plugin repository:
[https://github.com/vmware-tanzu/velero-plugin-for-aws](https://github.com/vmware-tanzu/velero-plugin-for-aws).

Expand Down
2 changes: 1 addition & 1 deletion katalog/velero/velero-aws/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
images:
- name: velero/velero-plugin-for-aws
newName: registry.sighup.io/fury/velero/velero-plugin-for-aws
newTag: v1.9.0
newTag: v1.10.0

patchesStrategicMerge:
- plugin-patch.yaml
Expand Down
4 changes: 2 additions & 2 deletions katalog/velero/velero-azure/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Velero Azure

This Velero deployment is ready to be deployed in any Azure cluster as it includes the
[Azure Velero plugin](https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/tree/v1.9.0).
[Azure Velero plugin](https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure/tree/v1.10.0).

## Image repository and tag

- Velero Azure Plugin image: `velero/velero-plugin-for-microsoft-azure:v1.9.0`
- Velero Azure Plugin image: `velero/velero-plugin-for-microsoft-azure:v1.10.0`
- Velero Azure Plugin repository:
[https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure](https://github.com/vmware-tanzu/velero-plugin-for-microsoft-azure).

Expand Down
2 changes: 1 addition & 1 deletion katalog/velero/velero-azure/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ resources:
images:
- name: velero/velero-plugin-for-microsoft-azure
newName: registry.sighup.io/fury/velero/velero-plugin-for-microsoft-azure
newTag: v1.9.0
newTag: v1.10.0

patchesStrategicMerge:
- plugin-patch.yaml
Expand Down
Loading

0 comments on commit 3fdd230

Please sign in to comment.