Welcome to The k8s Boilerplate project (k8sb).
The main goal of this project is to show you an operating procedure to deploy an app on Kubernetes using code templates.
- Project structure.
- The k8sb's images contexts.
- The Social microservice.
- Why k8sb is important?
- This project has four main parts:
- Each image was build taken into account four main contexts:
- Configuration and packages:
- Used to initialize the necessary repositories, and the system packages.
- External libraries.
- Add some utilities that can help you to configure your containers (e.g. Zemni).
- Security.
- Here you can prevent attacks like DNS, ARP and IP spoofing.
- Clean up.
- Delete documentation, cache, and logs generated in the Configuration and packages context.
- Configuration and packages:
- In the following figure, you can appreciate an example of these contexts:
- In order to run the Seltris, and the Xhidon image, you need a Spring Boot application. The Social microservice is a good fit because its configuration was externalize.
- You can find more information about how to set up this microservice by following this link.
- Help you to keep your artifacts well organized.
- Eliminate chains of Bash commands from Docker files instructions. Instead, an instruction becomes an interface to the Bash functions.
- Promotes both, functions and contexts reusability. You don't need to write it again.
- Let you patch quickly security vulnerabilities.
- Testing becomes easy using functions instead of inline commands chains.
- Initial work
This work is licensed under a Creative Commons Attribution 4.0 International License.