Merge pull request #15 from alanmeadows/master

ensure ceph storage is persistent
This commit is contained in:
Brandon B. Jozsa 2016-11-30 17:44:57 -05:00 committed by GitHub
commit 7c0b031035
6 changed files with 12 additions and 7 deletions

View File

@ -20,9 +20,8 @@ spec:
hostPath:
path: /dev
- name: ceph
emptyDir: {}
# hostPath:
# path: /opt/ceph
hostPath:
path: {{ .Values.storage.var_directory }}
- name: ceph-conf
secret:
secretName: ceph-conf-combined
@ -36,9 +35,8 @@ spec:
secret:
secretName: ceph-bootstrap-rgw-keyring
- name: osd-directory
emptyDir: {}
# hostPath:
# path: /home/core/data/ceph/osd
hostPath:
path: {{ .Values.storage.osd_directory }}
containers:
- name: osd-pod
image: {{ .Values.images.daemon }}

View File

@ -20,3 +20,7 @@ network:
mon: 6789
rgw_ingress: 80
rgw_target: 8088
storage:
osd_directory: /var/lib/aic-helm/ceph/osd
var_directory: /var/lib/aic-helm/ceph/ceph

1
common/.gitignore vendored
View File

@ -1,2 +1,3 @@
secrets/*
!secrets/.gitkeep
templates/_secrets.tpl

0
common/secrets/.gitkeep Normal file
View File

View File

@ -34,7 +34,7 @@ apiVersion: v1
metadata:
name: mariadb-{{$v}}
annotations:
volume.beta.kubernetes.io/storage-class: "general"
{{ $root.Values.volume.class_path }}: {{ $root.Values.volume.class_name }}
spec:
accessModes: [ "ReadWriteOnce" ]
resources:

View File

@ -9,6 +9,8 @@ images:
mariadb: quay.io/stackanetes/stackanetes-mariadb:newton
volume:
class_path: volume.alpha.kubernetes.io/storage-class
class_name: general
size: 20Gi
labels: