forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add StatefulSet option for BookKeeper on Google Kubernetes Engine (ap…
…ache#1047) * add statefulset bookie config * re-add daemonset config * fix indentation issue * return to original pulsar env vars * fix minor indentation issues * fix metadata label issue * revert to original Deployment definition * add load balancer service * use only one bookie.yaml config * add proxy and cluster metadata configs * specify cluster metadata initialization as a Job rather than Pod * create separate storage classes for ledger and journal * fix YAML indentation issue * update docs for pulsar-admin pod * more documentation updates * update cluster metadata initialization instructions * add reference to pulsar proxy in docs * one more small doc update * avoid name clash in StorageClass definitions * add selector to statefulset definition in bookie.yaml * add pod antiaffinity to bookie config * remove headless Service definition for bookies * update statefulset to eliminate advertisedAddress * Added ASF header * Added ASF header * move stray YAML files into /deployment * change containers/initContainers order in config for readability * add section on client connections
- Loading branch information
1 parent
d6d4fa3
commit 53fa9d0
Showing
6 changed files
with
350 additions
and
161 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
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
42 changes: 42 additions & 0 deletions
42
deployment/kubernetes/google-kubernetes-engine/cluster-metadata.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,42 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: pulsar-cluster-metadata-init | ||
labels: | ||
app: pulsar | ||
component: broker | ||
spec: | ||
template: | ||
spec: | ||
containers: | ||
- name: pulsar-cluster-metadata-init-container | ||
image: apachepulsar/pulsar:latest | ||
command: ["sh", "-c"] | ||
args: | ||
- > | ||
bin/pulsar initialize-cluster-metadata \ | ||
--cluster us-central \ | ||
--zookeeper zookeeper \ | ||
--global-zookeeper zookeeper \ | ||
--web-service-url http://broker.default.svc.cluster.local:8080/ \ | ||
--broker-service-url pulsar://broker.default.svc.cluster.local:6650/ || true; | ||
restartPolicy: Never |
Oops, something went wrong.