Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.27 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.27 KB

Kubernetes deployment

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 on
  • Local: extends base, will change the image of the base deployment and service type

Local

Build application and Docker image to local Docker Daemon

Jib builds optimized Docker and OCI images for your Java applications without a Docker daemon

$ mvn clean verify jib:dockerBuild

Apply / Deploy to Local environment

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/

Delete Local environment

kubectl delete -k .k8s/overlays/monolithics/local/

or

kubectl delete -k .k8s/overlays/microservices/local/