-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for 'KIND' tool #81
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Saad Khan <saakhan@redhat.com>
Signed-off-by: Saad Khan <saakhan@redhat.com>
Note: Need to merge the PR 1207 first as it contains the script to install prometheus on For testing, please take the file from that PR and put it in the scripts directory before running the demo. |
########################################### | ||
# Check if kind is installed | ||
########################################### | ||
function check_kind() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If check_kind fails to find Kind then Ask a prompt to install if yes then install
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed, since this will require sudo
permissions, we won't be giving the option to the user to automatically install it.
function check_kind() { | ||
if ! which kind >/dev/null 2>/dev/null; then | ||
echo "ERROR: Please install kind and try again" | ||
print_min_resources |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the resource requirements same? Update the message in print_min_resources with cluster_type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we're keeping it the same as minikube
.
Updated the message now to make it cluster_type specific.
Signed-off-by: Saad Khan <saakhan@redhat.com>
@khansaad - As discussed, please check if the below issue is seen:
|
Signed-off-by: Saad Khan <saakhan@redhat.com>
Added the check for the same and exit the demo if port is unavailable. |
@khansaad - I 'm not seeing cpu recommendations with kind too, can you please check
|
Signed-off-by: Saad Khan <saakhan@redhat.com>
Signed-off-by: Saad Khan <saakhan@redhat.com>
Fixed now. Attached the latest response JSON |
Signed-off-by: Saad Khan <saakhan@redhat.com>
@khansaad I 'm getting this error with prometheus install using v0.13.0, is there anything I 'm missing out here?
Kubectl version
|
Please confirm that minikube isn't running as well. Try stopping/deleting minikube once and run the demo again. |
@khansaad minikube is not running, I had deleted it before trying this script |
Signed-off-by: Saad Khan <saakhan@redhat.com>
Finally got it working by deleting kind_downloads, thanks @khansaad |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# Conflicts: # monitoring/local_monitoring/local_monitoring_demo.sh
Add support for
Kind
tool in case of Local monitoringDescription
This PR will do the following changes -
Kind
instead ofMinikube
.Type of change
How has this been tested?
Test Configuration
Checklist 🎯
Additional information