Skip to content

Instantly share code, notes, and snippets.

Owain Lewis owainlewis

Block or report user

Report or block owainlewis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View setup.sh
#!/usr/bin/env bash
sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
View ss.yaml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: web
spec:
serviceName: "nginx"
replicas: 2
selector:
matchLabels:
app: nginx
View ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: example-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: hello-world.info
http:
@owainlewis
owainlewis / GPG.md
Last active Apr 18, 2019
GPG Tutorial
View GPG.md

Quick Guide to using GPG

❯ gpg --gen-key

List keys

❯ gpg --list-keys
@owainlewis
owainlewis / auth.txt
Last active Nov 7, 2018
Flexvolume notes
View auth.txt
➜ oci-kubeadm git:(master) ✗ cat manifests/flexvolume-config.yaml
---
auth:
region: us-phoenix-1
tenancy: ocid1.tenancy.oc1..
compartment: ocid1.compartment.oc1..
user: ocid1.user.oc1..
key: |
-----BEGIN RSA PRIVATE KEY-----
-----END RSA PRIVATE KEY-----
View cloud-provider-config.yaml
## =====================================
## Base configuration used by all plugins
## =====================================
auth:
region: us-phoenix-1
tenancy: ocid1.tenancy.oc1..
user: ocid1.user.oc1..
key: |
-----BEGIN RSA PRIVATE KEY-----
View driver.yaml
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: oci-flexvolume-driver-master
namespace: kube-system
spec:
selector:
matchLabels:
component: oci-flexvolume-driver
@owainlewis
owainlewis / setup.sh
Last active Nov 3, 2018
Setup Ubuntu 18.04 development machine
View setup.sh
sudo apt update && apt upgrade -y
# Install core packages
sudo apt install -y build-essential libncurses-dev git emacs zsh gnome-tweak-tool curl
# Setup Git user information
git config --global user.email "owain@owainlewis.com"
git config --global user.name "Owain Lewis"
@owainlewis
owainlewis / flannel-patch.yaml
Last active Nov 2, 2018
VXLAN patch for Flannel networking
View flannel-patch.yaml
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: flannel
rules:
- apiGroups:
- ""
resources:
- pods
View nginx-master.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 1
template:
You can’t perform that action at this time.