-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
After the cleaning the templates directory was gone, this commit restores it.
- Loading branch information
Showing
32 changed files
with
14,042 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v3.7.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ceph-csi-config | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
data: | ||
config.json: |- | ||
[ | ||
{ | ||
"clusterID": "{{ k8s_ceph_csi_clusterid }}", | ||
"monitors": [ | ||
{% for osd in k8s_ceph_csi_monitors %} | ||
"{{ osd }}"{% if not loop.last %},{% endif %} | ||
|
||
{% endfor %} | ||
] | ||
} | ||
] | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ceph-config | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
data: | ||
ceph.conf: | | ||
[global] | ||
auth_cluster_required = cephx | ||
auth_service_required = cephx | ||
auth_client_required = cephx | ||
keyring: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: ceph-csi-encryption-kms-config | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
data: | ||
config.json: |- | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: rbd-csi-nodeplugin | ||
# replace with non-default namespace name | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: rbd-csi-nodeplugin | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["get"] | ||
# allow to read Vault Token and connection options from the Tenants namespace | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["serviceaccounts"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["volumeattachments"] | ||
verbs: ["list", "get"] | ||
- apiGroups: [""] | ||
resources: ["serviceaccounts/token"] | ||
verbs: ["create"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: rbd-csi-nodeplugin | ||
subjects: | ||
- kind: ServiceAccount | ||
name: rbd-csi-nodeplugin | ||
# replace with non-default namespace name | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: rbd-csi-nodeplugin | ||
apiGroup: rbac.authorization.k8s.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: rbd-csi-provisioner | ||
# replace with non-default namespace name | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
|
||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: rbd-external-provisioner-runner | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["nodes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["events"] | ||
verbs: ["list", "watch", "create", "update", "patch"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumes"] | ||
verbs: ["get", "list", "watch", "create", "update", "delete", "patch"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumeclaims"] | ||
verbs: ["get", "list", "watch", "update"] | ||
- apiGroups: [""] | ||
resources: ["persistentvolumeclaims/status"] | ||
verbs: ["update", "patch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["storageclasses"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["snapshot.storage.k8s.io"] | ||
resources: ["volumesnapshots"] | ||
verbs: ["get", "list", "patch"] | ||
- apiGroups: ["snapshot.storage.k8s.io"] | ||
resources: ["volumesnapshots/status"] | ||
verbs: ["get", "list", "patch"] | ||
- apiGroups: ["snapshot.storage.k8s.io"] | ||
resources: ["volumesnapshotcontents"] | ||
verbs: ["create", "get", "list", "watch", "update", "delete", "patch"] | ||
- apiGroups: ["snapshot.storage.k8s.io"] | ||
resources: ["volumesnapshotclasses"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["volumeattachments"] | ||
verbs: ["get", "list", "watch", "update", "patch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["volumeattachments/status"] | ||
verbs: ["patch"] | ||
- apiGroups: ["storage.k8s.io"] | ||
resources: ["csinodes"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["snapshot.storage.k8s.io"] | ||
resources: ["volumesnapshotcontents/status"] | ||
verbs: ["update", "patch"] | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["serviceaccounts"] | ||
verbs: ["get"] | ||
- apiGroups: [""] | ||
resources: ["serviceaccounts/token"] | ||
verbs: ["create"] | ||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: rbd-csi-provisioner-role | ||
subjects: | ||
- kind: ServiceAccount | ||
name: rbd-csi-provisioner | ||
# replace with non-default namespace name | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
roleRef: | ||
kind: ClusterRole | ||
name: rbd-external-provisioner-runner | ||
apiGroup: rbac.authorization.k8s.io | ||
|
||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
# replace with non-default namespace name | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
name: rbd-external-provisioner-cfg | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: ["get", "list", "watch", "create", "update", "delete"] | ||
- apiGroups: ["coordination.k8s.io"] | ||
resources: ["leases"] | ||
verbs: ["get", "watch", "list", "delete", "update", "create"] | ||
|
||
--- | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: rbd-csi-provisioner-role-cfg | ||
# replace with non-default namespace name | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: rbd-csi-provisioner | ||
# replace with non-default namespace name | ||
namespace: {{ k8s_ceph_csi_namespace }} | ||
roleRef: | ||
kind: Role | ||
name: rbd-external-provisioner-cfg | ||
apiGroup: rbac.authorization.k8s.io |
Oops, something went wrong.