Skip to content

Instantly share code, notes, and snippets.

@slamdev
Created May 28, 2019 11:26
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 slamdev/44bc5df56cc093e5fb04088f07fd69cd to your computer and use it in GitHub Desktop.
Save slamdev/44bc5df56cc093e5fb04088f07fd69cd to your computer and use it in GitHub Desktop.
local-storage sample
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: test
namespace: audienzz-dev
spec:
replicas: 1
serviceName: test
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- name: test
image: nginx
volumeMounts:
- name: datadir
mountPath: /etc/test
volumes:
- emptyDir: {}
name: datadir
volumeClaimTemplates:
- metadata:
name: datadir
spec:
accessModes:
- ReadWriteOnce
storageClassName: local-storage
resources:
requests:
storage: 1Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment