Skip to content

Instantly share code, notes, and snippets.

View rrichards's full-sized avatar
💭
Rocking the CLI

Ryan Richards rrichards

💭
Rocking the CLI
  • R3 Technologies, Inc.
  • Edmond, OK
  • 03:04 (UTC -12:00)
  • X @rrichards
View GitHub Profile
######################
# Create The Cluster #
######################
# Make sure that your minishift version is v1.15 or higher
minishift start \
--vm-driver virtualbox \
--cpus 2 \
--memory 2048 \
@rrichards
rrichards / gke.sh
Created May 29, 2018 00:48 — forked from vfarcic/gke.sh
######################
# Create The Cluster #
######################
gcloud auth login
gcloud auth application-default login
ZONE=$(gcloud compute zones list \
--filter "region:(us-east1)" \
FROM mirror-hub.docker.tech.lastmile.com/alpine:3.5
RUN apk add --no-cache curl jq
RUN curl -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.5.3/bin/linux/amd64/kubectl && chmod +x /usr/local/bin/kubectl
COPY rmpeers /
CMD ["/rmpeers"]
@rrichards
rrichards / K8s-DigitalOcean-CoreOS.md
Created May 20, 2018 07:45 — forked from kevashcraft/K8s-DigitalOcean-CoreOS.md
How to Setup Kubernetes on DigitalOcean with CoreOS

Kubernetes on DigitalOcean with CoreOS

Let's look at an example of how to launch a Kubernetes cluster from scratch on DigitalOcean, including kubeadm, an Nginx Ingress controller, and Letsencrypt certificates.

Overview

Environment

We'll be creating a four-node cluster (k8s-master, k8s-000...k8s-002), load balancer, and ssl certificates.

Table of Contents

  1. Install Kubernetes
@rrichards
rrichards / helm-cheatsheet.md
Created March 16, 2018 04:24 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!
@rrichards
rrichards / snapshots.py
Created October 9, 2017 08:19 — forked from Eyjafjallajokull/README.md
AWS EBS - Find unused snapshots - this script generates csv raport about snapshot usage
import re
import boto3
import csv
from botocore.exceptions import ClientError
ec2 = boto3.client('ec2')
def get_snapshots():
return ec2.describe_snapshots(OwnerIds=['self'])['Snapshots']
@rrichards
rrichards / pg.md
Created July 20, 2017 07:12 — forked from benschwarz/pg.md
Awesome postgres
@rrichards
rrichards / letsencrypt_2017.md
Created June 21, 2017 03:26 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.

@rrichards
rrichards / 0_install_docker_prl_osx.sh
Created November 6, 2016 05:21
MongoDB cluster on multihost swarm network with docker-machine-parallels
#!/bin/bash
# using homebrew -- http://brew.sh
#docker and docker-machine
brew install docker
brew install docker-machine
brew install docker-machine-parallels
#consul
brew install consul
@rrichards
rrichards / .emacs
Created September 19, 2016 08:16
pbcopy & pbpaste for Emacs
(defun copy-from-osx ()
(shell-command-to-string "pbpaste"))
(defun paste-to-osx (text &optional push)
(let ((process-connection-type nil))
(let ((proc (start-process "pbcopy" "*Messages*" "pbcopy")))
(process-send-string proc text)
(process-send-eof proc))))
(setq interprogram-cut-function 'paste-to-osx)