Commit Graph
181 Commits
Author SHA1 Message Date
subhamkrai b7411de1e1 core: update controller-runtime version to v0.11.2
update controller-runtime version to v0.11.2

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 13cc698566)
2022-04-20 17:52:53 +00:00
Travis Nielsen e1dee66aaa Merge pull request #10112 from rook/mergify/bp/release-1.9/pr-10109
monitoring: Disable new alerts that are not applicable to rook (backport #10109)
2022-04-20 09:26:12 -06:00
Travis Nielsen c13c362af1 Merge pull request #10114 from rook/mergify/bp/release-1.9/pr-10059
csi: use k8s.gcr.io for csi nfsplugin image (backport #10059)
2022-04-20 09:25:53 -06:00
Madhu Rajanna d4be1ee1c7 csi: use k8s.gcr.io for csi nfsplugin image
use k8s.gcr.io like other kubernetes sidecar
image to pull the nfsplugin image.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 52c8211e43)
2022-04-20 14:02:22 +00:00
Travis Nielsen 4ceb97da47 core: examples set default priority class names
By default, we should set the priority class to one of the built-in
priority class names to ensure that pods critical to the storage
will be able to remain running when resources are low. Otherwise,
critical rook pods could be evicted and affect many other pods
that rely on the storage to continue functioning. The options have
been available in the CRs, but until now we have just not set the
defaults in the examples. Critical rook components are now set to
the priority class system-node-critical if they are generally pinned
to a node, and system-cluster-critical if they are critical to the storage.
Some pods such as the operator and crash collector do not have a
default priority class set in the examples since they don't affect
the data path.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit fb86955f01)
2022-04-20 13:39:18 +00:00
Travis Nielsen da9496f05d monitoring: remove cephadm specific alerts
The ceph adm alerts were included in the latest prometheus
rules. With rook these alerts will never be triggered, so
we remove them.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 0a25af78dc)
2022-04-20 13:38:31 +00:00
Travis Nielsen 0c9a2507cb monitoring: disable new alerts that are not applicable to rook
The new alerts picked up for Rook v1.9 directly from the ceph repo
were not all rook-compliant. The alert for the prometheus job not
running is not needed since Rook and K8s go to great lengths to
keep the mgr pod running already.

The alert for the cluster filling up soon is also disabled
until we find how to get the formula working in rook clusters.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e45781d0d3)
2022-04-20 13:38:31 +00:00
mergify[bot] be2fb09893 Merge pull request #10104 from rook/mergify/bp/release-1.9/pr-9940
csi: add CSI encryption support (backport #9940)
2022-04-19 20:28:55 +00:00
Travis Nielsen b2815830c4 Merge pull request #10103 from rook/mergify/bp/release-1.9/pr-10074
csi: make GRPC timeout configurable (backport #10074)
2022-04-19 14:09:12 -06:00
Yuval Manor dcb457e155 helm: fix missing default resources in rook components
1. Add csi-snapshotter resources for csiCephFSProvisioner
2. Add csi-omap-generator resources for csiRBDProvisioner (only is omap generator is enabled)

Closes: https://github.com/rook/rook/issues/10083
Signed-off-by: Yuval Manor <yuvalman958@gmail.com>
(cherry picked from commit 5f01456dae)
2022-04-19 16:34:58 +00:00
Rakshith R 1f9a614e08 csi: add CSI encryption support
Ceph-CSI supports LUKS encryption for RBD volumes.
This commit adds support for the same by adding capability
of mounting required `rook-ceph-csi-kms-config` configmap
into csi-rbdplugin-provisioner and nodeplugin pods.
Required documentations, helm charts and examples yamls
are also updated.

Resolved: #7032

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 2e18d5bbaa)
2022-04-19 15:27:31 +00:00
Madhu Rajanna b85c79f9df csi: make GRPC timeout configurable
setting the GRPC timeout configurable helps
in some cases where ceph cluster takes more time
to respond.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 54de442e22)
2022-04-19 13:55:22 +00:00
log1cb0mb 83d53b66f5 helm: add ingressClassName field
Add support for .spec.ingressClassName field

