Skip to content

Commit

Permalink
docs: about the storage plane
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Jun 27, 2023
1 parent d1438f8 commit 3a467fe
Show file tree
Hide file tree
Showing 20 changed files with 1,358 additions and 0 deletions.
25 changes: 25 additions & 0 deletions argo.example/rook-ceph-cluster/app-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: rook-ceph-cluser
namespace: argocd
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: rook-ceph-cluster project
# Allow manifests to deploy from any Git repos
sourceRepos:
- '*'
# Only permit applications to deploy to the namespace in the same cluster
destinations:
- namespace: rook-ceph-cluser
server: https://kubernetes.default.svc

namespaceResourceWhitelist:
- kind: '*'
group: '*'

clusterResourceWhitelist:
- kind: '*'
group: '*'
39 changes: 39 additions & 0 deletions argo.example/rook-ceph-cluster/apps/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: rook-ceph-cluster-app
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: rook-ceph-cluster
source:
# You should have forked this repo. Change the URL to your fork.
repoURL: [email protected]:deepsquare-io/ClusterFactory.git
# You should use your branch too.
targetRevision: HEAD
path: helm/rook-ceph-cluster
helm:
releaseName: rook-ceph-cluster

# Create a values file inside your fork and change the values.
valueFiles:
[]
# - values-example.yaml

destination:
server: 'https://kubernetes.default.svc'
namespace: rook-ceph-cluster

syncPolicy:
automated:
prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ).
selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ).
allowEmpty: false # Allows deleting all application resources during automatic syncing ( false by default ).
syncOptions: []
retry:
limit: 5 # number of failed sync attempt retries; unlimited number of attempts if less than 0
backoff:
duration: 5s # the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h")
factor: 2 # a factor to multiply the base duration after each failed retry
maxDuration: 3m # the maximum amount of time allowed for the backoff strategy
6 changes: 6 additions & 0 deletions argo.example/rook-ceph-cluster/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: rook-ceph-cluster
labels:
app.kubernetes.io/name: rook-ceph-cluster
16 changes: 16 additions & 0 deletions argo.example/rook-ceph-cluster/network/rook-cluster-net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: 'k8s.cni.cncf.io/v1'
kind: NetworkAttachmentDefinition
metadata:
name: rook-cluster-net
namespace: rook-ceph-cluster
spec:
config: |
{
"cniVersion": "0.3.0",
"type": "ipvlan",
"master": "eth0",
"ipam":{
"type":"whereabouts",
"range": "10.11.0.0/24"
}
}
19 changes: 19 additions & 0 deletions argo.example/rook-ceph-cluster/network/rook-public-net.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: 'k8s.cni.cncf.io/v1'
kind: NetworkAttachmentDefinition
metadata:
name: rook-public-net
namespace: rook-ceph-cluster
spec:
config: |
{
"cniVersion": "0.3.0",
"type": "ipvlan",
"master": "eth0",
"ipam":{
"type":"whereabouts",
"range": "192.168.0.0/24",
"exclude": [
"192.168.0.0/30"
]
}
}
25 changes: 25 additions & 0 deletions argo.example/rook-ceph/app-project.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: rook-ceph
namespace: argocd
# Finalizer that ensures that project is not deleted until it is not referenced by any application
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
description: rook-ceph project
# Allow manifests to deploy from any Git repos
sourceRepos:
- '*'
# Only permit applications to deploy to the namespace in the same cluster
destinations:
- namespace: rook-ceph
server: https://kubernetes.default.svc

namespaceResourceWhitelist:
- kind: '*'
group: '*'

clusterResourceWhitelist:
- kind: '*'
group: '*'
39 changes: 39 additions & 0 deletions argo.example/rook-ceph/apps/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: rook-ceph-app
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: rook-ceph
source:
# You should have forked this repo. Change the URL to your fork.
repoURL: [email protected]:deepsquare-io/ClusterFactory.git
# You should use your branch too.
targetRevision: HEAD
path: helm-subcharts/rook-ceph
helm:
releaseName: rook-ceph

# Create a values file inside your fork and change the values.
valueFiles:
[]
# - values-example.yaml

destination:
server: 'https://kubernetes.default.svc'
namespace: rook-ceph

syncPolicy:
automated:
prune: true # Specifies if resources should be pruned during auto-syncing ( false by default ).
selfHeal: true # Specifies if partial app sync should be executed when resources are changed only in target Kubernetes cluster and no git change detected ( false by default ).
allowEmpty: false # Allows deleting all application resources during automatic syncing ( false by default ).
syncOptions: []
retry:
limit: 5 # number of failed sync attempt retries; unlimited number of attempts if less than 0
backoff:
duration: 5s # the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h")
factor: 2 # a factor to multiply the base duration after each failed retry
maxDuration: 3m # the maximum amount of time allowed for the backoff strategy
6 changes: 6 additions & 0 deletions argo.example/rook-ceph/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: rook-ceph
labels:
app.kubernetes.io/name: rook-ceph
4 changes: 4 additions & 0 deletions core.example/whereabouts/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resources:
- https://raw.githubusercontent.com/k8snetworkplumbingwg/whereabouts/master/doc/crds/daemonset-install.yaml
- https://raw.githubusercontent.com/k8snetworkplumbingwg/whereabouts/master/doc/crds/whereabouts.cni.cncf.io_ippools.yaml
- https://raw.githubusercontent.com/k8snetworkplumbingwg/whereabouts/master/doc/crds/whereabouts.cni.cncf.io_overlappingrangeipreservations.yaml
11 changes: 11 additions & 0 deletions helm-subcharts/rook-ceph-cluster/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v2
name: rook-ceph-cluster-subchart
description: rook-ceph-cluster subchart
type: application
version: 1.11.8
appVersion: '1.11.8'

dependencies:
- name: rook-ceph-cluster
version: 1.11.8
repository: https://charts.bitnami.com/bitnami
Loading

0 comments on commit 3a467fe

Please sign in to comment.