Skip to content

Latest commit

 

History

History
37 lines (31 loc) · 889 Bytes

k8sMulti.md

File metadata and controls

37 lines (31 loc) · 889 Bytes

Kubernetes Multicontainer

  1. Build images local. Navigate to the multi-calculator folder and into the calc-frontend folder.

Then run:

docker build -t calcfrontend .

Do the same for the backend.

  1. Push the images to your ACR.

    • Login to your ACR
    docker login YOURREGISTRY.io
    

    Provide username and password as found in the portal.

    • Tag your image
    docker tag calcfrontend YOURREGISTRY.io/calcfrontend
    
    • Then push your images. Do it for both frontend and backend.
    docker push YOURREGISTRY.io/calcfrontend
    

    Your images are now available in your ACR.

  2. Run your images by using YAML files. Apply the yaml files using

kubectl apply -f filename.yml

To make your application accessible from the internet modify your frontend service accordingly.

kubectl edit svc/calcfrontend-svc