-
Notifications
You must be signed in to change notification settings - Fork 850
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 web-show example #304
add web-show example #304
Conversation
Signed-off-by: cwen0 <[email protected]>
/test |
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
examples/web-show/deploy.sh
Outdated
|
||
sed "s/TARGETIP/$TARGET_IP/g" deployment.yaml > deployment-target.yaml | ||
|
||
docker pull |
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.
Do we need 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.
docker pull what?
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 have fixed it, PTAL again! thanks!
examples/web-show/network-delay.yaml
Outdated
jitter: "0ms" | ||
duration: "30s" | ||
scheduler: | ||
cron: "@every 60s" |
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.
new line
examples/web-show/service.yaml
Outdated
ports: | ||
- protocol: TCP | ||
port: 8081 | ||
targetPort: 8081 |
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.
ditto
Signed-off-by: cwen0 <[email protected]>
/test |
Codecov Report
@@ Coverage Diff @@
## master #304 +/- ##
=========================================
Coverage ? 60.62%
=========================================
Files ? 40
Lines ? 2494
Branches ? 0
=========================================
Hits ? 1512
Misses ? 882
Partials ? 100 Continue to review full report at Codecov.
|
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.
A small nit otherwise looks good! But can I ask why add an empty deployment-target.yaml
?
|
||
kill $(lsof -t -i:8081) 2>&1 >/dev/null | True | ||
|
||
nohup kubectl port-forward svc/web-show 8081:8081 >/dev/null 2>&1 & |
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.
Umm, actually I think just kubectl port-forward svc/web-show 8081:8081
is fine. Is it necessary to make it run at background?
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 think if this script is blocked, it is easy for users to misunderstand that it was not successfully 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.
LGTM
Co-Authored-By: Gallardot <[email protected]>
/test |
|
||
kill $(lsof -t -i:8081) 2>&1 >/dev/null | True | ||
|
||
nohup kubectl port-forward svc/web-show 8081:8081 >/dev/null 2>&1 & |
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
In |
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
Signed-off-by: cwen0 <[email protected]>
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
/merge |
/merge |
/run-all-tests |
Signed-off-by: cwen0 [email protected]
What problem does this PR solve?
add web-show examples for demo
What is changed and how does it work?
use Deployment to deploy web-show
Check List