Automatic rollout kubernetes deployments on Loco translations updates.
Run the app locally
go run *.go -kubeconfig ~/.kube/config
Build docker image
docker build -t translations-refresher:test .
Install Helm chart
helm install translations-refresher deploy/helm
Install Kind (Kubernetes IN Docker) https://kind.sigs.k8s.io/docs/user/quick-start/#installation
Launch the local cluster
kind create cluster --name translations --config test/cluster.yaml
kind load docker-image translations-refresher:test --name translations
helm install translations-refresher deploy/helm \
--set image.tag=test \
--set env.LOCO_API_KEY_DOCUMENTS=<loco_api_key> \
--set env.LOCO_API_KEY_CATALOG=<loco_api_key> \
--set env.LOCO_API_KEY_EMAILS=<loco_api_key>
The refresher is now running in the cluster and should have mutated the test deployment.
kubectl describe deployment/test-app
Content type
Image
Digest
Size
19.8 MB
Last updated
over 4 years ago
docker pull graillus/translations-refresher