This repository has been archived by the owner on Sep 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from digitalrebar/helm-rook
Update Helm Stage with features that enable Rook install
- Loading branch information
Showing
6 changed files
with
142 additions
and
19 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
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,17 @@ | ||
--- | ||
Name: "rook/data-dir-host-path" | ||
Description: "Location of Ceph Storage" | ||
Documentation: | | ||
This should be set to match the desired location | ||
for Ceph storage. | ||
Default: /docker | ||
In future versions, this should be calculated or inferred based on the system inventory | ||
Schema: | ||
type: "string" | ||
default: "/docker" | ||
Meta: | ||
color: "blue" | ||
icon: "chess rock" | ||
title: "Community Content" |
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,30 @@ | ||
--- | ||
Name: helm-reference | ||
Description: Reference Helm Profiles (Istio, Rook, etc) | ||
Documentation: | | ||
DO NOT USE THIS PROFILE! | ||
Copy the contents of the helm/charts param into the Cluster! | ||
Meta: | ||
color: blue | ||
icon: grid layout | ||
title: Community Content | ||
Params: | ||
helm/charts: | ||
- chart: "stable/mysql" | ||
name: "mysql" | ||
- chart: "istio-1.0.1/install/kubernetes/helm/istio" | ||
name: "istio" | ||
targz: https://github.com/istio/istio/releases/download/1.0.1/istio-1.0.1-linux.tar.gz | ||
namespace: "istio-system" | ||
wait: true | ||
params: | ||
set: "sidecarInjectorWebhook.enabled=true" | ||
- chart: "rook-ceph" | ||
name: "rook-ceph" | ||
namespace: "rook-ceph-system" | ||
wait: true | ||
targz: "https://charts.rook.io/beta/rook-ceph-v0.8.1.tgz" | ||
templates: | ||
cluster: helm-rook.cfg.tmpl | ||
kubectlafter: | ||
- "create -f cluster.yaml" |
This file was deleted.
Oops, something went wrong.
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,72 @@ | ||
# Rook Yaml - See https://rook.io/docs/rook/master/ceph-quickstart.html | ||
# This example first defines some necessary namespace and RBAC security objects. | ||
# The actual Ceph Cluster CRD example can be found at the bottom of this example. | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: rook-ceph | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: rook-ceph-cluster | ||
namespace: rook-ceph | ||
--- | ||
kind: Role | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: rook-ceph-cluster | ||
namespace: rook-ceph | ||
rules: | ||
- apiGroups: [""] | ||
resources: ["configmaps"] | ||
verbs: [ "get", "list", "watch", "create", "update", "delete" ] | ||
--- | ||
# Allow the operator to create resources in this cluster's namespace | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: rook-ceph-cluster-mgmt | ||
namespace: rook-ceph | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: rook-ceph-cluster-mgmt | ||
subjects: | ||
- kind: ServiceAccount | ||
name: rook-ceph-system | ||
namespace: rook-ceph-system | ||
--- | ||
# Allow the pods in this namespace to work with configmaps | ||
kind: RoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: rook-ceph-cluster | ||
namespace: rook-ceph | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: rook-ceph-cluster | ||
subjects: | ||
- kind: ServiceAccount | ||
name: rook-ceph-cluster | ||
namespace: rook-ceph | ||
--- | ||
################################################################################# | ||
# The Ceph Cluster CRD example | ||
################################################################################# | ||
apiVersion: ceph.rook.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: rook-ceph | ||
namespace: rook-ceph | ||
spec: | ||
dataDirHostPath: {{.Param "rook/data-dir-host-path"}} | ||
dashboard: | ||
enabled: true | ||
storage: | ||
useAllNodes: true | ||
useAllDevices: false | ||
config: | ||
databaseSizeMB: "1024" | ||
journalSizeMB: "1024" |
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