CaaS storage seed code
[ta/caas-storage.git] / ansible / roles / kubernetes_storage / templates / ceph-storageclass.yaml.j2
1 ---
2 # Copyright 2019 Nokia
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 #     http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 kind: StorageClass
17 apiVersion: storage.k8s.io/v1
18 metadata:
19   annotations:
20     storageclass.kubernetes.io/is-default-class: "true"
21   name: "{{ name }}"
22 provisioner: kubernetes.io/rbd
23 parameters:
24   monitors: "{{ ceph_mons_list }}"
25   adminId: "{{ ceph_admin_token.name }}"
26   adminSecretName: "ceph-{{ ceph_admin_token.name }}"
27   adminSecretNamespace: "{{ ceph_admin_token.namespace }}"
28   pool: "{{ pool }}"
29   userId: "{{ ceph_user_token.name }}"
30   userSecretName: "ceph-{{ ceph_user_token.name }}"
31   fsType: ext4
32   imageFormat: "2"
33   imageFeatures: "layering"
34 reclaimPolicy: Retain
35 mountOptions:
36   - debug