Signed-off-by: log1cb0mb <nabeelnrana@gmail.com>
(cherry picked from commit be905e6d6c)
2022-04-18 17:49:34 +00:00
mergify[bot] a6b0e33699 Merge pull request #10080 from rook/mergify/bp/release-1.9/pr-10071
csi: enable csi nfs to generate nfs rbac for csv (backport #10071)
2022-04-14 18:13:07 +00:00
mergify[bot] bb7e6fe5c7 Merge pull request #10069 from rook/mergify/bp/release-1.9/pr-10014
docs: update NFS docs including latest CSI work (backport #10014)
2022-04-14 17:30:33 +00:00
mergify[bot] a0ba88e8c6 Merge pull request #10063 from rook/mergify/bp/release-1.9/pr-10058
build: generate a separate NFS CSI RBAC manifest (backport #10058)
2022-04-14 17:08:23 +00:00
Blaine Gardner 96cbb34a07 build: generate a separate NFS CSI RBAC manifest
Because the NFS CSI driver is optional and rarely deployed, make RBAC
for this driver an optional example that is generated by the helm chart.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit bca2f128ab)
2022-04-14 10:10:41 -06:00
Rakshith R c9d0dcf90c csi: enable csi nfs to generate nfs rbac for csv
This commit enables csi.nfs during rbac generation
for csv, so that it can used when deployed with olm.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 762f75062f)
2022-04-14 15:53:25 +00:00
Blaine Gardner 3665a1dec3 docs: fix nfs permission on openshift example
Fix a small permission (RBAC) issue with the operator-on-openshift.yaml
example's SecurityContextConstraint. A ServiceAccount reference for the
Ceph CSI NFS provisioner was missing.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 1311bf870a)
2022-04-14 14:44:00 +00:00
mergify[bot] 92358e374c Merge pull request #10055 from rook/mergify/bp/release-1.9/pr-9927
csi: add nfs nodeplugin & provisioner (backport #9927)
2022-04-14 14:42:20 +00:00
Blaine Gardner 8e7bb14fdf docs: update NFS docs including latest CSI work
Update the NFS docs with the latest available info for Ceph Quincy
including the CSI provisioner driver.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit a950feb01e)
2022-04-13 22:24:23 +00:00
Travis Nielsen 7e7f46a471 build: update release version to v1.9.0
With the minor release we update manifest versions
and documentation to v1.9.0.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
2022-04-13 15:52:25 -06:00
Madhu Rajanna 106171a68e core: add code to update the webhook configurations
As we are adding new webhook configuration we
need to update the webhooks validations.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 024c034a95)
2022-04-13 17:06:44 +00:00
Travis Nielsen 20aa0dfa5c Merge pull request #10052 from rook/mergify/bp/release-1.9/pr-10003
core: support arbitrary node affinity inputs (backport #10003)
2022-04-13 08:43:29 -06:00
Travis Nielsen 93ab24a878 Merge pull request #10041 from rook/mergify/bp/release-1.9/pr-10027
helm: Correctly check external cluster for prometheus rules (backport #10027)
2022-04-13 08:40:46 -06:00
Travis Nielsen 651e46ed65 Merge pull request #10051 from rook/mergify/bp/release-1.9/pr-10048
ci: add multus integration test (backport #10048)
2022-04-13 08:40:16 -06:00
Blaine Gardner 727d6dcf53 nfs: create config pool by default
Create the ".nfs" config pool by default so that users aren't required
to create it via CephBlockPool.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 254a7adb4c)
2022-04-12 19:33:10 +00:00
Rakshith R 3b82609b23 csi: add nfs example yamls
This commit adds example nfs storageclass,
pvc and pod yamls.

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit f1953314d4)
2022-04-12 17:38:34 +00:00
Rakshith R d402f8b286 csi: add nfs provisioner deployment
This commit adds nfs provisioner deployment.
This will allow rook to deploy nfs provisioner
which can create backend cephfs subvolumes to be
exported as nfs volumes.

refer:
https://github.com/ceph/ceph-csi/blob/devel/docs/design/proposals/nfs.md

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 5f48ad8026)
2022-04-12 17:38:34 +00:00
Rakshith R 7eead51c6f csi: add nfs nodeplugin daemonset
This commit adds nfs nodeplugin daemonset.
This will allow rook to deploy nfs nodeplugin
which can mount/unmount nfs volumes.

refer:
- https://github.com/ceph/ceph-csi/blob/devel/docs/design/proposals/nfs.md
- https://github.com/kubernetes-csi/csi-driver-nfs

Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit 34162c3dc5)
2022-04-12 17:38:34 +00:00
Pranshu Srivastava 750e8efdc3 core: support arbitrary node affinity inputs
Adds support for valid arbitrary NodeAffinity JSON input by the user while
maintaining backward compatibility with the older parsing code.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
(cherry picked from commit 6e49a090a3)
2022-04-12 16:32:32 +00:00
Sébastien Han 8f083d68a7 ci: add multus integration test
This new integration test will deploy a cluster with multus enabled. It
will be comprised of two network interfaces for ceph public and cluster
communications.
For now, it only deploys a Ceph cluster up to the OSDs.

