-
Notifications
You must be signed in to change notification settings - Fork 101
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
Non deterministic round robin demo #98
Conversation
418be1e
to
382d20f
Compare
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.
Please consider the suggestions
382d20f
to
914408c
Compare
.PHONY: test-round-robin | ||
test-round-robin: | ||
@kubectl run -it --rm busybox --restart=Never --image=busybox -- sh -c \ | ||
"echo 'nameserver `$(OHMYGLB_COREDNS_IP)`' > /etc/resolv.conf && \ |
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.
why backtics are required here >
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.
@ytsarev because OHMYGLB_COREDNS_IP
is not environment variable but GNU make variable which is kubectl command
OHMYGLB_COREDNS_IP ?= kubectl get svc ohmyglb-coredns -n ohmyglb -o custom-columns='IP:spec.clusterIP' --no-headers
with backtics it will proceed like:
@kubectl run -it --rm busybox --restart=Never --image=busybox -- sh -c \
"echo 'nameserver `kubectl get svc ohmyglb-coredns -n ohmyglb -o custom-columns='IP:spec.clusterIP' --no-headers`' > /etc/resolv.conf &&
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.
Please consider small modifications
test script set podinfo region README.md merge makefile merge
914408c
to
a2cbef4
Compare
Motivation
alter non deterministic round-robin demo for users to be able to test by their own