Node.js example demonstrating the file synchronization mode.
Deploy component from stack template once to render templates with SuperHub stack parameters:
make deploy COMPONENT=skaffold-nodejsAlternativelly, edit skaffold.yaml and templates/deployment.yaml to set Docker image, and templates/ingress.yaml to set ingress hostname.
Then:
skaffold dev --kube-context $DOMAIN_NAME [--namespace default] [--default-repo <myrepo>] [--port-forward] [--cleanup=false]https://skaffold.dev/docs/environment/kube-context/
https://skaffold.dev/docs/environment/image-registries/
- Make some changes to
index.js:- The file will be synchronized to the cluster
nodemonwill restart the application
- Make some changes to
package.json:- The full build/push/deploy process will be triggered, fetching dependencies from
npm
- The full build/push/deploy process will be triggered, fetching dependencies from