Skip to content

Instantly share code, notes, and snippets.

@riuvshin
Created February 12, 2018 19:56
Show Gist options
  • Save riuvshin/878729f2f41606f61c87c71d780f0d35 to your computer and use it in GitHub Desktop.
Save riuvshin/878729f2f41606f61c87c71d780f0d35 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
volume.beta.kubernetes.io/storage-class: gp2
name: ebs
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
- apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
run: gittest
name: gittest
spec:
replicas: 1
selector:
run: gittest
strategy:
activeDeadlineSeconds: 21600
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
run: gittest
spec:
containers:
- name: gittest
image: riuvshin/test_volume_io
resources:
limits:
memory: 1Gi
cpu: 1
imagePullPolicy: Always
command: ["/bin/bash", "-c", "--"]
args: ["sleep infinity"]
stdin: true
tty: true
volumeMounts:
- mountPath: /mnt/ebs
name: ebs
dnsPolicy: ClusterFirst
restartPolicy: Always
volumes:
- name: ebs
persistentVolumeClaim:
claimName: ebs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment