-
Notifications
You must be signed in to change notification settings - Fork 22
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
Use mesheryctl
to deploy service meshes
#25
Conversation
Signed-off-by: Jubril Oyetunji <[email protected]>
mesheryctl to deploy
service meshesmesheryctl
to deploy service meshes
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.
Thanks for contributing, please take a look the comment below.
if mesheryctl | ||
|
||
then | ||
echo found mesheryctl, deploying $MESH |
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.
Is there we need add "
?
|
||
then | ||
echo found mesheryctl, deploying $MESH | ||
mesheryctl mesh deploy $mesh |
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.
$MESH
?
|
||
install_mesheryctl(){ | ||
curl -L https://github.com/meshery/meshery/releases/download/v0.5.67/mesheryctl_0.5.67_Linux_x86_64.zip -o mesheryctl.zip | ||
unzip -n mesheryctl.zip |
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.
Is there any reason we shouldn't overwrite the existing files?
@@ -0,0 +1,27 @@ | |||
MESH=$1 | |||
|
|||
echo "checking if mesheryctl is installed" |
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.
Cheking
would be good.
install_mesheryctl(){ | ||
curl -L https://github.com/meshery/meshery/releases/download/v0.5.67/mesheryctl_0.5.67_Linux_x86_64.zip -o mesheryctl.zip | ||
unzip -n mesheryctl.zip | ||
mv mesheryctl /usr/local/bin/mesheryctl |
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 I remember right, there would be a permission issue? Maybe there is other solution here?https://unix.stackexchange.com/questions/37724/permissions-ownership-of-usr-local-bin
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.
🤔 I'm not sure, as far as I know, workflow runners usually run as a privileged user
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.
Sounds good. We don't need to change this.
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 you use the approved installation procedure, this is already considered for.
// @hexxdump
Signed-off-by: Jubril Oyetunji <[email protected]>
Signed-off-by: Jubril Oyetunji <[email protected]>
Signed-off-by: Jubril Oyetunji <[email protected]>
|
||
|
||
install_mesheryctl(){ | ||
curl -L https://github.com/meshery/meshery/releases/download/v0.5.67/mesheryctl_0.5.67_Linux_x86_64.zip -o mesheryctl.zip |
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.
Don't hardcode the version. Use the same command from the official docs: https://meshery.io. Any reason to deviate?
install_mesheryctl(){ | ||
curl -L https://github.com/meshery/meshery/releases/download/v0.5.67/mesheryctl_0.5.67_Linux_x86_64.zip -o mesheryctl.zip | ||
unzip -n mesheryctl.zip | ||
mv mesheryctl /usr/local/bin/mesheryctl |
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 you use the approved installation procedure, this is already considered for.
// @hexxdump
@s1ntaxe770r Could you also add a check in the SMP action to see if Meshery is already installed? Skip install if the environment already has Meshery. We should also onboard an application on the mesh once it is installed. We could leverage the mesheryctl-service-mesh-patterns-action for this I guess or we could use mesheryctl in the bash script directly as well. Once we have that, we can switch the scripts used in the scheduled benchmarks workflow. |
@navendu-pottekkat is the action functional now? i haven't been following progress on that. |
Signed-off-by: Jubril Oyetunji <[email protected]>
@s1ntaxe770r tests run daily - https://github.com/layer5io/meshery-smp-action/actions |
I'll address the failing osm deployment in a separate PR |
7fb82c3
to
adbd3db
Compare
@s1ntaxe770r The action is functional now. We should ideally check if Meshery is already deployed in the action as I mentioned above. And we should also include deploying the service mesh and an application on the service mesh in this script. This script takes in arguments, which is good so we can just plug this script in the workflow to deploy a mesh and an application on top of the mesh. @Revolyssup Can point you to a pattern file that does this. We can start with one mesh and then make progress. |
To get a little context. a patternfile that does "what"? Installs a service mesh? |
@Revolyssup We will use |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Gents, this has gone stale. What are the next steps here? |
@leecalcote i think we need to merge this into one review, i accidentally pushed a fix for #25 and #26 over here |
So close this PR? |
This has become stale again, @s1ntaxe770r @navendu-pottekkat. Should we toss in the towel? |
Nope, a fix is available in #26 |
We can close this and consolidate it to #26 // @s1ntaxe770r |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@gyohuangxin will you review and decide which direction to go from here? |
PR abandoned. |
Signed-off-by: Jubril Oyetunji [email protected]
Description
I added a bash script to check if mesheryctl is installed and deploy a service mesh
This PR fixes #
#20
Notes for Reviewers
Signed commits