Use ssd instead of nfs server

This commit is contained in:
kiloreux 2018-04-25 15:00:23 +01:00
parent 28948800ec
commit c2db0f9af5
No known key found for this signature in database
GPG Key ID: 8B81EA3FA91EB758
1 changed files with 5 additions and 9 deletions

View File

@ -1,12 +1,12 @@
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: nfs-tusd name: ssd-tusd
namespace: tus namespace: tus
spec: spec:
accessModes: accessModes:
- ReadWriteMany - ReadWriteOnce
storageClassName: "" storageClassName: "ssd"
resources: resources:
requests: requests:
storage: 20Gi storage: 20Gi
@ -18,12 +18,8 @@ metadata:
namespace: tus namespace: tus
spec: spec:
replicas: 1 replicas: 1
minReadySeconds: 10
strategy: strategy:
type: RollingUpdate type: Recreate
rollingUpdate:
maxSurge: 2
maxUnavailable: 0
template: template:
metadata: metadata:
labels: labels:
@ -51,7 +47,7 @@ spec:
volumes: volumes:
- name: tusd-disk - name: tusd-disk
persistentVolumeClaim: persistentVolumeClaim:
claimName: nfs-tusd claimName: ssd-tusd
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service