Skip to content

Instantly share code, notes, and snippets.

@sincejune
Created May 9, 2019 04:24
Show Gist options
  • Save sincejune/ea425dc09edbf9b06ee9c1efb067b74e to your computer and use it in GitHub Desktop.
Save sincejune/ea425dc09edbf9b06ee9c1efb067b74e to your computer and use it in GitHub Desktop.
storageclass test resource
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
labels:
app: storageclass-test
name: storageclass-test
spec:
podManagementPolicy: OrderedReady
replicas: 1
selector:
matchLabels:
app: storageclass-test
serviceName: storageclass-test
template:
metadata:
creationTimestamp: null
labels:
app: storageclass-test
spec:
containers:
- image: joway/dockerize-utils:latest
imagePullPolicy: Always
name: storageclass-test
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /data
name: test-data
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
partition: 0
type: RollingUpdate
volumeClaimTemplates:
- metadata:
creationTimestamp: null
labels:
app: test-data
name: test-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1M
storageClassName: test-storageclass
---
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: test-storageclass
provisioner: kubernetes.io/aws-ebs
parameters:
type: gp2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment