►
From YouTube: Distribution Team Demo - 2021-02-18
Description
Charts: Gitaly to Praefect
https://gitlab.com/gitlab-org/charts/gitlab/-/merge_requests/1757
A
Hello:
everybody
thanks
for
jumping
into
the
distribution
team
demo
for
this
week
as
I'm
on
triage
today's
thursday
february
18.
A
today,
I'm
going
to
run
through
the
mr
in
the
gitlab
chart
for
supporting
migration
from
gili
2
prefect
scenario
here
is
that
there's
a
deployment
of
the
helm
chart
with
just
basic
settings
using
one
gitly
node
and
then
we'll
turn
on
prefect
and
it's
backing
goodly
nodes
and
transfer
repositories
over
and
then
remove
the
old
standalone.
Giddily
prefect
has
become
more
of
a
hot
topic
lately
so
figured
it
was
a
good
time
to
touch
base
with
the
team
and
show
what's
going
on
with
it
lately.
A
So
the
mr
is
here
and
in
the
demo
notes.
I
have
already
launched
an
instance
in
gke
and
that's
here.
All
I
have
so
far
is
prefect,
enabled
false,
which
is
the
default
anyway,
and
so
what
I'm
going
to
do
now
that
step
one
is
done,
is
go
to
step
two,
which
is
just
create
a
project,
so
we
have
something
to
migrate.
A
A
So
we'll
do
now
is
uncomment
this
section.
So
now
we'll
do
prefect
enabled
true.
This
is
a
new
key.
That's
part
of
this,
mr
replace
internal
goodly,
is
now
set
to
false
by
default.
This
is
true,
so
if
you
turn
on
prefect,
what
will
happen
is
that
the
standalone
gitly
stateful
set
will
not
be
deployed
and
instead
only
the
prefect
managed
gitly
instances
will
be
created.
So
by
setting
this
to
false
we're
actually
going
to
keep
the
existing
standalone
giddily
stateful
set
running
and
alongside
it,
deploy
the
prefect
managedly
instances.
A
What
we're
going
to
do
here
is
because
we
already
have
we're
keeping
the
old
goodly
stateful
set
running,
which
already
has
the
storage
name
of
default.
What
we're
going
to
do
is
just
pick
anything
else.
In
this
case,
I've
just
been
doing
vs2
for
virtual
storage
2
and
putting
prefect
after
it
just
to
be
clear
where
it's
managed
to
get
a
replicas
and
max
and
available
are
similar
to
the
settings.
You
can
do
a
standalone
gigalite,
just
showing
how
many
replicas
will
come
up.
A
So
we're
going
to
do
here
is
create
a
new
storage
called
vs2,
prefect
and
so
the
default
and
vs2
prefect
storages
will
both
be
connected
in
gitlab.
That's
what
will
allow
us
to
kick
off
the
migrations
api
to
migrate,
the
repositories
to
that
specified
storage,
then,
after
that
we
can
actually
turn
off
the
old
one.
A
A
A
A
A
A
A
A
I'm
just
going
to
put
that
in
a
file
called
token.txt
for
my
script
to
read
so
as
these
come
up,
I
think
we
should
be
okay.
I
still
see
one
web
service
pod
is
coming
up.
What
I'm
going
to
do
is
effectively
just
run
this
move.sh
script,
which
will
basically
make
a
choral
quest.
So
you
can
see
our
source
storage
name
here
is
going
to
be
default.
A
A
So
we
got
a
message
accepted.
That's
good!
If
your
api
token
doesn't
have
the
correct
scope,
you'll
get
an
unauthorized
response
here;
otherwise
it
should
take
it
and
then
there's
a
second
part
where
you
can
actually
query
the
status
of
the
moves.
So
what
we're
going
to
do
is
run
check.sh
and
we'll
pipe
it
to
jq
for
readability
cool.
So,
with
this
response
here,
you'll
see
the
state
is
finished
in
the
past.
When
I
was
testing
this
and
it
failed,
I
would
see
the
just
a
failed
message
there.
A
A
So
now
our
migrate
projects
to
vs2
prefect,
which
is
what
we
just
did
so
now
we'll
go
uncomment
this
last
section.
So
now
we'll
still
have
pre-effect
enabled
as
true
now
we
turn
replace
internal
giddily
to
true,
whereas
before
it
was
false,
so
now
it
will
actually
replace
that
standalone
goodly
instance,
and
then
we
still
have
this
same
virtual
storage
that
will
still
exist,
but
now
we
can
actually,
since
we're
removing
the
old
default
virtual
storage.
We
can
add
a
default
storage
because
remember
there
always
has
to
be
a
storage
name
called
default.
A
A
A
A
A
A
One
last
thing
is
as
we're
looking
at
this.
Obviously,
the
projects
are
all
going
to
be
stored
in
vs2
prefect
at
this
time
and
default
will
be
empty,
so
one
possible
option:
that's
not
required
is
to
adjust
this
script,
to
change
the
source
storage
name
from
vs2
prefect
over
to
default.
You
could
shift
all
the
projects
over
to
the
default
storage
that
migrations
api
can
be
used
anytime.
Whenever
you
want
to
shift
between
projects.
A
A
That's
really
it
so.
A
bulk
of
the
work
of
this,
mr,
was
adjusting
the
logic
to
be
able
to
get
standalone
giddily
to
deploy,
alongside
giddily,
with
prefect
and
so
you'll
notice
that
we've
split
out
most
of
the
spec
into
their
own
separate
files
so
that
they
can
be
ingested
by
either
standalone,
goodly
or
prefect.
A
B
Mostly
a
curiosity
back
in
your
values.yaml,
we
go
back
to
there
the
the
step
number
four.
If,
if
we
reapplied
that
I'm
curious,
what
the
effect
of
replace
internal
giveaway
would
have
now
that
we
have
just
the
virtualized
or
virtualized
storages,
does
that
just
now
basically
get
ignored
or
is
that
going
to
cause
more
damage.
A
A
You'll
see
here
we
have
all
the
resources
are
split
out
into
individual
spec
files,
so
they
can
be
either
included
by
service
with
prefect,
for
example,
or
just
service
okay.
So
so
that's
really
just
the
guard
so
effectively.
It's
just
allowing
certain
resources
to
get
templated
or
not.
That's
basically,
the
extent
of
the.
A
Goodly
there
part
of
the
mr,
is
that
we
adjusted
the
logic
replace
internal
italy.
B
So
if
it's
a
switch
to
which
resources
get
applied,
does
that
mean
that
at
any
future,
deployments
of
the
helm
chart
to
this
cluster
would
need
to
have
that
turned
on?
Otherwise
it
would
switch
it
back
to
using
the
internal
get
only.
A
Yes,
the
default
is
under
values
here,
replace
internal,
so
the
default
with
pr,
if
you
turn
on
prefect,
is
that
it
will
replace
internal
gateway.
B
A
The
same
his
the
same
logic
will
apply
even
with
this
new
flag.
This
is
effectively
only
in
the
scenario
where
you
did
not
have
prefect
in
the
past,
and
you
want
to
migrate
to
using
prefect
and
get
those
repositories
migrated
over.
If
you
don't
set
this,
it
will
keep
the
default
of
true
and
still
just
replace
internal
gigily,
and
if.
B
A
Awesome
thanks
everybody.
I
know
there's
some
issues
now
where
the
teams
want
to
start
enabling
prefect
by
default
in
the
charts.
So
I
think
topics
related
to
prefect
start
coming
up
more
and
more
often,
so
I
don't
think
it's
quite
at
a
point:
we're
ready
to
enable
it
by
default,
just
because
we're
looking
for
a
little
bit
more
out
of
the
logs
and
a
little
bit
clearer
documentation
on
how
prefect
works,
especially
when
scaling
up
and
down.
Obviously
that
value
that
I
set
for
getting
replicas
is
very
easy
to
configure.