All Projects → engapa → zookeeper-k8s-openshift

engapa / zookeeper-k8s-openshift

Licence: Apache-2.0 license
Zookeeper docker container, ready for deployments on kubernetes and openshift

Programming Languages

shell
77523 projects
Makefile
30231 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to zookeeper-k8s-openshift

Reloader
Reloader is maintained by Stakater. Like it? Please let us know at [email protected]
Stars: ✭ 2,930 (+13218.18%)
Mutual labels:  openshift, statefulsets
openshift-golang-template
Template for running Go programs on OpenShift v3
Stars: ✭ 17 (-22.73%)
Mutual labels:  openshift
s2i-ruby-container
Ruby container images based on Red Hat Software Collections and intended for OpenShift and general usage, that provide a platform for building and running Ruby applications. Users can choose between Red Hat Enterprise Linux, Fedora, and CentOS based images.
Stars: ✭ 55 (+150%)
Mutual labels:  openshift
ose-pivproxy
A containerized PIV/CAC/x509 proxy for OSE
Stars: ✭ 19 (-13.64%)
Mutual labels:  openshift
dockerevil
My security researches involving Docker and Openshift
Stars: ✭ 28 (+27.27%)
Mutual labels:  openshift
web
Hugo content for the openshift.tips blog
Stars: ✭ 48 (+118.18%)
Mutual labels:  openshift
ocp4upc
OCP4 Upgrade Paths Checker
Stars: ✭ 30 (+36.36%)
Mutual labels:  openshift
airlock-waf-kubernetes-openshift-integration
Integrate Airlock WAF in a Kubernetes or OpenShift Environment
Stars: ✭ 12 (-45.45%)
Mutual labels:  openshift
rpc-spring-boot-starter
自定义rpc框架,支持Java序列化和protobuf序列化协议,多种负载均衡算法
Stars: ✭ 75 (+240.91%)
Mutual labels:  zookeeper
kuberig
Deploy to Kubernetes/OpenShift by leveraging your developer skills - no yaml required!
Stars: ✭ 31 (+40.91%)
Mutual labels:  openshift
istio-workspace
Safely develop and test on any Kubernetes cluster without affecting others.
Stars: ✭ 55 (+150%)
Mutual labels:  openshift
kubernetes-kafka
Managing kafka clusters in Kubernetes and OpenShift
Stars: ✭ 18 (-18.18%)
Mutual labels:  openshift
kubernetes-kafka
Kafka integration for Kubernetes
Stars: ✭ 80 (+263.64%)
Mutual labels:  statefulsets
apb-examples
A repository of example ansible-playbook bundles. THIS REPO IS DEPRECATED. Please look at https://github.com/ansibleplaybookbundle/ For updated examples.
Stars: ✭ 15 (-31.82%)
Mutual labels:  openshift
openshift-wiki
Gitbook URL of WIKI
Stars: ✭ 16 (-27.27%)
Mutual labels:  openshift
Chowkidar
A kubernetes controller that watches/observes events & then takes configured actions – [✩Star] if you're using it!
Stars: ✭ 55 (+150%)
Mutual labels:  openshift
openshift-slack-notifications
OpenShift slack notifications
Stars: ✭ 14 (-36.36%)
Mutual labels:  openshift
toy-rpc
Java基于Netty,Protostuff和Zookeeper实现分布式RPC框架
Stars: ✭ 55 (+150%)
Mutual labels:  zookeeper
codewind-vscode
Extension for developing cloud-native, containerized applications from VS Code
Stars: ✭ 17 (-22.73%)
Mutual labels:  openshift
bobbycar
IoT Transportation demo using Red Hat OpenShift and Middleware technologies
Stars: ✭ 33 (+50%)
Mutual labels:  openshift

Zookeeper Docker Image

Build status Docker Pulls Docker image version OSS

This project aims to provide zookeeper docker images and prepare them to be deployed as 'statefulsets' on kubernetes (openshift).

These scripts are used to build/run the docker image/container:

  • zookeeper-env.sh: Export needed env variable for other scripts.
  • zookeeper-download.sh: is used to download the suitable release of zookeeper (version ZOO_VERSION).
  • zkBootstrap.sh: Initializes zookeeper dynamically, based on utils-docker project.

Build and push the docker image

Set env variables DOCKER_ORG (defaults to engapa), DOCKER_IMAGE (defaults to zookeeper) and ZOO_VERSION (the real zookeeper version that will be downloaded into the docker image) to tag docker image as you wish and then build, test and push:

$ make clean docker-build docker-test docker-push

Run a container

Let's run a zookeeper container with default environment variables:

$ docker run -it --name zk engapa/zookeeper:${ZOO_VERSION}

Setting up

Users may configure parameters in config files just adding environment variables with specific name patterns.

This table collects the patterns of variable names which will are written in the suitable file:

PREFIX FILE (${ZOO_HOME}/config) Example
ZK_ zoo.cfg ZK_maxClientCnxns=0 --> maxClientCnxns=0
LOG4J_ log4j.properties LOG4J_zookeeper_root_logger=INFO, CONSOLE--> zookeeper.root.logger=INFO, CONSOLE
JAVA_ZK_ java.env JAVA_ZK_JVMFLAG="-Xmx1G -Xms1G" --> JVMFLAG="-Xmx1G -Xms1G"

So we can configure our zookeeper server by adding environments variables:

$ docker run -it -d --name zk -e "SETUP_DEBUG=true" -e "LOG4J_zookeeper_root_logger=DEBUG, CONSOLE" engapa/zookeeper:${ZOO_VERSION}

NOTE: We've passed a SETUP_DEBUG environment variable with value 'true' to view the setup process of config files. . Show logs by command docker logs ZK

Also you may use --env-file option to load these variables from a file.

And, of course, you could provide your own properties files directly through volumes by option -v, as you know.

k8s

In k8s directory there are some resources for Kubernetes.

Thanks to kubernetes team for the contrib.

Openshift

In openshift directory you can find some Openshift templates.

Author

Enrique Garcia [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].