Closes: https://github.com/rook/rook/issues/9784
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit 2c09bbb91b)
2022-04-12 16:23:40 +00:00
Travis Nielsen 101c25cb63 helm: correctly check external cluster for prometheus rules
When the prometheus rules are created, if external settings
were not specified, the helm chart would fail due to a nil ref
in the external settings. Now we check both for the existence
of external settings and whether the external settings are enabled.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 257dc61391)
2022-04-11 17:59:25 +00:00
Travis Nielsen 55969c6787 Merge pull request #10036 from rook/mergify/bp/release-1.9/pr-9934
core: start admission controller without any script (backport #9934)
2022-04-11 11:47:08 -06:00
Travis Nielsen 1846ff4125 Merge pull request #10032 from rook/mergify/bp/release-1.9/pr-10029
test: Default pool replica size for test cluster is 1 (backport #10029)
2022-04-11 11:46:12 -06:00
Humble Chirammal 214ac48e28 csi: remove node object update rbac for csi deamonset pods
The CSI driver pods dont need to update the node objects for
its operations. This commit remove the unwanted access to node
object update in the RBAC of CSI pods.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
(cherry picked from commit e2a95ac51e)
2022-04-11 15:55:47 +00:00
subhamkrai 0cd2cbb0d4 core: start admission controller without any script
finally, admission controller will be enabled default
without any script/manual step. But it still requires cert-manager
to be installed which I believe is already installed in clusters.

**Note**
Code doesn't return error it just logs the error since
we don't want to stop reconciling if the admission controller fails.
We can work on this once the admission controller is stable.

Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit f6f03d272b)
2022-04-11 15:07:56 +00:00
Travis Nielsen 070afb4d12 test: default pool replica size for test cluster is 1
The default replica count for test clusters should be 1.
This was causing the rgw-multisite integration test to
fail because the PGs were attempting to use the default
replication instead of the replication of 1 expected
for test clusters.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e5a3cbd08c)
2022-04-11 08:05:26 +00:00
Travis Nielsen 4afe52a51d Merge pull request #9993 from rook/mergify/bp/release-1.9/pr-9952
csi: make use of create-external-cluster-resources.py upstream (backport #9952)
2022-04-06 15:59:19 -06:00
Travis Nielsen 681c2db8d3 Merge pull request #9999 from rook/mergify/bp/release-1.9/pr-9974
object: add details about route for rgw's https endpoint (backport #9974)
2022-04-06 15:58:57 -06:00
Travis Nielsen ffe4640fd7 Merge pull request #10008 from rook/mergify/bp/release-1.9/pr-9997
Upgrade docs for 1.9 (backport #9997)
2022-04-06 13:28:06 -06:00
Travis Nielsen 81f5003510 Merge pull request #10005 from rook/mergify/bp/release-1.9/pr-10002
csi: update cephcsi to v3.6.0 release (backport #10002)
2022-04-06 13:27:52 -06:00
Travis Nielsen 04edb5d017 Merge pull request #10000 from rook/mergify/bp/release-1.9/pr-9998
monitoring: remove prometheusrules kind from RBAC (backport #9998)
2022-04-06 13:27:01 -06:00
Blaine Gardner 8e64993c5e docs: update docs for 1.9 release
Update upgrade and supporting docs for release of Rook v1.9.
Include pending release notes as part of this update.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 8d619501fe)
2022-04-06 15:52:16 +00:00
Madhu Rajanna ad4c6ac92a csi: update cephcsi to v3.6.0 release
Removed v3.4.0 as its deprecated in cephcsi
and updated the templates to point to latest
v3.6.0 release.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit a1ded0f27f)
2022-04-06 14:01:49 +00:00
Blaine Gardner 83ee051d33 monitoring: remove prometheusrules kind from RBAC
Minor update to remove prometheus rules from RBAC, which is no longer
managed by Rook.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 0e08aeedac)
2022-04-05 20:00:28 +00:00
Jiffin Tony Thottan 37d18ba45a object: add details about route for rgw's https endpoint
In the `object-openshift.yaml` details about exposing `Routes` for RGW
service, currently it exposes both ports if they are available. This is
very difficult to manage via same route like adding termination policy
etc.

Signed-off-by: Jiffin Tony Thottan <thottanjiffin@gmail.com>
(cherry picked from commit 68dced0409)
2022-04-05 18:34:37 +00:00
parth-gr 152fb563cf rgw: change name of rgw admin keys
Corrected RGW_ADMIN_OPS_USER_ACCESS_KEY  and
RGW_ADMIN_OPS_USER_SECRET_KEY so it should be
output correctely when called script with
bash format output

Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 63945df72d)
2022-04-05 14:54:18 +00:00
parth-gr 2e5680b98e csi: make use of create-external-cluster-resources.py upstream
Updated doc how to use create external cluster

Closes: https://github.com/rook/rook/issues/9591
Signed-off-by: parth-gr <paarora@redhat.com>
(cherry picked from commit 7ce49aee5b)
2022-04-05 14:54:17 +00:00
Madhu Rajanna baa2c90568 namespace: add new CRD
This introduces a new CRD to add the ability
to create rados namespace for a given
ceph block pool. Typically the name of the pool
is the name of the blockpool created by rook.

Closes: #7035

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit b0fc7c9b92)
2022-04-05 13:33:54 +00:00