Skip to content

Instantly share code, notes, and snippets.

View jdbohrman's full-sized avatar

James D. Bohrman jdbohrman

View GitHub Profile
<a href="https://www.vultr.com/?ref=8424894-6G"><img src="https://www.vultr.com/media/banners/banner_728x90.png" width="728" height="90"></a>

How to protect PostgresSQL with K10

I. Intro/context

Leveraging K10 allows you to manage and backup their cloud-native data storage solutions in a variety of different ways. When managing your data, have the option to either set up a backup via the CLI or by using the intuitive dashboard. In this lesson, we are going to discuss how you as a user would go about setting up PostgresSQL on Kubernetes and then backing up it's data.

II. Setting up Kasten K10

You can install K10 on most major cloud providers via Helm, however this lesson is going to focus mainly on GKE. You can refer to the documentation here for other providers install steps.

#!/bin/bash -x
export curl
export jq
export RANCHER_IP=34.70.139.14
export CLUSTER_NAME=test-cluster-new
export OUTPUT_DIR=/var/lib/rancher/k3s/server/manifests
while true; do
curl -sLk https://${RANCHER_IP}/ping && break
sleep 5
ssh_authorized_keys:
- github:jdbohrman
write_files:
- encoding: ""
content: |-
#!/bin/bash
mkdir -p '/var/lib/rancher/k3s/server/manifests/'
curl -L https://gist.githubusercontent.com/jdbohrman/714bb13d8b8404f647174d9132f5f320/raw/de0c3825d03aa84c70f95e7a4445802e53dabddb/call-rancher.yaml >> /var/lib/rancher/k3s/server/manifests/call-rancher.yaml
owner: root
path: /etc/rc.local

Keybase proof

I hereby claim:

  • I am jdbohrman on github.
  • I am jdbohrman (https://keybase.io/jdbohrman) on keybase.
  • I have a public key ASC8mdhmmTn1gMVej9-d6oZEBUzjoUwDTOY67F__3hs_mAo

To claim this, I am signing this object:

@jdbohrman
jdbohrman / resume.md
Last active April 17, 2019 00:16
My Markdown resume

type tmux in terminal

Windows:

  • Create new window: Ctrl+b c
  • Move to next window: Ctrl+b n
  • Move to previos window: Ctrl+b p
  • List all wondows: Ctrl+b w

Panes/Split:

@jdbohrman
jdbohrman / tmux-cheatsheet.markdown
Created January 17, 2019 07:06 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@jdbohrman
jdbohrman / NOTES.md
Created November 30, 2018 12:15 — forked from DenisIzmaylov/NOTES.md
Step By Step Guide to Configure a CoreOS Cluster From Scratch

Step By Step Guide to Configure a CoreOS Cluster From Scratch

This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.

Content

@jdbohrman
jdbohrman / NOTES.md
Created November 30, 2018 12:15 — forked from DenisIzmaylov/NOTES.md
Step By Step Guide to Configure a CoreOS Cluster From Scratch

Step By Step Guide to Configure a CoreOS Cluster From Scratch

This guide describes how to bootstrap new Production Core OS Cluster as High Availability Service in a 15 minutes with using etcd2, Fleet, Flannel, Confd, Nginx Balancer and Docker.

Content