A simple microservice application distributed via GitHub Container Registry and Helm.
git clone git@github.com:kayaman/parrot.git
cd parrot
cd service
npm install
npm run start
docker build -t kayaman/parrot .
docker run -p 3000:3000 kayaman/parrot
helm repo add parrot https://kayaman.github.io/parrot
helm repo update
helm install parrot-service parrot/parrot
helm install parrot-service parrot/parrot \
--set replicaCount=3 \
--set service.type=LoadBalancer
See values.yaml for configuration options.
# Add the Helm repository
helm repo add parrot https://kayaman.github.io/parrot
helm repo update
# Install with default configuration
helm install parrot-service parrot/parrot
For production deployments, you should use a specific version and increase the replica count:
helm install parrot-service parrot/parrot \
--set image.tag=v1.0.0 \
--set replicaCount=3 \
--set resources.requests.memory=128Mi \
--set resources.limits.memory=256Mi
To make the service accessible from outside the cluster:
helm install parrot-service parrot/parrot \
--set service.type=LoadBalancer
To scale an existing deployment:
kubectl scale deployment parrot-service-parrot --replicas=5
Or update the Helm release:
helm upgrade parrot-service parrot/parrot \
--set replicaCount=5
You can manually test the deployment using port-forwarding:
# Forward the service port to your local machine
kubectl port-forward svc/parrot-service-parrot 3000:3000
# Test the service
curl http://localhost:3000/path/to/nowhere?q=abc
This simplified distribution strategy includes:
This project is licensed under the MIT License..