-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HBASE-27831 Introduce zookeeper-single-instance component
- Loading branch information
Showing
17 changed files
with
1,009 additions
and
0 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 |
---|---|---|
|
@@ -21,3 +21,6 @@ linklint-*.zip | |
linklint/ | ||
.checkstyle | ||
**/.checkstyle | ||
|
||
# detritus produced by kuttl | ||
kubeconfig* |
91 changes: 91 additions & 0 deletions
91
hbase-kubernetes-deployment/hbase-kubernetes-kustomize/pom.xml
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,91 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<!-- | ||
/** | ||
* 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. | ||
*/ | ||
--> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<artifactId>hbase-kubernetes-deployment</artifactId> | ||
<groupId>org.apache.hbase.operator.tools</groupId> | ||
<version>${revision}</version> | ||
<relativePath>..</relativePath> | ||
</parent> | ||
|
||
<artifactId>hbase-kubernetes-kustomize</artifactId> | ||
<name>Apache HBase - Kubernetes Kustomize</name> | ||
<description>Kustomize deployment descriptors.</description> | ||
<packaging>pom</packaging> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.hbase.operator.tools</groupId> | ||
<artifactId>hbase-kubernetes-testing-image</artifactId> | ||
<type>pom</type> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>exec-maven-plugin</artifactId> | ||
<configuration> | ||
<executable>src/test/resources/mvn_exec_run_kuttl.sh</executable> | ||
<useMavenLogger>true</useMavenLogger> | ||
<skip>${skipTests}</skip> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>kuttl-unit-tests</id> | ||
<phase>test</phase> | ||
<goals> | ||
<goal>exec</goal> | ||
</goals> | ||
<configuration> | ||
<arguments> | ||
<argument>--config</argument> | ||
<argument>src/test/resources/kuttl-test-unit.yaml</argument> | ||
<argument>--artifacts-dir</argument> | ||
<argument>target/kuttl-reports</argument> | ||
</arguments> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>kuttl-integration-tests</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>exec</goal> | ||
</goals> | ||
<configuration> | ||
<arguments> | ||
<argument>--config</argument> | ||
<argument>src/test/resources/kuttl-test-integration.yaml</argument> | ||
<argument>--artifacts-dir</argument> | ||
<argument>target/kuttl-reports</argument> | ||
</arguments> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
23 changes: 23 additions & 0 deletions
23
...nt/hbase-kubernetes-kustomize/src/main/kustomize/components/zookeeper/README.md
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,23 @@ | ||
<!-- | ||
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. | ||
--> | ||
|
||
Uses latest image from the apache zookeeper project. | ||
There is then a start script in 'single-instance/start.sh' | ||
which sets parameters for the zookeeper image and process | ||
on startup. Currently only logs to STDOUT/STDERR; there | ||
are no files in /var/log/zookeeper. |
35 changes: 35 additions & 0 deletions
35
...etes-kustomize/src/main/kustomize/components/zookeeper/single-instance/kustomization.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,35 @@ | ||
# 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: kustomize.config.k8s.io/v1alpha1 | ||
kind: Component | ||
|
||
configMapGenerator: | ||
- name: zookeeper-scripts | ||
files: | ||
- start.sh | ||
# Publish where the zk ensemble can be found. | ||
- name: zookeeper-quorum | ||
literals: | ||
# Hard-coded. Default we expect a simple standalone zk at this location. | ||
# One define is for hbase, the other for hadoop. | ||
- HBASE_ZOOKEEPER_QUORUM="zookeeper-0.zookeeper-headless" | ||
- HA_ZOOKEEPER_QUORUM="zookeeper-0.zookeeper-headless:2181" | ||
options: | ||
disableNameSuffixHash: true | ||
|
||
resources: | ||
- zookeeper.yaml |
Oops, something went wrong.