-
Notifications
You must be signed in to change notification settings - Fork 469
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 #916 from Altinity/improve_zookeeper_scaleout
Improve zookeeper scaleout
- Loading branch information
Showing
13 changed files
with
1,439 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
ZOOKEEPER_OPERATOR_NAMESPACE=${ZOOKEEPER_OPERATOR_NAMESPACE:-zookeeper-operator} | ||
kubectl delete ns "$ZOOKEEPER_OPERATOR_NAMESPACE" |
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,9 @@ | ||
#!/usr/bin/env bash | ||
ZOOKEEPER_OPERATOR_VERSION=${ZOOKEEPER_OPERATOR_VERSION:-v0.2.13} | ||
ZOOKEEPER_OPERATOR_NAMESPACE=${ZOOKEEPER_OPERATOR_NAMESPACE:-zookeeper-operator} | ||
kubectl create ns "${ZOOKEEPER_OPERATOR_NAMESPACE}" || true | ||
kubectl apply -f "https://github.com/pravega/zookeeper-operator/raw/${ZOOKEEPER_OPERATOR_VERSION}/deploy/crds/zookeeper.pravega.io_zookeeperclusters_crd.yaml" | ||
kubectl apply -n "${ZOOKEEPER_OPERATOR_NAMESPACE}" -f <( | ||
curl -sL "https://github.com/pravega/zookeeper-operator/raw/${ZOOKEEPER_OPERATOR_VERSION}/deploy/all_ns/rbac.yaml" | sed -e "s/namespace: default/namespace: ${ZOOKEEPER_OPERATOR_NAMESPACE}/g" | sed -e "s/v1beta1/v1/g" | ||
) | ||
kubectl apply -n "${ZOOKEEPER_OPERATOR_NAMESPACE}" -f "https://github.com/pravega/zookeeper-operator/raw/${ZOOKEEPER_OPERATOR_VERSION}/deploy/all_ns/operator.yaml" |
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,21 @@ | ||
apiVersion: zookeeper.pravega.io/v1beta1 | ||
kind: ZookeeperCluster | ||
metadata: | ||
name: zookeeper | ||
labels: | ||
app: zookeeper-operator | ||
spec: | ||
replicas: 1 | ||
image: | ||
repository: pravega/zookeeper | ||
tag: 0.2.13 | ||
labels: | ||
app: zookeeper-operator | ||
storageType: persistence | ||
persistence: | ||
reclaimPolicy: Delete | ||
spec: | ||
storageClassName: "standard" | ||
resources: | ||
requests: | ||
storage: 1Gi |
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,21 @@ | ||
apiVersion: zookeeper.pravega.io/v1beta1 | ||
kind: ZookeeperCluster | ||
metadata: | ||
name: zookeeper | ||
labels: | ||
app: zookeeper-operator | ||
spec: | ||
replicas: 3 | ||
image: | ||
repository: pravega/zookeeper | ||
tag: 0.2.13 | ||
labels: | ||
app: zookeeper-operator | ||
storageType: persistence | ||
persistence: | ||
reclaimPolicy: Delete | ||
spec: | ||
storageClassName: "standard" | ||
resources: | ||
requests: | ||
storage: 1Gi |
Oops, something went wrong.