KubeFlare is a React-based web application that provides an intuitive interface for viewing and searching Kubernetes logs across multiple namespaces, pods, and containers.
- Select and view logs from different namespaces, pods, and containers
- Real-time log streaming
- Search functionality to find specific log entries
- Highlighted search results for better visibility
This frontend application requires the KubeFlare backend service to be running. You can find the backend repository at:
Make sure to set up and run the backend service before starting the frontend application.
- Node.js (version 14 or later)
- npm (version 6 or later)
- Clone the repository:
git clone https://github.com/Amrish-Sharma/kubeflare-log-viewer.git
cd kubeflare-log-viewer- Install dependencies:
npm install- Start the development server:
npm startThe application will be available at http://localhost:3000.
- Select a namespace from the dropdown menu
- Choose a pod from the available options
- Select a container within the chosen pod
- Click "Fetch Logs" to retrieve and display the logs
- Use the search bar to filter log entries
To create a production build, run:
npm run buildThis will generate optimized static files in the build directory.
A Dockerfile is provided to containerize the application. To build and run the Docker image:
docker build -t kubeflare-frontend .
docker run -p 80:80 kubeflare-frontendContributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
