►
Description
As a developer, how to enable and test new feature (using container registry as an example, demonstrate setting up the metadata database https://gitlab.com/gitlab-org/charts/gitlab/-/blob/master/doc/charts/registry/index.md#database
A
Hello,
everyone
welcome
to
the
distribution
team
demo
on
27th
July
2023,
so
this
demo
is
also
part
of
the
series
that
we
have
been
doing
regarding
distribution
workflows,
and
this
one
will
be
focusing
on
how
to
enable
a
new
feature
based
on
the
documentation
and
how
to
test
it
using
our
hand
charts.
A
So
this
one
is
a
follow-up
to
the
previous
video
that
that
Mitch
did,
which
showed
how
to
spin
apegit
lab
instance
on
gke
using
our
hand
charts.
So
we'll
be
continuing
from
that
point
where
we
have
a
functional
gitlab
instance,
which
runs
gitlab.
The
latest
version
of
gitlab
using
hand
charts,
so
the
demonstration
uses
a
feature
that
is
not
enabled
by
default
out
of
the
box,
so
we'll
be
looking
at
enabling
the
metadata
database
for
container
page
speed.
A
A
Okay,
so
this
is
our
official
documentation,
the
charts
documentation
for
the
container
registrates
out
and
in
the
that's,
a
subsection
called
database
which
describes
how
to
how
to
enable
the
method
at
the
database
for
container
registry.
A
So,
if
we
look
at
it,
we
can
see
it
has
a
sample
values.tml
entries
that
should
go
until
the
registry
key
so
yeah.
It
shows
how
to
enable
database
set
the
host
port,
a
user,
how
to
specify
password
the
SSL
connection,
credentials
and
configuration
and
all
those
things
in
addition
to
passing
these
values
to
the
deployment,
because
it
is
an
experimental
feature
and
node
fully
polished.
It
requires
some
manual
actions,
so
the
manual
actions
being
one
we
need
to
manually
create
a
database
for
the
registrator
store
metadata.
A
So
this
is
a
similar
to
what
we
were.
What
we
did
in
the
previous
video,
where
we
deployed
a
gitlab
instance
using
gke
with
our
hand,
charts
so
on
the
bottom
left
corner.
This
is
the
configuration
that
I
used
here,
which
is
very
similar
to
what
was
done
in
the
previous
one
previous
video,
and
we
can
see
in
kns
all
the
ports
are
running
fine
and
without
any
issues.
A
So
the
manual
steps,
if
you
look
at
the
documentation,
the
manual
steps
start
with
creating
a
secret
with
the
database
password,
so
it
uses
the
cube.
Control
creates
secret.
This
is
a
generic
secret,
not
a
dedicated
one
like
a
TLO
certificate
or
anything
a
secret
name
from
literal,
the
key
in
the
secret,
where
the
password
will
be
stored
and
a
password
string.
A
So
yeah
Cube
control
because
we
deployed
it
to
the
gitlab
namespace.
We
will
be
passing
the
namespace,
the
create
secret
generic.
This
is
the
name
of
the
secret
that
I
am
using
from
little,
and
this
is
the
key
I'm
using
password
as
the
key
and
the
value
for
the
password
I
used
a
simple
one
called
too
many
secrets.
A
Let's
try
decoding
it
and
yeah
it
has
the
password
key
and
too
many
secrets.
That's
the
password
value
which
matches
what
we
did.
The
next
one
is
login
to
your
database
instance.
The
command
here
is
a
two-part
one.
The
inner
one
identifies
the
port
name
of
your
postgresql
port
and
the
outer
one
folds
into
the
shell
in
that
port.
So
if
we
look
at
the
reports,
we
can
say
that
gitlab
possible
scale.
0
is
the
port
name.
So,
let's.
A
A
A
Now,
let's
create
the
database
and
specify
the
user
registry
at
the
order,
so
both
the
database
name
and
the
username
is
so
you
can
give
whatever
you
want
so
yeah.
We
created
the
database,
let's
come
out
of
for
the
psql
and
the
port,
so
yeah
we
have
completed
all
the
manual
steps
required.
Now
we
need
to
specify
this
configuration
values
according
to
our
need.
The
documentation
shows
all
the
available
configurations
for
demo
purposes.
I
am
using
a
minimal
version
of
that.
A
So
I
added
the
following
to
my
Value
Store
PML
file.
The
registry
K
database
enabled
because
this
is
demo
I
am
not
using
any
SSL
connection
between
registry
and
the
database
or
postgresql
the
head
disabled
SSL
mode,
the
user.
So
this
is
the
database
user
that
we
created
earlier
with
username
registry
and
password.
The
password
is
in
the
secret
that
we
created
with
the
password
key
being
what
we
specified
password.
A
So
this
is
the
same
command.
We
use
to
install
charge
the
first
day
because
we
use
Helm
upgrade
dash
dash,
install
it
serves
both
purposes
if
it
is
a
reference
written,
it
installs
the
chart,
if
it
is
an
upgrade,
it
detects
that
and
updates
the
deployment
with
the
new
configuration
values.
A
So,
let's,
let's
try
upgrading
I
will
enter
with
our
deployment
with
this
new
configuration
now
this
this
can
be
a
bit
time
consuming,
depending
on
various
factors
like
network
connectivity
or
the
load
on
the
cluster
and
all
those
things,
but
hopefully
in
the
ports
that
are
running
in
running
multi-cluster.
We
should
be
seeing
newer,
newer
ports
coming
up
related
to
the
metadata
database
and
the
old
ones
being
deleted.
A
Hell
is
intelligent
enough
to
detect
if
there
are
any
changes
to
any
other
services.
If
there
are
none,
those
spots
will
be
left
as
is,
and
only
the
digestible
related
ones
will
be
deleted
and
new
ones
deployed.
A
A
A
A
A
The
other
one
is
also
terminating
so
yeah.
We
have
successfully
deployed
the
registry
changes
if
we
want
to
confirm
we
can
fall
into
the
registry
port
and
see
that
the
configuration
changes
have
gone
in,
let's
forward
to
a
shell.
Indeed,
one
of
the
registry
ports.
A
With
the
password
the
postgresql
host
is
automatically
detected
from
our
running
poster
scale,
port
and
the
port,
the
user.
We
specified
the
password
business
thread.
Ssl
mod
is
disabled,
so
everything
looks
right.
Let's,
let's
come
out
of
the
port,
now
to
confirm
that
if
it
is
working
as
we
intended-
let's
just
by
logging
into
our
instance.
A
A
A
So
the
project
has
the
idea
one.
So
it
is
that
product
that
the
devil
is
so
yeah.
The
metadata
database
is
working
as
expected
and
the
configuration
change
we
created
work
file.
There
were
no
errors
with
migrations
or
riches
reports
to
come
up
so
I'll
I'll.
Stop
sharing
my
screen
now.