forked from kubernetes-retired/kube-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request kubernetes-retired#4 in RUN/kube-aws from feature/…
…update-to-latest-kube-aws-master to hcom-flavour * commit '175217133f75b3c251536bc0d51ccafd2b1a5de4': Fix the dead-lock while bootstrapping etcd cluster when wait signal is enabled. Resolves kubernetes-retired#525 Fix elasticFileSystemId to be propagated to node pools Resolves kubernetes-retired#487 'Cluster-dump' feature to export Kubernetes Resources to S3 Follow-up for the multi API endpoints support This fixes the issue which prevented a k8s cluster from being properly configured when multiple API endpoints are defined in cluster.yaml. Fix incorrect validations on apiEndpoints Ref kubernetes-retired#520 (comment) Wait until kube-system becomes ready Resolves kubernetes-retired#467
- Loading branch information
Showing
17 changed files
with
199 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Backup | ||
|
||
A feature to backup of Kubernetes resources can be enabled by specifying: | ||
``` | ||
kubeResourcesAutosave: | ||
enabled: true | ||
``` | ||
in cluster.yaml. | ||
|
||
When active, a kube-system Deployment schedules a single pod to take and upload snapshots of all Kubernetes resources to S3. | ||
- Backups are taken and exported when the pod (re)starts and then continues to backup in 24 hours intervals. | ||
- Each snapshot resides in a timestamped folder | ||
- The resources have several fields omitted such as status , uid, etc ... this is to allow the possibility of restoring resources inside a fresh cluster | ||
- Resources that reside within namespaces are grouped inside folders labeled with the namespace name | ||
- Resources outside namespaces are grouped at the same directory level as the namespace folders | ||
- The backups are exported to the S3 URI: ```s3://<your-bucket-name>/.../<your-cluster-name>/backup/*``` | ||
|
||
### Example | ||
|
||
A Kubernetes environment has the namespaces: | ||
- kube-system | ||
- alpha | ||
- beta | ||
|
||
A backup is created on 04/05/2017 at 13:48:33. | ||
|
||
The backup is exported to S3 to the path: | ||
``` | ||
s3://my-bucket-name/my-cluster-name/backup/17-05-04_13-48-33 | ||
``` | ||
Inside the ```17-05-04_13-48-33``` directory are be several .json files of the Kubernetes resources that reside outside namespaces, in addition to a number of folders with names matching the namespaces: | ||
``` | ||
17-05-04_13-48-33/kube-system | ||
17-05-04_13-48-33/alpha | ||
17-05-04_13-48-33/beta | ||
17-05-04_13-48-33/persistentvolumes.json | ||
17-05-04_13-48-33/storageclasses.json | ||
... | ||
... | ||
... | ||
``` | ||
Inside each namespace folder are be several .json files of the Kubernetes resources that reside inside the respective namespace | ||
``` | ||
17-05-04_13-48-33/kube-system/deployments.json | ||
17-05-04_13-48-33/kube-system/statefulsets.json | ||
... | ||
... | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.