You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After Skaffold successfully syncs a file, that is, the changes made are copied over to the deployed container's filesystem, I should be able to see the new changes in my application.
I added sync: infer to the skaffold.yaml file. The infer mode is set on all files - **/* for all the services in the project. When I make a change to any one of the service, and run skaffold dev --default-repo <default-repo> --trigger polling -v info, I can see that skaffold is syncing the changes. Upon exec-ing into the container, I can also see that the file on the container now contains the change I made. However, I'm not seeing the change reflected in my application.
Edit the Dockerfile/s in the project above so the filesystem is not ReadOnly
skaffold dev --default-repo <personal-dockerhub-repo> --trigger polling -v info
When the deployment is up, make a change to any service's source code. I'm testing with changing the logger message.
Check the logs from Skaffold - a Copying log will pop
Wait till the sync is completed.
exec into the container for the service you made changes to -> the file would have changes
Check back with the application -> the logger message is still the same. The changes are not reflected.
INFO[0050] files modified: [src/currencyservice/server.js] subtask=-1 task=DevLoop
Syncing 1 files for <dockerhub-repo>/currencyservice:v0.5.0-795-g996a6e1-dirty@sha256:d620c1148df8a74b31daf9b603e96baa619415d8a0459839328e99d5c6f5189d
INFO[0051] Copying files:map[src/currencyservice/server.js:[/usr/src/app/server.js]]to<dockerhub-repo>/currencyservice:v0.5.0-795-g996a6e1-dirty@sha256:d620c1148df8a74b31daf9b603e96baa619415d8a0459839328e99d5c6f5189d subtask=-1 task=DevLoop
Watching for changes every 1s...
I'm running skaffold dev on a remote cluster on GKE. The local kubeConfig points to this cluster. It possibly could be something that has to do with how the images are tagged and/or pulled by skaffold on the cluster.
The text was updated successfully, but these errors were encountered:
hi @ShrutiC-git , to make your change reflect on your application, the application needs to aware the changes and do the updates itself, for node application, it requires container uses nodemon to start the application.
Expected behavior
After Skaffold successfully syncs a file, that is, the changes made are copied over to the deployed container's filesystem, I should be able to see the new changes in my application.
Actual behavior
Running the microservices with Skaffold example provided by Google to figure Skaffold's sync functionality for a private project.
I added
sync: infer
to theskaffold.yaml
file. The infer mode is set on all files -**/*
for all the services in the project. When I make a change to any one of the service, and runskaffold dev --default-repo <default-repo> --trigger polling -v info
, I can see that skaffold is syncing the changes. Upon exec-ing into the container, I can also see that the file on the container now contains the change I made. However, I'm not seeing the change reflected in my application.Information
Steps to reproduce the behavior
skaffold dev --default-repo <personal-dockerhub-repo> --trigger polling -v info
I'm running
skaffold dev
on a remote cluster on GKE. The local kubeConfig points to this cluster. It possibly could be something that has to do with how the images are tagged and/or pulled by skaffold on the cluster.The text was updated successfully, but these errors were encountered: