Skip to content

Instantly share code, notes, and snippets.

@tutsunom
Created August 13, 2019 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tutsunom/9ecf27b0843dff441fa95ffa1231eb64 to your computer and use it in GitHub Desktop.
Save tutsunom/9ecf27b0843dff441fa95ffa1231eb64 to your computer and use it in GitHub Desktop.
fio-tools: write fio app
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: fio-data-write
namespace: fio-tools
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
storageClassName: rbd
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: fio-tester-write
namespace: fio-tools
labels:
purpose: fio-testing-write
spec:
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
replicas: 1
template:
metadata:
labels:
app: fio-testing-write
spec:
containers:
- name: fio-container
image: wallnerryan/fiotools-aio
ports:
- containerPort: 8000
volumeMounts:
- name: fio-data
mountPath: /myvol
env:
- name: REMOTEFILES
value: "https://gist.githubusercontent.com/tutsunom/e4a17d4b5de968f9828db58c56b1157b/raw/48931837ab6a60179824e3f9
d1f474de7f27fe4d/randwrite4k.fio"
- name: JOBFILES
value: randwrite4k.fio
- name: PLOTNAME
value: randwrite
volumes:
- name: fio-data
persistentVolumeClaim:
claimName: fio-data-write
tolerations:
- key: "nodetype"
operator: "Equal"
value: "app"
effect: "NoSchedule"
- key: "node.kubernetes.io/not-ready"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 0
- key: "node.kubernetes.io/unreachable"
operator: "Exists"
effect: "NoExecute"
tolerationSeconds: 0
---
apiVersion: v1
kind: Service
metadata:
name: fiotools-write
namespace: fio-tools
labels:
name: fiotools-write
spec:
type: NodePort
ports:
- port: 8000
targetPort: 8000
name: http
selector:
app: fio-testing-write
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment