sshct.yaml: replaced PVC with hostPath volume

This commit is contained in:
Andrey Kartashov 2018-03-25 11:10:56 +07:00
parent 69b386a8a0
commit 0820f98580

View file

@ -1,37 +1,4 @@
--- ---
kind: PersistentVolume
apiVersion: v1
metadata:
name: sshcthome
labels:
type: local
name: sshcthome
spec:
storageClassName: manual
capacity:
storage: 100Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /data/home
# mkdir -p /data/home/me
# chown 1000.1000 /data/home/me
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: sshcthome
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
selector:
matchLabels:
name: sshcthome
---
apiVersion: apps/v1beta2 apiVersion: apps/v1beta2
kind: Deployment kind: Deployment
metadata: metadata:
@ -49,9 +16,10 @@ spec:
app: sshct app: sshct
spec: spec:
volumes: volumes:
- name: sshcthome - name: home
persistentVolumeClaim: hostPath:
claimName: sshcthome path: /data/home
type:
- name: gorilychrume - name: gorilychrume
hostPath: hostPath:
path: /data/gorilych.ru/me path: /data/gorilych.ru/me
@ -71,7 +39,7 @@ spec:
name: ssh name: ssh
volumeMounts: volumeMounts:
- mountPath: /home - mountPath: /home
name: sshcthome name: home
- mountPath: /home/www/me - mountPath: /home/www/me
name: gorilychrume name: gorilychrume
--- ---