Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Contacts App - UI

Requirements

Generate Docker Image

  • You can generate a Docker image with the following command:

    ./mvnw spring-boot:build-image -Dspring-boot.build-image.imageName=<your-id>/contacts-app-ui:v1
  • Push you image

    docker push <your-id>/contacts-app-ui:v1
Warning
Use your docker id and replace it.

Creating a Kubernetes deployment

  • You can generate the deployment with the following commands, make the necessary adjustments and deploy it to your Kubernetes instance.

    kubectl create deployment contacts-app-ui --image=<your-id>/contacts-app-ui:v1 --dry-run=client -o=yaml > k8s-deployment.yaml
    
    echo --- >> k8s-deployment.yaml
    
    kubectl create service loadbalancer contacts-app-ui --tcp=8080:8080 --dry-run=client -o=yaml >> k8s-deployment.yaml

Deployment

This is the final deployment file:

k8s-deployment.yaml
link:cloud/k8s-deployment.yaml[role=include]