Skip to content

Latest commit

 

History

History
28 lines (24 loc) · 1.27 KB

README.md

File metadata and controls

28 lines (24 loc) · 1.27 KB

Zookeeper

Deploy custom Kubernetes compliant Zookeeper image (extended from Kubernetes Zookeepper) with added features:

  • Publish json formatted logs for easy consumption by EFK stack

This image can be run in any container platform

Customization

  • Refer the custom jar in extra_lib. This will format logs into Json format.
  • Modified Log4j properties are in conf
  • bin\start-zookeeper is modified to not use the existing log4j properties file

Test locally

  • Build image: docker build -t anair/zookeeper:3.4.10-1 .
  • Create new project in minishift
  • Deploy k8s/zookeeper-sts.yaml stateful set to create a 3 pod zookeeper cluster
  • Verify logs are in json format

Deploy to Openshift

  1. Build image: docker build -t anair/zookeeper:3.4.10-1 .
  2. Decide on the namespace where zookeeper should be deployed. The project uses anair-zk as the namespace.
  3. Tag image Openshift registry naming convention
  4. Push image to Openshift registry. The image will appear in ImageStreams of the namespace
  5. Open ZK statefulset a. Review and change parameters as required b. Update namespace c.Update the image name with Openshift registry image name
  6. Deploy the statefuleset
  7. Verify json formatted logs