Commit Graph
230 Commits
Author SHA1 Message Date
Travis Nielsen 6af3c4bd8c Merge pull request #2942 from karmab/ocp4
set correct flexvolume dir for openshift4
2019-04-15 21:28:50 -06:00
Alexander Trost 8bc26d9096 k8sclient: Update all operators to use apps/v1
All usages of k8s go client are now also using the versioned `AppsV1() `
call for the client.

Updated MySQL and Wordpress, and Kube Registy examples to use apps/v1
Deployments.

Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-04-12 09:25:42 +02:00
Travis Nielsen f52df1aafd Merge pull request #2934 from Madhu-1/csi-doc-update
update ceph-csi rbd snapshot document
2019-04-10 17:28:15 -06:00
Travis Nielsen 38be11936c Merge pull request #2859 from phlogistonjohn/jjm-csi-simplify-1
Simplify Ceph CSI setup
2019-04-10 17:23:41 -06:00
Travis Nielsen 1113688aa8 Merge pull request #2952 from dyusupov/master
support for configurable trlog settings
2019-04-10 17:18:47 -06:00
John Mulligan f6c15bfb5a ceph csi: include required templates in image
Include the mandatory template files in the rook ceph image
so that the user-driven configuration for CSI and flex do not
need to differ in this aspect.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2019-04-10 17:53:28 -04:00
travisn 5ebb651e37 ceph: update the cephcluster custom resource with ceph health
The CephCluster resource will now expose the health of the ceph cluster
so admins can query the status with k8s api or kubectl instead of
needing to run the rook toolbox. The operator will query the
ceph status periodically and update the status in the custom resource.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-10 14:41:18 -06:00
Madhu Rajanna b5001ebfa7 update ceph-csi rbd snapshot document
The current document is too old and it has
a reference to the master branch(earlier
master branch referred to csi-v0.3.0).
This PR updated the snapshot document
wrt to the changes required for csi-v1.0.0

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-04-10 20:30:41 +05:30
Madhu Rajanna d9dd81396c remove attacher statefulset for rbd csi driver
deploy attacher as a container inside  rbd provisioner
stateful set

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-04-10 18:27:08 +05:30
Dmitry Yusupov e1f61219b4 support for configurable trlog settings
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-04-09 15:20:18 -07:00
Madhu Rajanna 38527239c4 simplify socker directory name inside container
socket directory name need not follow
the driver name format,renamed socket directory
to simple names.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-04-09 16:08:56 +05:30
Madhu Rajanna 6461d4866f update driver name as per CSI spec
as per CSI spec,The driver name MUST follow
domain name notation format (https://tools.ietf.org/html/rfc1035#section-2.3.1).

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-04-09 15:48:16 +05:30
karmab b6fd399f02 Set correct flexvolume dir for openshift4
We make sure to use the correct path for opc4 install

Signed-off-by: karmab <karimboumedhel@gmail.com>
2019-04-08 18:55:15 +02:00
Travis Nielsen ef336964cd Merge pull request #2820 from travisn/yaml-refactor
Refactor the ceph cluster crd and related example yamls
2019-04-04 16:01:04 -06:00
travisn aa8b9d7b9d helm test charts skip the role creation since included in the chart
Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-04 12:42:08 -06:00
travisn eb74bf5547 Configure a cluster in the same namespace as the operator
To simplify the deployment of Rook, both the operator and cluster crd are now created in the
same namespace in the examples. By default the operator will only manage a cluster crd
in the same namespace instead of watching for clusters in all namespaces. To manage a cluster
in another namespace, the roles in latter half of operator-common.yaml need to point to the new
namespace and the operator env var ROOK_CURRENT_NAMESPACE_ONLY should be set to false.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-04 12:42:08 -06:00
travisn ceb2be1aca refactor the ceph cluster crd and related example yamls
The RBAC is tedious to copy everywhere with the cluster.yaml and is confusing to newcomers.
The common resources are now factored into the operator-common.yaml for the common scenario
of creating a single cluster. Examples are now added for configuration of the operator
and cluster crds to provide a more complete set.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-04-04 12:42:07 -06:00
Olivier Cloirec 371c294096 Fix Helm Chart DISCOVER_TOLERATION binding
Bind to `.Values.discover.toleration` (instead of `agent`)

Signed-off-by: Olivier Cloirec <5033885+clook@users.noreply.github.com>
2019-04-04 08:25:48 +02:00
Alexander Trost ee308ec920 Merge pull request #2911 from noahdesu/dmcrypt-docs
ceph: add docs for encrypted devices
2019-04-02 23:06:04 +02:00
Noah Watkins 0d6c5fe032 ceph: add docs for encrypted devices
fixes: #2779

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-04-01 16:19:16 -07:00
Travis Nielsen be80c32535 Merge pull request #2457 from whereisaaron/patch-2
Add a Kubernetes Ingress example for dashboard
2019-03-30 18:36:30 -10:00
Dmitry Yusupov 9ad68500fa support for configurable resource profiles
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-29 10:33:13 -07:00
Aaron Roydhouse e3bcd5031a Add a Kubernetes Ingress example for dashboard and documentation for it
The examples folder has Service examples but no Ingress examples. This example Ingress is important because it demonstrates how to configure and Ingress that will work with the self-signed certificate the `rook-ceph` installs. The Service name and Namespace matches the default `rook-ceph` install.

Signed-off-by: Aaron Roydhouse <aaron@roydhouse.com>
2019-03-27 12:21:21 -04:00
Alexander Trost db218e42d7 Merge pull request #2879 from sabbot/segments
Edgefs #2878. Add multiple cluster support for CSI driver
2019-03-27 00:13:22 +01:00
Anton Skriptsov a571ed6bd0 Edgefs #2878. Add multiple cluster support for CSI driver
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-03-22 14:01:48 -07:00
Dmitry Yusupov f58fcd0fc5 Support for OpenStack/SWIFT CRD
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-21 16:32:28 -07:00
Alexander Trost 2403655cb5 Merge pull request #2837 from sabbot/PR2513-zone-support
Edgefs:2513 Add failure domain and zones
2019-03-21 16:13:11 +01:00
Anton Skriptsov 4f909d86ac Edgefs:2513 Add failure domain and zones
Signed-off-by: Anton Skriptsov <sabbotagge@gmail.com>
2019-03-21 05:02:26 -07:00
travisn 7548e76bab Increase the number of mons when nodes are added
The desired number of mons could change depending on the number of nodes in a cluster.
For example, three mons would be the min number of mons in a production cluster with at
least three nodes. If there are five or more nodes, the number of mons could increase
to five in order to increase the failure tolerance to two nodes.

This is accomplished by a new setting in the cluster CRD preferredCount. If the number
of hosts exceeds preferredCount, more mons are added to quorum. If the number
of hosts drops below the preferred count, the operator would reduce the quorum size to
the smaller desired count.

Signed-off-by: travisn <tnielsen@redhat.com>
2019-03-19 13:00:37 -06:00
Dmitry Yusupov 213e440923 support for configurable rtlfs backend
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-03-15 10:14:44 -07:00
Anton Skriptsov 8049de452b EdgeFS CSI for Block interface CRDs, dockumentation and examples
Signed-off-by: Anton Skriptsov <anton.skriptsov@nexenta.com>
2019-03-13 14:40:06 -07:00
Dmitry Mishin 0aa1d788ef Added PSP RBAC for rook-edgefs-cluster SA
Fixes https://github.com/rook/rook/issues/2795

Signed-off-by: Dmitry Mishin <dmitry.mishin@gmail.com>
2019-03-11 21:57:37 -07:00
Jared Watts cb3ada9795 Merge pull request #2752 from ZYecho/add-rbac
cockroachdb: add minimal rbac access for cockroachdb pod
2019-03-07 20:21:56 -08:00
zhangyue baf27bdd8e cockroachdb: modify cockroachdb operator rbac access
Signed-off-by: zhangyue <zy675793960@yeah.net>
2019-03-05 14:16:10 +08:00
Alexander Trost a8095a888c Merge pull request #2455 from whereisaaron/chart-notes
Add to NOTES.txt the need for manually installed RBAC and links
2019-03-05 07:04:42 +01:00
Alexander Trost 42c71768c0 Merge pull request #2428 from k911/improve-registry-example
docs: Improve HA docker registry example
2019-03-04 14:26:05 +01:00
Alexander Trost 409a5129e2 Merge pull request #2614 from chaosaffe/master
update image for coreos reboot daemonsets
2019-03-04 14:08:51 +01:00
Travis Nielsen 816d698655 Merge pull request #2742 from noahdesu/dmcrypt
ceph: share host ipc namespace with provision pod
2019-03-01 13:21:05 -07:00
Noah Watkins 6597531ed0 ceph: share host ipc namespace with provision pod
this is needed as cryptsetup in the pod and udev on the host coordinate
via a semaphore that must be visible in both contexts.

note that additionally the host needs to have dmcrypt compiled with udev
synchronization, which at least one minikube version does not have.

fixes: #923

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
2019-03-01 10:50:19 -08:00
Alexander Trost dcc5d2b5ea Added ROOK_HOSTPATH_REQUIRES_PRIVILEGED as value to Helm Chart
Signed-off-by: Alexander Trost <galexrt@googlemail.com>
2019-02-28 20:42:51 +01:00
Alexander Trost 818bf38b0c Merge pull request #2685 from dyusupov/master
EdgeFS: support for S3 buckets as DNS subdomain style
2019-02-23 23:21:06 +01:00
Travis Nielsen 8708c5cc16 Merge pull request #2697 from jtlayton/wip-rbac
ceph: fix up RBAC permissions
2019-02-22 12:58:21 -07:00
Jeff Layton a5252dccee ceph: fix up RBAC permissions
I had some trouble with RBAC under minikube when testing some
ceph-mgr functionality. This patch tweaks rook-ceph-mgr-system to
be a ClusterRole, and rook-ceph-mgr-cluster to use a
ClusterRoleBinding.

While we're in there, remove the namespace fields from the
ClusterRoleBindings since they just get ignored.

Finally, also fix up the upgrade test to remove the objects that have
changed and reinstantiate them properly.

Suggested-by: Travis Nielsen <tnielsen@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-02-22 06:30:49 -05:00
Travis Nielsen 3b14e51c16 Merge pull request #2678 from jtlayton/wip-bootstrap
Add a way to start up a minimal ceph cluster
2019-02-21 13:31:05 -07:00
Jeff Layton 20de4920ba examples/ceph: fix permissions on the files
The yaml files are not executable.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-02-21 15:20:18 -05:00
Jeff Layton 77641f8ca8 Add a bootstrap.yaml file to ceph examples directory
We'd like to be able to let people start a super-bare-bones cluster,
that can then be scaled up from the orchestrator + dashboard.

Start only a single mon and a mgr daemon. Don't do any setup of osds.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-02-21 15:19:30 -05:00
Dmitry Yusupov a30966b6e4 EdgeFS: support for S3 buckets as DNS subdomain style
Signed-off-by: Dmitry Yusupov <dmitry.yusupov@nexenta.com>
2019-02-21 09:00:42 -08:00
Madhu Rajanna 2a80d505ae Fix misspelled words
Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2019-02-20 19:07:29 +05:30
Travis Nielsen 913f0e0e65 Merge pull request #2611 from rootfs/apps-api
Use Apps api over extensions
2019-02-14 16:25:33 -07:00
Huamin Chen 1b21e42a90 convert extensions to apps
Signed-off-by: Huamin Chen <hchen@redhat.com>
2019-02-14 16:06:05 -05:00