Deployment on Kubernetes (CaaS), with kustomize.
All Kustomize does is merge various YAML files into one.
We will have one environment(s):
Base
: contains a set of YAML configuration on which other environments can be based onLocal
: extends base, will change the image of the base deployment and service type
Jib builds optimized Docker and OCI images for your Java applications without a Docker daemon
$ mvn clean verify jib:dockerBuild
Kustomize is a tool for customizing Kubernetes configurations. It is part of the kubectl
.
You can run the following command to start your application(s) on Local
environment:
kubectl apply -k .k8s/overlays/monolithics/local/
or deploy microservices:
kubectl apply -k .k8s/overlays/microservices/local/
kubectl delete -k .k8s/overlays/monolithics/local/
or
kubectl delete -k .k8s/overlays/microservices/local/