ewolff / microservice-kubernetes

Microservices example using Kubernetes
Apache License 2.0
209 stars 195 forks source link

how to access changes in index.html file #5

Closed Anuradha677 closed 5 years ago

Anuradha677 commented 5 years ago

Hi,

I need to change the index.html file. But I am not able to see the changes in application after deploy the application. I am using gcr.io for docker images. I am using cloud build for rolling update.I have changed the docker file and kubernetes.yaml in below forked directory. Anuradha677 / microservice-kubernetes

Please help me on this.

ewolff commented 5 years ago

You will need to build the docker images as discussed in https://github.com/ewolff/microservice-kubernetes/blob/master/HOW-TO-RUN.md#build-the-docker-images-optional and then run them https://github.com/ewolff/microservice-kubernetes/blob/master/HOW-TO-RUN.md#run-the-containers . I will close this issue for know. Please raise specific issues if you feel the documentation should be improved.

Anuradha677 commented 5 years ago

Thanks for response. I am able to build the docker images in Container Registry. image image

I am not using minikube as mentioned in below. https://github.com/ewolff/microservice-kubernetes/blob/master/HOW-TO-RUN.md#run-the-containers To deploy the application I am using kubectl apply -f microservices.yaml in cloud shell. The issue here is, I am able to see the updates in catalog, customer microservices, but I want to change in index.html page. I am doing some changes in index.html file, but after Cloud Build Trigger, I am not able to see the changes. The below link has cloud build trigger file. https://github.com/Anuradha677/microservice-kubernetes/blob/master/cloudbuilder.yaml

ewolff commented 5 years ago

docker-build.sh should update the Docker images. Afterwards kubectl apply -f microservices.yaml should start the new version. As you are able to deploy the original version in this way, I don't see how there can be a bug in the demo as provided. Sorry.