Skip to content

Instantly share code, notes, and snippets.

View juanbrny's full-sized avatar
🎯
Focusing

Juan Herrera Utande juanbrny

🎯
Focusing
View GitHub Profile
@juanbrny
juanbrny / README.md
Created October 25, 2018 10:10 — forked from ragingprodigy/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 ${BACKUP_OUTPUT_DIR}.

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
@juanbrny
juanbrny / harbor.sh
Last active April 20, 2022 08:37 — forked from kacole2/harbor.sh
Quick Start Harbor Installation Script on SUSE Linux Enterprise Server 15 SP3
#!/bin/bash
#Harbor on SUSE Linux Enterprise Server 15 SP3
#Prompt for the user to ask if the install should use the IP Address or Fully Qualified Domain Name of the Harbor Server
PS3='Would you like to install Harbor based on IP or FQDN? '
select option in IP FQDN
do
case $option in
IP)