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
As of right now the development workflow for kubernetes is as follows:
Run yarn k8s to build teraslice image and create all resources needed in kindcluster
Test build
Make a change to teraslice code
Run yarn k8s:rebuild which triggers the following:
4.1. Deletes teraslice deployment resource
4.2. Rebuilds teraslice image and re-uploads to kubernetes control plane
4.3. Re-creates teraslice deployment resource
Repeat starting from step 2
My proposal is optimizing steps 1 and 4 because building the docker image takes up a significant amount of time. Build times can take anywhere from 1-2 minutes each time not including the time it takes to redeploy the resource and upload the image to kubernetes.
If we instead give the master deployment the base image and provide a volume of the host machines repo, we can completely skip the build step and make instant changes with build:watch running. Perhaps we can also change yarn k8s:rebuild to simply restart the master pod which would re-trigger the node service command.
The text was updated successfully, but these errors were encountered:
As of right now the development workflow for kubernetes is as follows:
yarn k8s
to build teraslice image and create all resources needed inkind
clusteryarn k8s:rebuild
which triggers the following:4.1. Deletes teraslice deployment resource
4.2. Rebuilds teraslice image and re-uploads to kubernetes control plane
4.3. Re-creates teraslice deployment resource
My proposal is optimizing steps 1 and 4 because building the docker image takes up a significant amount of time. Build times can take anywhere from 1-2 minutes each time not including the time it takes to redeploy the resource and upload the image to kubernetes.
If we instead give the master deployment the base image and provide a volume of the host machines repo, we can completely skip the build step and make instant changes with
build:watch
running. Perhaps we can also changeyarn k8s:rebuild
to simply restart the master pod which would re-trigger thenode service
command.The text was updated successfully, but these errors were encountered: