feat(manifests): add OpenEBS storage system manifests and initialization script
Signed-off-by: 孙振宇 <>
This commit is contained in:
parent
24d662f18b
commit
01b16cd60c
2
cluster/manifests/freeleaps-storage-system/README.md
Normal file
2
cluster/manifests/freeleaps-storage-system/README.md
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Please check prerequisties before install OpenEBS:
|
||||||
|
https://openebs.io/docs/user-guides/replicated-storage-user-guide/replicated-pv-mayastor/rs-installation#verifyenable-huge-page-support
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: freeleaps-storage-system
|
||||||
|
labels:
|
||||||
|
name: freeleaps-storage-system
|
||||||
@ -0,0 +1,66 @@
|
|||||||
|
openebs-crds:
|
||||||
|
csi:
|
||||||
|
volumeSnapshots:
|
||||||
|
enabled: true
|
||||||
|
keep: true
|
||||||
|
|
||||||
|
# Refer to https://github.com/openebs/dynamic-localpv-provisioner/blob/v4.1.2/deploy/helm/charts/values.yaml for complete set of values.
|
||||||
|
localpv-provisioner:
|
||||||
|
rbac:
|
||||||
|
create: true
|
||||||
|
hostpathClass:
|
||||||
|
name: freeleaps-node-local
|
||||||
|
|
||||||
|
# Refer to https://github.com/openebs/zfs-localpv/blob/v2.6.2/deploy/helm/charts/values.yaml for complete set of values.
|
||||||
|
zfs-localpv:
|
||||||
|
crds:
|
||||||
|
zfsLocalPv:
|
||||||
|
enabled: false
|
||||||
|
csi:
|
||||||
|
volumeSnapshots:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Refer to https://github.com/openebs/lvm-localpv/blob/lvm-localpv-1.6.2/deploy/helm/charts/values.yaml for complete set of values.
|
||||||
|
lvm-localpv:
|
||||||
|
crds:
|
||||||
|
lvmLocalPv:
|
||||||
|
enabled: false
|
||||||
|
csi:
|
||||||
|
volumeSnapshots:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# Refer to https://github.com/openebs/mayastor-extensions/blob/v2.7.2/chart/values.yaml for complete set of values.
|
||||||
|
mayastor:
|
||||||
|
csi:
|
||||||
|
node:
|
||||||
|
initContainers:
|
||||||
|
enabled: false
|
||||||
|
etcd:
|
||||||
|
# -- Kubernetes Cluster Domain
|
||||||
|
clusterDomain: cluster.local
|
||||||
|
localpv-provisioner:
|
||||||
|
enabled: false
|
||||||
|
crds:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
# -- Configuration options for pre-upgrade helm hook job.
|
||||||
|
preUpgradeHook:
|
||||||
|
image:
|
||||||
|
# -- The container image registry URL for the hook job
|
||||||
|
registry: docker.io
|
||||||
|
# -- The container repository for the hook job
|
||||||
|
repo: bitnami/kubectl
|
||||||
|
# -- The container image tag for the hook job
|
||||||
|
tag: "1.25.15"
|
||||||
|
# -- The imagePullPolicy for the container
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
engines:
|
||||||
|
local:
|
||||||
|
lvm:
|
||||||
|
enabled: false
|
||||||
|
zfs:
|
||||||
|
enabled: false
|
||||||
|
replicated:
|
||||||
|
mayastor:
|
||||||
|
enabled: false
|
||||||
@ -1,6 +1,3 @@
|
|||||||
UPDATED_AT:20250109(UTC+8)
|
|
||||||
LAST_UPDATED_BY:SUNZHENYU
|
|
||||||
|
|
||||||
bitnami,https://charts.bitnami.com/bitnami,force-update
|
bitnami,https://charts.bitnami.com/bitnami,force-update
|
||||||
argo,https://argoproj.github.io/argo-helm,force-update
|
argo,https://argoproj.github.io/argo-helm,force-update
|
||||||
prometheus-community,https://prometheus-community.github.io/helm-charts,force-update
|
prometheus-community,https://prometheus-community.github.io/helm-charts,force-update
|
||||||
|
|||||||
28
cluster/manifests/init-helm-repos.sh
Executable file
28
cluster/manifests/init-helm-repos.sh
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -eu -o pipefail
|
||||||
|
|
||||||
|
# Check helm is installed
|
||||||
|
if ! command -v helm &> /dev/null; then
|
||||||
|
echo "Helm is not installed. Please install helm first."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check REPO.list is exist in helm-repos directory
|
||||||
|
if [ ! -f helm-repos/REPO.list ]; then
|
||||||
|
echo "REPO.list is not exist in helm-repos directory. Please create REPO.list file first."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Read REPO.list file in helm-repos directory, and add them to helm repos
|
||||||
|
while IFS= read -r line
|
||||||
|
do
|
||||||
|
# Split line with comma
|
||||||
|
IFS=',' read -r -a array <<< "$line"
|
||||||
|
echo "Add helm repo ${array[0]} with url ${array[1]}, and ${array[2]}"
|
||||||
|
cmd="helm repo add ${array[0]} ${array[1]} --${array[2]}"
|
||||||
|
# execute command
|
||||||
|
eval "$cmd"
|
||||||
|
done < helm-repos/REPO.list
|
||||||
|
|
||||||
|
echo "Helm repos are added successfully."
|
||||||
Loading…
Reference in New Issue
Block a user