Skip to content

Instantly share code, notes, and snippets.

View asrail's full-sized avatar

Caio Tiago Oliveira asrail

  • Salvador, Bahia, Brasil
View GitHub Profile
apiVersion: v1
stringData:
AWS_ACCESS_KEY_ID: put your access key ID here
AWS_SECRET_ACCESS_KEY: put your secret access key here. You can use any "safe" form for secret management
kind: Secret
metadata:
name: aws-creds
type: Opaque
---
apiVersion: v1
@asrail
asrail / README.md
Created December 7, 2018 18:18 — forked from adambom/README.md
Backup Kubernetes Cluster State

Run this in order to backup all you k8s cluster data. It will be saved in a folder bkp. To restore the cluster, you can run kubectl apply -f bkp.

Please note: this recovers all resources correctly, including dynamically generated PV's. However, it will not recover ELB endpoints. You will need to update any DNS entries manually, and manually remove the old ELB's.

Please note: This has not been tested with all resource types. Supported resource types include:

  • services
  • replicationcontrollers
  • secrets
  • deployments
  • horizontal pod autoscalers