This repository contains the setup for deploying the Textractify application using Kubernetes with Flux for continuous delivery. The application consists of multiple services: a client, a server, and a Textractify client, all managed in a Kubernetes environment.
- Prerequisites
- Installation
- Configuration
- Deployment
- Verification
Before getting started, ensure you have the following installed:
- Docker: Install Docker
- Kubernetes (kind): Install kind
- kubectl: Install kubectl
- Flux CLI: Install Flux CLI
-
Clone the Repository
Clone the repository to your local machine:
git clone https://github.com/Frnn4268/textractify-kubernetes-flux.git cd textractify-kubernetes-flux
-
Create a Kind Cluster
Create a new Kubernetes cluster using kind:
kind create cluster --name "your_cluster_name"
-
Install Flux
Bootstrap Flux into your Git repository:
flux bootstrap github \ --owner="your_github_username" \ --repository=textractify-kubernetes-flux \ --branch=master \ --path=clusters/textractify \ --personal
-
Update Docker Images
Push your Docker images to Docker Hub. Ensure your images are tagged correctly. Example:
docker build -t your-dockerhub-username/client:latest ./client docker push your-dockerhub-username/client:latest docker build -t your-dockerhub-username/server:latest ./server docker push your-dockerhub-username/server:latest docker build -t your-dockerhub-username/textractify-client:latest ./textractify-client docker push your-dockerhub-username/textractify-client:latest
After the configurations are set up, Flux will automatically monitor the Git repository for changes. To apply the initial configuration, run:
kubectl apply -f clusters/textractify
-
Check Flux Status
Verify that Flux is functioning correctly by checking its status:
flux get kustomizations
-
Check Pod Status
Verify the status of the deployments and pods:
kubectl get deployments kubectl get pods
-
Access the Services
Forward the service ports to access the applications:
kubectl port-forward svc/client 8080:80 kubectl port-forward svc/server 3001:3000 kubectl port-forward svc/textractify-client 3002:81
Feel free to adjust any sections to better fit your specific use case or add any additional information relevant to your project!