Create a Helm driven Satis deployment with NGiNX proxy.
The following files are necessary for a successful deployment.
An auth.json and satis.json file with instance specific information in the ansible/assets subdirectory. (See links for reference)
An main.yaml file in the ansible/defaults subdirectory:
---
REPO: Path to the Satis repository
INSTALL: Path to the Satis installation
NAMESPACE: The Kubernetes namespace
...---
NGiNX: `[repo]/[name]:[version]` of the NGiNX image
PHP: `[repo]/[name]:[version]` of the PHP image
SELF: Path to the local clone of the wordpress repository
...An ~/inventory.yaml file for Ansible to reference the hosts value. (See link for reference)
The images can be built, tagged, and pushed to a container registry for easy access.
docker buildx build --file Dockerfile --tag [name] .
docker image tag [name]:latest [repo]/[name]:[version]
docker push [repo]/[name]:[version]Or, using Ansible / Docker Bake to automate the process:
ansible-playbook docker.yaml -i ~/inventory.yamlTo install the deployment, navigate to the helm folder and run:
helm install [name] .To update the deployment, edit the Helm charts as necessary and run:
helm upgrade [name] .To delete the deployment, and remove all the created elements:
helm uninstall [name]Finally, to automate the Satis instalation process, navigate to the ansible folder and run:
ansible-playbook playbook.yaml -i ~/inventory.yaml