Skip to content

Instantly share code, notes, and snippets.

View wallnerryan's full-sized avatar

Ryan Wallner wallnerryan

  • Boston, MA
  • 07:13 (UTC -04:00)
View GitHub Profile
@wallnerryan
wallnerryan / file.md
Last active January 29, 2016 18:46
k8sstoragestuff jan 29 2016

Storage in Kubernetes

PersistentVolume (PV)

  • storage resource provisioned by admin.

PersistentVolumeClaim (PVC)

  • user request for persistent volume.
@wallnerryan
wallnerryan / transcript.txt
Created January 26, 2016 02:59
transcript installing flocker 1.9.0-1 on RHEL 7.2
[root@ip-10-0-91-35 ec2-user]# yum install https://s3.amazonaws.com/clusterhq-archive/centos/clusterhq-release.el7.centos.noarch.rpm
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
clusterhq-release.el7.centos.noarch.rpm | 3.1 kB 00:00
Examining /var/tmp/yum-root-nwiRBj/clusterhq-release.el7.centos.noarch.rpm: clusterhq-release-1-7.el7.centos.noarch
Marking /var/tmp/yum-root-nwiRBj/clusterhq-release.el7.centos.noarch.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package clusterhq-release.noarch 0:1-7.el7.centos will be installed
--> Finished Dependency Resolution
import re, urllib
from bs4 import BeautifulSoup
myurl = "https://github.com/emccode/rexray"
html = urllib.urlopen(myurl).read()
soup = BeautifulSoup(html, 'html.parser')
file = open("github.analysis", "w")
file.write(myurl+"\n")
for sibling in soup.findAll("a", { "class" : "social-count" }):
apiVersion: v1
kind: Service
metadata:
name: flocker-ghost
labels:
app: flocker-ghost
spec:
ports:
# the port that this service should serve on
- port: 80
@wallnerryan
wallnerryan / y.yml
Last active December 15, 2015 20:27
apiVersion: v1
kind: Service
metadata:
name: flocker-web
labels:
app: flocker-web
spec:
ports:
# the port that this service should serve on
- port: 80
apiVersion: v1
kind: Pod
metadata:
name: flocker-ghost-demo
spec:
containers:
- name: ghost-demo
image: ghost:0.7.1
ports:
- name: ghostport
apiVersion: v1
kind: Pod
metadata:
name: flocker-web
spec:
containers:
- name: web
image: nginx
ports:
- name: web
[seq-read-4k]
rw=read
size=1G
bs=4k
numjobs=8
time_based
runtime=120
group_reporting
write_bw_log=seq-read
write_iops_log=seq-read
[global]
direct=1
rw=randread
size=1G
numjobs=16
norandommap
time_based
runtime=180
[test-randread-1G]
[global]
direct=1
ioengine=libaio
rw=randread
size=1G
numjobs=1
time_based
runtime=360
group_reporting
stonewall