feat(k01): replace strimzi kafka with redpanda
build-and-push-harbor / docker-build-push (push) Waiting to run
build-and-push-harbor / docker-build-push (push) Waiting to run
This commit is contained in:
+13
-8
@@ -3,7 +3,7 @@ set -euo pipefail
|
||||
|
||||
REGISTRY_HOST="registry.juwan.xhttp.zip"
|
||||
CNPG_VERSION="1.29.0"
|
||||
STRIMZI_VERSION="1.0.0"
|
||||
REDPANDA_OP_VERSION="v26.1.3"
|
||||
REDIS_OP_VERSION="0.24.0"
|
||||
MONGODB_OP_VERSION="1.8.0"
|
||||
|
||||
@@ -82,17 +82,22 @@ kubectl apply --server-side --force-conflicts -f \
|
||||
kubectl -n cnpg-system set resources deploy/cnpg-controller-manager \
|
||||
--requests=cpu=30m,memory=40Mi --limits=cpu=200m,memory=200Mi
|
||||
|
||||
kubectl create namespace kafka 2>/dev/null || true
|
||||
curl -sfL "https://github.com/strimzi/strimzi-kafka-operator/releases/download/${STRIMZI_VERSION}/strimzi-cluster-operator-${STRIMZI_VERSION}.yaml" \
|
||||
| sed 's/namespace: .*/namespace: kafka/' \
|
||||
| kubectl apply --server-side --force-conflicts -n kafka -f -
|
||||
kubectl -n kafka set resources deploy/strimzi-cluster-operator \
|
||||
--requests=cpu=50m,memory=200Mi --limits=cpu=500m,memory=400Mi
|
||||
kubectl create namespace redpanda 2>/dev/null || true
|
||||
|
||||
helm repo add ot-helm https://ot-container-kit.github.io/helm-charts/ 2>/dev/null || true
|
||||
helm repo add mongodb https://mongodb.github.io/helm-charts 2>/dev/null || true
|
||||
helm repo add redpanda https://charts.redpanda.com 2>/dev/null || true
|
||||
helm repo update
|
||||
|
||||
helm upgrade --install redpanda-controller redpanda/operator \
|
||||
--version "${REDPANDA_OP_VERSION}" \
|
||||
--namespace redpanda \
|
||||
--set crds.enabled=true \
|
||||
--set resources.requests.cpu=30m \
|
||||
--set resources.requests.memory=50Mi \
|
||||
--set resources.limits.cpu=100m \
|
||||
--set resources.limits.memory=128Mi
|
||||
|
||||
helm upgrade --install redis-operator ot-helm/redis-operator \
|
||||
--version "${REDIS_OP_VERSION}" \
|
||||
--namespace redis-operator --create-namespace \
|
||||
@@ -111,7 +116,7 @@ helm upgrade --install mongodb-kubernetes mongodb/mongodb-kubernetes \
|
||||
--set operator.resources.limits.memory=200Mi
|
||||
|
||||
kubectl -n cnpg-system rollout status deploy/cnpg-controller-manager --timeout=300s
|
||||
kubectl -n kafka rollout status deploy/strimzi-cluster-operator --timeout=300s
|
||||
kubectl -n redpanda rollout status deploy/redpanda-controller-operator --timeout=300s
|
||||
kubectl -n redis-operator rollout status deploy/redis-operator --timeout=300s
|
||||
kubectl -n mongodb-operator rollout status deploy/mongodb-kubernetes-operator --timeout=300s
|
||||
|
||||
|
||||
Reference in New Issue
Block a user