Merge pull request #15 from alanmeadows/master
ensure ceph storage is persistent
This commit is contained in:
commit
7c0b031035
@ -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 }}
|
||||
|
@ -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
1
common/.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
secrets/*
|
||||
!secrets/.gitkeep
|
||||
templates/_secrets.tpl
|
||||
|
0
common/secrets/.gitkeep
Normal file
0
common/secrets/.gitkeep
Normal 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:
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user