Skip to content
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

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Conversation

kuritka
Copy link
Collaborator

@kuritka kuritka commented Apr 23, 2020

Motivation

alter non deterministic round-robin demo for users to be able to test by their own

  • test script
  • move podinfo to regions
  • update README.md

@kuritka kuritka force-pushed the #69-nd-round-robin-MERGE branch from 418be1e to 382d20f Compare April 23, 2020 16:14
Copy link
Member

@ytsarev ytsarev left a 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

@kuritka kuritka force-pushed the #69-nd-round-robin-MERGE branch from 382d20f to 914408c Compare April 24, 2020 08:50
@kuritka kuritka requested a review from ytsarev April 24, 2020 08:55
.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 && \
Copy link
Member

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 >

Copy link
Collaborator Author

@kuritka kuritka Apr 24, 2020

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 &&

Copy link
Member

@ytsarev ytsarev left a 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
@kuritka kuritka force-pushed the #69-nd-round-robin-MERGE branch from 914408c to a2cbef4 Compare April 24, 2020 12:46
@kuritka kuritka requested a review from ytsarev April 24, 2020 12:48
@ytsarev ytsarev merged commit b2bb5c0 into master Apr 24, 2020
@ytsarev ytsarev deleted the #69-nd-round-robin-MERGE branch April 24, 2020 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants