mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 18:09:44 +00:00
sshct.yaml: replaced PVC with hostPath volume
This commit is contained in:
parent
69b386a8a0
commit
0820f98580
1 changed files with 5 additions and 37 deletions
42
sshct.yaml
42
sshct.yaml
|
|
@ -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
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue