adding port which was missing from helm rook-ceph chart
which is used by webhook due to which it was failing with
```
failed to run operator: gave up to run the operator manager: failed to
run the controller-runtime manager: listen tcp :9443: bind: address
already in use
```
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 94f0c0dc25)
Use `Recreate` strategy instead of `RollingUpdate` for
rook-ceph-operator deployement upgrade
Signed-off-by: Santosh Pillai <sapillai@redhat.com>
(cherry picked from commit 693c2d9306)
As we have new cephcsi patch release i.e v3.6.2
updating Rook dependency to the same.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 3e70d278cb)
updating node-driver-registrar to v2.5.1 release
, nfsplugin to 4.0.0 and csi-snapshotter to v6.0.1
Note:- with snapshotter v6.0.1 v1beta1 snapshot CRD
is not supported. If you want betav1 snapshot support
please switch to v5.x.x snapshotter.
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
(cherry picked from commit 767cfcbf09)
we need to update the referred doc path
according to our latest doc change.
Signed-off-by: subhamkrai <srai@redhat.com>
(cherry picked from commit 49a35a9311)
If the monitoring settings are not specified in the values.yaml,
avoid a helm chart install error by skipping the monitoring
section of the cephcluster CR altogether.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit a3d65b3f93)
The cephcluster CR monitoring schema should be honored. The helm
chart was creating extra values that didn't match the schema by
copying the values such as createPrometheusRules that are only
used for template evaluation. Now only the monitoring values
from the schema will be added to the template.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 36f59bd527)
currently, it is not possible to disable hostNetwork. This pr fix this issue.
Signed-off-by: Yuval Manor <yuvalman958@gmail.com>
(cherry picked from commit 504e78a5ba)
This commit adds psp RoleBindings to rook-ceph-rgw role and
rook-ceph-purge-osd role. Without this commit, I cannot perform
rook-ceph-purge-osd job on PSP-enabled cluster.
Signed-off-by: Yuichiro Ueno <ueno@preferred.jp>
(cherry picked from commit 1ccc185a79)
The operator is very bursty and when starting up may need more memory
to reconcile all the CRs initially before it calms down.
The default of 256Mi was not sufficient for many clusters, so now
we bump up the limit to 512Mi.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 8571db0c7f)
Currently annotations are not set on the ingress resource
Signed-off-by: Erik Galajda <erik.galajda.sk@gmail.com>
(cherry picked from commit c422d40247)
Added hack in generate-rook-csv for proper
generation of csi nfs rbac in csv.
Added placeholder clusterrole and binding for
nfs nodeplugin sa, since operator-sdk
does not include sa without rules.
Signed-off-by: Rakshith R <rar@redhat.com>
(cherry picked from commit d0b67af23b)
Support is removed for k8s for various limitations such as
priority classes not working and csi driver feature
incompleteness and missing snapshots. Documentation is updated
with the new min version of k8s 1.17 and also the tests are
updated to run on the min version of 1.17.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit d26b6cf403)
The endpoint on the rgw realm pull spec is causing a failure
if not specified even when it is not expected to be
required. Now the endpoint has the json property to be
ommitted if not specified.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 7f709776b5)
With https://github.com/rook/rook/pull/10108 a placeholder role
and role binding were added for the rgw service account so
the csv generation would generate the service account. That
workaround also requires a rule to be added to the role or else
the generation is invalid. Now a rule is added to avoid that
issue. In the future we need to remove this role and binding
when the operator sdk is updated as explained in
https://github.com/rook/rook/issues/10141
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit 1dd343ed7e)
The csv will not properly include the rook-ceph-rgw service
account unless there is a role and binding that references
the service account. No roles are needed yet for the rgw
daemon, so this will add a placeholder only for the purposes
of csv generation.
Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
(cherry picked from commit e1550e7551)
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)
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)
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)
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)
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)
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)
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)
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)
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)