kubernetes: add volume mountpoint to pod definitions

This commit is contained in:
Sameer Naik 2015-11-14 15:00:03 +05:30
parent e920a82551
commit 734cfba0e0
3 changed files with 18 additions and 0 deletions

View File

@ -105,9 +105,15 @@ spec:
- name: ssh
containerPort: 22
protocol: TCP
volumeMounts:
- mountPath: /home/git/data
name: data
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 300
timeoutSeconds: 1
volumes:
- name: data
emptyDir: {}

View File

@ -26,8 +26,14 @@ spec:
ports:
- containerPort: 5432
protocol: TCP
volumeMounts:
- mountPath: /var/lib/postgresql
name: data
livenessProbe:
TCPSocket:
port: 5432
initialDelaySeconds: 30
timeoutSeconds: 1
volumes:
- name: data
emptyDir: {}

View File

@ -19,8 +19,14 @@ spec:
ports:
- containerPort: 6379
protocol: TCP
volumeMounts:
- mountPath: /var/lib/redis
name: data
livenessProbe:
TCPSocket:
port: 6379
initialDelaySeconds: 30
timeoutSeconds: 1
volumes:
- name: data
emptyDir: {}