45ba95a2de
This provides an example action in the curator config for taking snapshots of the elasticsearch indexes. As the snapshot action requires a repository registered with Elasticsearch, this also adds a PVC for a filesystem repository backed with NFS and a job for registering the repository with Elasticsearch. Change-Id: I26b788c58f52844e997bde5002459bddc1bb685e
34 lines
1.1 KiB
YAML
34 lines
1.1 KiB
YAML
{{/*
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/}}
|
|
|
|
{{- if .Values.manifests.pvc_snapshots }}
|
|
{{- if .Values.storage.filesystem_repository.enabled }}
|
|
{{- $envAll := . }}
|
|
---
|
|
kind: PersistentVolumeClaim
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ .Values.storage.filesystem_repository.pvc.name }}
|
|
spec:
|
|
accessModes:
|
|
- {{ .Values.storage.filesystem_repository.pvc.access_mode }}
|
|
resources:
|
|
requests:
|
|
storage: {{ .Values.storage.filesystem_repository.requests.storage }}
|
|
storageClassName: {{ .Values.storage.filesystem_repository.storage_class }}
|
|
{{- end }}
|
|
{{- end }}
|