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

View File

@ -20,3 +20,7 @@ network:
mon: 6789 mon: 6789
rgw_ingress: 80 rgw_ingress: 80
rgw_target: 8088 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/*
!secrets/.gitkeep
templates/_secrets.tpl templates/_secrets.tpl

0
common/secrets/.gitkeep Normal file
View File

View File

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

View File

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