Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

multicluster: Resolve multicluster services via /etc/hosts #3788

Merged
merged 1 commit into from
Jul 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions demo/deploy-bookbuyer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,14 @@ spec:
- name: "CI_SLEEP_BETWEEN_REQUESTS_SECONDS"
value: "$CI_SLEEP_BETWEEN_REQUESTS_SECONDS"

# This is used for Multicluster environment demos,
# where the bookstore will try to resolve these 2 hosts.
hostAliases:
- ip: 127.0.0.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this only work for Kind demo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will work on any compliant Kubernetes distro.

hostnames:
- "bookstore.bookstore.svc.cluster.alpha"
- "bookstore.bookstore.svc.cluster.beta"

imagePullSecrets:
- name: "$CTR_REGISTRY_CREDS_NAME"
EOF
Expand Down