GithubHelp home page GithubHelp logo

jankalinic / console Goto Github PK

View Code? Open in Web Editor NEW

This project forked from streamshub/console

0.0 0.0 0.0 4.59 MB

Web console to interact with Apache Kafka® instances running in a Kubernetes cluster managed by Strimzi Cluster Operator

License: Apache License 2.0

Shell 1.30% JavaScript 0.05% Java 57.95% TypeScript 39.70% CSS 0.07% Makefile 0.21% HTML 0.01% Dockerfile 0.72%

console's Introduction

Console for Apache Kafka® on Kubernetes

License Quality Gate Status Coverage

This project is a web console designed to facilitate interactions with Apache Kafka® instances on Kubernetes, leveraging the Strimzi Cluster Operator. It is composed of three main parts:

Roadmap / Goals

The future goals of this project are to provide a user interface to interact with and manage additional data streaming components such as:

Contributions and discussions around use cases for these (and other relevant) components are both welcome and encouraged.

Running the Application

The console application may either be run in a Kubernetes cluster or locally to try it out.

Install to Kubernetes

Please refer to the installation README file for detailed information about how to install the latest release of the console in a Kubernetes cluster.

Run locally

Running the console locally requires the use of a remote or locally-running Kubernetes cluster that hosts the Strimzi Kafka operator and any Apache Kafka® clusters that will be accessed from the console. To get started, you will need to provide a console configuration file and credentials to connect to the Kubernetes cluster where Strimzi and Kafka are available.

  1. Using the console-config-example.yaml file as an example, create your own configuration in a file console-config.yaml in the repository root. The compose.yaml file expects this location to be used and and difference in name or location requires an adjustment to the compose file.

  2. Install the prerequisite software into the Kubernetes cluster. This step assumes none have yet been installed.

    ./install/000-install-dependency-operators.sh <your namespace>
    ./install/001-deploy-prometheus.sh <your namespace> <your cluster base domain>
    ./install/002-deploy-console-kafka.sh <your namespace> <your cluster base domain>

    Note that the Prometheus instance will be available at http://console-prometheus.<your cluster base domain> when this step completes.

  3. Provide the Prometheus endpoint, the API server endpoint, and the service account token that you would like to use to connect to the Kubernetes cluster. These may be placed in a compose.env file that will be detected when starting the console.

    CONSOLE_API_SERVICE_ACCOUNT_TOKEN=<TOKEN>
    CONSOLE_API_KUBERNETES_API_SERVER_URL=https://my-kubernetes-api.example.com:6443
    CONSOLE_METRICS_PROMETHEUS_URL=http://console-prometheus.<your cluster base domain>
    

    The service account token may be obtain using the kubectl create token command. For example, to create a service account named "console-server" (from console-server.serviceaccount.yaml with the correct permissions and a token that expires in 1 year (yq required):

    export NAMESPACE=<service account namespace>
    kubectl apply -n ${NAMESPACE} -f ./install/resources/console/console-server.clusterrole.yaml
    kubectl apply -n ${NAMESPACE} -f ./install/resources/console/console-server.serviceaccount.yaml
    yq '.subjects[0].namespace = strenv(NAMESPACE)' ./install/resources/console/console-server.clusterrolebinding.yaml | kubectl apply -n ${NAMESPACE} -f -
    kubectl create token console-server -n ${NAMESPACE} --duration=$((365*24))h
  4. By default, the provided configuration will use the latest console release container images. If you would like to build your own images with changes you've made locally, you may also set the CONSOLE_API_IMAGE and CONSOLE_UI_IMAGE in your compose.env and build them with make container-images

  5. Start the environment with make compose-up.

  6. When finished with the local console process, you may run make compose-down to clean up.

Contributing

We welcome contributions of all forms. Please see the CONTRIBUTING file for how to get started. Join us in enhancing the capabilities of this console for Apache Kafka® on Kubernetes.

Releasing

Milestones

Each release requires an open milestone that includes the issues/pull requests that are part of the release. All issues in the release milestone must be closed. The name of the milestone must match the version number to be released.

Configuration

The release action flow requires that the following secrets are configured in the repository:

  • IMAGE_REPO_HOSTNAME - the host (optionally including a port number) of the image repository where images will be pushed
  • IMAGE_REPO_NAMESPACE - namespace/library/user where the image will be pushed
  • IMAGE_REPO_USERNAME - user name for authentication to server IMAGE_REPO_HOSTNAME
  • IMAGE_REPO_PASSWORD - password for authentication to server IMAGE_REPO_HOSTNAME These credentials will be used to push the release image to the repository configured in the .github/workflows/release.yml workflow.

Performing the Release

Releases are performed by modifying the .github/project.yml file, setting current-version to the release version and next-version to the next SNAPSHOT. Open a pull request with the changed project.yml to initiate the pre-release workflows. At this phase, the project milestone will be checked and it will be verified that no issues for the release milestone are still open. Additionally, the project's integration test will be run. Once approved and the pull request is merged, the release action will execute. This action will execute the Maven release plugin to tag the release commit, build the application artifacts, create the build image, and push the image to (currently) quay.io. If successful, the action will push the new tag to the Github repository and generate release notes listing all of the closed issues included in the milestone. Finally, the milestone will be closed.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.