set frontend to prod and reduced delay in probed #111
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The frontend service takes over 100 seconds to become ready when started.
This time can be improved by adjusting timing of readiness and liveness probes.
The services is also set to use the dev version. The dev version has a shorter start time than prod but the prod version is faster once running.
How to test
K8s testing steps are outline in the k8s-manifests/readme. It's important to note that unlike Docker compose, K8s won't build container images. Images must be pre-built and hosted in a registry. For development, you can run a local registry. Then build and push images. The images must be built and pushed on the
workernode as that is where the services will run and look forlocalhost.The development K8s Sandbox is currently set to test.
On the worker terminal: cd to
root/lab/storedogcheckout this branch (git clone runs during track setup)
Run the build command in the k8s readme
On the control-plane terminal: cd to
root/lab/storedogcheckout this branch (git clone runs during track setup)
Follow the steps in the readme to setup the Datadog operator and start Storedog.
Watch the pods run:
watch kubectl get pods -n storedogThe frontend service should take around 80s to become
readyUse the Storedog tab to the right of "worker" tabs to view Storedog and confirm it's running as expected.