Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add rook app #3

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bases/common/cert-manager/cert-manager-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
- chart: cert-manager
helm:
valueFiles:
- $values/bases/cert-manager/helm/cert-manager-values.yaml
- $values/bases/common/cert-manager/helm/cert-manager-values.yaml
parameters:
- name: installCRDs # Not recommended for prod installs according to: https://cert-manager.io/docs/installation/helm/
value: "true"
Expand All @@ -23,7 +23,7 @@ spec:
ref: values
- repoURL: 'https://github.com/ClubCedille/k8s-base.git'
targetRevision: master
path: bases/cert-manager/issuers
path: bases/common/cert-manager/issuers
syncPolicy:
automated: {}
syncOptions:
Expand Down
3 changes: 2 additions & 1 deletion bases/common/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ kind: Kustomization

resources:
- cert-manager/
- contour/
- contour/
- rook/
5 changes: 5 additions & 0 deletions bases/common/rook/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- rook-app.yaml
33 changes: 33 additions & 0 deletions bases/common/rook/ressources/cluster-external.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#################################################################################################################
# Define the settings for the rook-ceph-external cluster with common settings for a production cluster.

# For example, if Rook is not managing any existing cluster in the 'rook-ceph' namespace do:
# kubectl create -f crds.yaml -f common.yaml -f operator.yaml
# kubectl create -f cluster-external.yaml

# If there is already a cluster managed by Rook in 'rook-ceph' then do:
# kubectl create -f common-external.yaml
# kubectl create -f cluster-external.yaml
#################################################################################################################
apiVersion: ceph.rook.io/v1
kind: CephCluster
metadata:
name: rook-ceph-external
namespace: rook-ceph-external # namespace:cluster
spec:
external:
enable: true
crashCollector:
disable: true
healthCheck:
daemonHealth:
mon:
disabled: false
interval: 45s
# optionally, the ceph-mgr IP address can be passed to gather metric from the prometheus exporter
# monitoring:
# enabled: true
# rulesNamespace: rook-ceph
# externalMgrEndpoints:
# - ip: ip
# externalMgrPrometheusPort: 9283
83 changes: 83 additions & 0 deletions bases/common/rook/ressources/common-external.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
###################################################################################################################
# Create the common resources that are necessary to start an external Ceph cluster in a different namespace
# These resources can be created after an operator that is already running but assumes common.yaml has been injected
# The samples all assume that your existing operator running "rook-ceph" namespace will also watch and have permissions
# to interact with an external cluster configured in "rook-ceph-external" cluster.
#
# kubectl create -f crds.yaml -f common.yaml -f operator.yaml -f common-external.yaml
#
# If there is no cluster managed by the current Rook Operator
# you can simply replace all occurrence of rook-ceph-external with rook-ceph
#
# And remove the following code:
#
# apiVersion: v1
# kind: Namespace
# metadata:
# name: rook-ceph-external
#
# Then kubectl create -f cluster-external.yaml
###################################################################################################################
apiVersion: v1
kind: Namespace
metadata:
name: rook-ceph-external # namespace:cluster

Check warning on line 24 in bases/common/rook/ressources/common-external.yaml

View workflow job for this annotation

GitHub Actions / kubernetes-repo-standards / yaml-check / yaml-lint-check

24:28 [comments] too few spaces before comment
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rook-ceph-cluster-mgmt
namespace: rook-ceph-external # namespace:cluster

Check warning on line 30 in bases/common/rook/ressources/common-external.yaml

View workflow job for this annotation

GitHub Actions / kubernetes-repo-standards / yaml-check / yaml-lint-check

30:33 [comments] too few spaces before comment
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: rook-ceph-cluster-mgmt
subjects:
- kind: ServiceAccount
name: rook-ceph-system
namespace: rook-ceph # namespace:operator

Check warning on line 38 in bases/common/rook/ressources/common-external.yaml

View workflow job for this annotation

GitHub Actions / kubernetes-repo-standards / yaml-check / yaml-lint-check

38:26 [comments] too few spaces before comment
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rook-ceph-cmd-reporter
namespace: rook-ceph-external # namespace:cluster

Check warning on line 44 in bases/common/rook/ressources/common-external.yaml

View workflow job for this annotation

GitHub Actions / kubernetes-repo-standards / yaml-check / yaml-lint-check

44:33 [comments] too few spaces before comment
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: rook-ceph-cmd-reporter
subjects:
- kind: ServiceAccount
name: rook-ceph-cmd-reporter
namespace: rook-ceph-external # namespace:cluster

Check warning on line 52 in bases/common/rook/ressources/common-external.yaml

View workflow job for this annotation

GitHub Actions / kubernetes-repo-standards / yaml-check / yaml-lint-check

52:35 [comments] too few spaces before comment
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: rook-ceph-cmd-reporter
namespace: rook-ceph-external # namespace:cluster

Check warning on line 58 in bases/common/rook/ressources/common-external.yaml

View workflow job for this annotation

GitHub Actions / kubernetes-repo-standards / yaml-check / yaml-lint-check

58:33 [comments] too few spaces before comment
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: rook-ceph-default
namespace: rook-ceph-external # namespace:cluster

Check warning on line 64 in bases/common/rook/ressources/common-external.yaml

View workflow job for this annotation

GitHub Actions / kubernetes-repo-standards / yaml-check / yaml-lint-check

64:33 [comments] too few spaces before comment
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: rook-ceph-cmd-reporter
namespace: rook-ceph-external # namespace:cluster

Check warning on line 70 in bases/common/rook/ressources/common-external.yaml

View workflow job for this annotation

GitHub Actions / kubernetes-repo-standards / yaml-check / yaml-lint-check

70:33 [comments] too few spaces before comment
rules:
- apiGroups:
- ""
resources:
- pods
- configmaps
verbs:
- get
- list
- watch
- create
- update
- delete
Loading
Loading