Skip to content

Instantly share code, notes, and snippets.

View tutsunom's full-sized avatar

Takuya Utsunomiya tutsunom

View GitHub Profile
@tutsunom
tutsunom / localization.sh
Last active March 6, 2024 06:36
OCP-V workshop Localization command
NS=$(oc get namespace -o custom-columns=":metadata.name" | grep bookbag)
oc patch -n $NS bc/bookbag --patch='{"spec":{"source":{"git":{"uri":"https://github.com/team-ohc-jp-place/roadshow_ocpvirt_instructions","ref":"main-jp"}}}}'
oc start-build bc/bookbag -n $NS
@tutsunom
tutsunom / fiojob-randwrite4k.fio
Last active March 27, 2020 03:19
fio-tools: 1,4,16,64,256 outstanding io 4K random write for 2min respectively
[global]
time_based
runtime=120
startdelay=10
ramp_time=10
direct=1
rw=randwrite
size=100G
numjobs=1
ioengine=libaio
@tutsunom
tutsunom / fiojob-randread4k.fio
Last active March 27, 2020 03:06
fio-tools: 1,4,16,64,256 outstanding io 4K random read for 2min respectively
[global]
time_based
runtime=120
startdelay=10
ramp_time=10
direct=1
rw=randread
size=100G
numjobs=1
ioengine=libaio
apiVersion: apps/v1
kind: Deployment
metadata:
name: date
spec:
replicas: 3
selector:
matchLabels:
app: date
strategy:
@tutsunom
tutsunom / operator.yaml
Created November 24, 2019 16:13
rook-ceph operator deployment ; rook-discover agent pods will deployed on nodes labelled "role=storage"
#################################################################################################################
# The deployment for the rook operator
# Contains the common settings for most Kubernetes deployments.
# For example, to create the rook-ceph cluster:
# kubectl create -f common.yaml
# kubectl create -f operator.yaml
# kubectl create -f cluster.yaml
#
# Also see other operator sample files for variations of operator.yaml:
# - operator-openshift.yaml: Common settings for running in OpenShift
@tutsunom
tutsunom / my-fiotools-aio-portworx-write.yaml
Created August 13, 2019 05:30
fio-tools: write fio app
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: fio-data-write
namespace: fio-tools
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
@tutsunom
tutsunom / create-rbdpool-and-sc.yaml
Created August 13, 2019 05:18
Rook-Ceph: create ceph rbd pool and storageclass
apiVersion: ceph.rook.io/v1
kind: CephBlockPool
metadata:
name: replicapool
namespace: my-rook-ceph
spec:
replicated:
size: 3
---
apiVersion: storage.k8s.io/v1
@tutsunom
tutsunom / rook-ceph.yaml
Created August 13, 2019 05:17
Rook-Ceph : deploy rook-ceph operator
apiVersion: v1
kind: Namespace
metadata:
name: my-rook-ceph
---
apiVersion: operators.coreos.com/v1alpha2
kind: OperatorGroup
metadata:
name: operatorgroup
namespace: my-rook-ceph
@tutsunom
tutsunom / create-cluster.yaml
Last active August 13, 2019 05:17
Rook-Ceph : create ceph cluster
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: my-rook-ceph
namespace: my-rook-ceph
spec:
cephVersion:
image: 'ceph/ceph:v14.2.1-20190430'
dataDirHostPath: /var/lib/rook
mon:
@tutsunom
tutsunom / randwrite4k.fio
Last active December 7, 2019 06:12 — forked from wallnerryan/randwrite4k.fio
fio-tools: 1x8 outstanding io 4K randm write for 3min
[global]
direct=1
rw=randwrite
size=1G
numjobs=1
iodepth=8
time_based
runtime=600
ioengine=libaio