Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleTrafficdistribution
linenumberstrue
#!/bin/bash
COUNTER=0
while [ $COUNTER -lt 10 ]; do
	curl -v service01.bar.svc.cluster.local/headers
	sleep 2
done


NOTE

...

-

...

Although

...

the

...

service

...

running

...

in

...

external

...

cluster

...

can

...

be

...

accessed

...

by

...

following

...

the

...

steps

...

above,

...

the

...

failover

...

mechanism

...

is

...

not

...

yet

...

supported

...

by

...

ISTIO

...

(Replicated

...

control

...

plane).

For

...

this

...

scneario,

...

the

...

intent

...

must

...

have

...

the

...

following

...

istio

...

configurations

1.

...

In

...

cluster

...

01

...

a.

...

serviceEntry

...

-

...

of

...

service

...

serverservice04

...

as

...

shown

...

in

...

step

...

4

...

b.

...

virtualservice

...

-

...

having

...

entries

...

of

...

serverservice04

...

(in

...

cluster

...

02),

...

serverservice01

...

(cluster

...

01)

...

and

...

serverservice02

...

(cluster

...

01)

...

as

...

shown

...

in

...

step

...

5

...

c.

...

configmap

...

-

...

to

...

add

...

stubdomain

...

.global

...

in

...

the

...

coreDNS

...

d.

...

destinationRule

...

-

...

for

...

any

...

restrictions/loadbalancing

...

amongst

...

internal

...

services/hosts
2.

...

In

...

cluster

...

02

...

a.

...

configmap

...

-

...

to

...

add

...

stubdomain

...

.global

...

in

...

the

...

coreDNS

...

b.

...

destinationRule

...

-

...

for

...

any

...

restrictions/loadbalancing

...

amongst

...

internal

...

services/hosts

IN PROGRESS......