►
From YouTube: Tutorial - Keptn in a box
Description
Follow the tutorial yourself here: https://tutorials.keptn.sh/tutorials/keptn-in-a-box-08/index.html
Get the source: https://github.com/keptn-sandbox/keptn-in-a-box
What you'll find in this video:
00:00 Intro
01:15 Installation
12:34 What has been installed + Demo
24:00 Troubleshooting
26:42 Try it yourself
Learn more: https://keptn.sh
Get started with tutorials: https://tutorials.keptn.sh
Join us in Slack: https://slack.keptn.sh
Star us on Github: https://github.com/keptn/keptn
Follow us on Twitter: https://twitter.com/keptnProject
Join our Keptn community newsletter: https://keptn.sh/community/newsletter/
A
Hi
and
welcome
everyone
to
this
video
on
the
tutorial
captain
in
the
box.
Today,
I'm
really
excited
to
have
searcher
here,
hi
sasha.
How
are
you
doing
today.
A
Really
glad
to
have
you
here,
I'm
really
excited
to
see
what
you
have
built
with
captain
in
the
box.
It's
a
let's
say
a
one.
One
line
installation
of
captain
plus
example,
projects
plus
standard
choice,
integration,
everything
is
running
on
one
vm.
You
don't
need
to
bring
your
own
kubernetes
cluster.
Everything
is
provided
by
your
tutorial
captain
in
the
box,
so
I
will
give
you
your
screen
a
little
bit
more
real
estate
here
and
I'm
really
excited
to
see
what
you
have
built
and
how
you
can
use
it.
So
the
stage
is
all
yours.
B
Thank
you,
jurgen
exactly
so
kept
in
the
box
is
basically
a
patch
script
right
that
will
enable
you
to
start
your
journey
to
the
autonomous
cloud,
really
really
easy
right.
So
if
you
go
to
tutorials
at
captain
sh
here,
you
will
see
the
tutorial
and
this
tutorial.
B
The
explanation
right
or
what
the
script
does
and
we're
gonna
do
this
together
right.
So
before
I
start
explaining,
let's
just
save
some
time
and
be
efficient,
so
I
have
already
an
ubuntu
machine
prepared
and
I'm
gonna
just
kick
off
the
installation
right.
So
in
here
I
have
captain.
B
And
I
have
here
already
how
to
start
it
and
I'm
gonna
send
the
script.
So
now
I
kicked
off
the
installation
all
right
and
I'm
gonna
explain
what
what
is
the
script
doing
so
we
use
the
time
efficiently
so
kept
that
in
a
box
just
pass
script
for
this.
Let
me
just
actually
use
a
slide
that
I
prepared
for
you
and.
A
By
the
way,
the
link
to
the
tutorial
is
in
the
video
description
below
so
everything
that
we
are
going
to
see
here
from
searcher.
You
can
follow
on
your
own
machine
or
in
the
cloud
by
just
following
the
tutorials.
Exactly.
B
Links
of
the
project
where
you
find
all
the
source
files
and
of
the
tutorial
which
link
you
to
the
source
files
right.
So
this
is
just
a
bash
script
that
is
programmed
in
a
modular
fashion,
meaning
you
can
select
what
you
need.
If
you
have
wanna
do
a
workshop
in
your
company
or
with
your
friends
or
do
a
code
session,
you
can
select
only
what
you
need
right
depending
the
more
you
need.
The
bigger
the
machine
is
gonna
have
to
be
right.
Why?
B
Because
you're
gonna
having
a
single
machine,
you
can
they're
gonna
install
we're
gonna
install
docker,
so
you
can
have
your
own
registry.
You
can
push
your
own
images,
we're
gonna
use
microkubernetes.
The
latest
version:
zero.
Eight
one
we're
using
119
ubernet
is
119,
which
is
right.
Now
the
most
common
production
version
is
going
to
install
cube
ctl.
So
you
can,
if
you
log
to
the
machine,
you
start
typing
qctl
and
it's
already
bound
to
the
two
microkubernetes
they're
going
to
have
the
latest
east
201
1.9
helm,
jenkins.
B
Gaitea
is
your
own
git
server,
so
you
can
see
because
captain
uses
github's
approach.
So
you
can
see
all
the
repositories
that
is
using
captain
for
your
projects
right,
so
you
can
analyze
the
shifter
file,
the
sli,
the
slo
configuration
and
all
that
which
enables
you
to
learn
faster.
It's
going
to
have
your
own
repository.
B
I
don't
think
we
have
a
tutorial
for
building
own
images.
But
if
you
have
your
own
image
you
can
you
don't
need
another
repository.
You
can
use
the
single
machine
and
push
the
the
your
own
images
and
you
can
use
helm
charts
and
have
your
own
contained
devops
environment
right.
So
we're
going
to
use
an
engine
next
ingress,
meaning
you
don't
need
a
a
a
load
balancer
ip
right,
just
using
the
symbol,
ip
of
the
machine.
B
This
can
be
the
local
interface
or,
if
you
have
a
public
id,
which
is
better
we're
going
to
expose
everything
with
the
magic
domain
with
nepali
right
and
if
you
have
a
dyna
trace.
I
recommend
you
to
try
it
with
anatress,
go
to
dynatris
trial
and
you
can
get
the
installation
with
the
full
stack
agent
and
kubernetes
monitoring,
meaning
you're
gonna,
get
monitoring
of
kubernetes
and
the
namespaces
events,
and
all
that
right.
B
B
First,
you're
gonna
need
your
ubuntu
box
right.
What
we
test
is
18
and
20
the
versions.
The
long
term
support
here
here
are
some
links
that
you
can
create
a
cloud
account,
so
you
can
have
a
free
tier.
If
you
don't
want
to
have
a
cloud
instance,
you
can
also
use
multi-pass.
Multi-Pass
is
a
project
of
ubuntu
that
allows
you
to
have
locally
virtual
machines
in
ubuntu.
The
sizing
depends
highly
on
how
much
components
you
want
to
install
right.
B
So
what
I
just
literally
just
did
right
now
I
was
already
inside
an
ubuntu
machine.
I
download
the
shell
file
right
and
I
made
it
executable
so
inside
the
shell
file.
You
have
a
couple
of
configurations
that
you
can
have
you
don't
have
to.
You
can
just
run
it
the
way
it
is,
but
I
modify
a
little
bit.
What
did
I
modify?
I
entered
the
dimetris
api
token
and
the
past
open
here.
You
can
see
how
you
can
get
the
steps,
so
you
can
get
your
token.
B
I
didn't
configure
the
the
domain,
because
the
machine
by
default
is
the
domain
variable
is
empty,
is
gonna,
make
a
call
to
it.
Config
me,
meaning
if
you
have
a
public
ip,
it's
gonna
expose
all
the
services
with
the
public
id
using
nitpio,
which
is
a
magic
domain,
meaning
it's
going
to
resolve
always
to
the
idea
you're,
giving
that
it
allows
you
to
have
with
sub-domains
all
the
services
that
you
want
right.
The
cards,
the
captain
kubernetes
api,
kubernetes
dashboard,
whatever
you
deploy
in
there,
you
can
use
with
only
one
ip
right,
for
example.
B
In
this
example,
you
can
see
we're
exposing
a
machine
in
a
home
wi-fi
right,
so
you
have
the
option
to
create
a
workshop
user
where
you
can
specify
the
user
and
password
which
allows
you
to
create
machines
for
your
colleagues
and
say:
hey
jurgen.
This
is
your
machine
with
your
user.
You
can
and
the
password
you're
going
to
want
to
try
right
which
will
configure
it.
B
So
you
can
access
it
via
ssh
and
when
you're
gonna
access,
this
machine
he's
gonna,
be
able
to
use
cube,
ctl,
captain
cli
and
everything
that
we're
installing
in
there
right.
So
everything
is
already
configured,
so
he
can
just
get
in
there
and
start
typing
and
deploying
applications
right.
So
the
installation
bundle
captain
is
programming
a
modular
way.
So
these
are
like
the
modules
or
control
flags
which
are
defined
in
each
module
so
urine,
meaning
if
docker
install
equals
true
we're
going
to
install
docker
if
micro
ubernet
is
equals.
B
True
we're
going
to
install
it
right
and
the
bundle
is
a
set
of
configurations
right.
So
you
you
can
configure
it
as
you
want.
You
can
say:
okay,
I
do
want
to
have
this
or
you
can
enhance
it.
If
you
modify
the
function,
shell
file,
you
can
add
more
modules
or
more
stuff
that
you
can
configure
right
and
yeah.
A
B
Pretty
much,
that's
it
right
now.
What
I
did
I
modified
the
shell
script
with
bundle
all
because
I
want
to
show
all
the
modules
deployed
in
a
machine
right.
I'm
gonna
need
a
bigger
I'm
using
a
2x
large,
if
I
believe
in
aws,
so
I
can
have
enough
power
to
have
absurd
manager,
gaitia,
dinotrus,
monitoring,
captain
with
the
execution
plane
and
the
control
claim
kubernetes
api.
B
By
the
way
you
have.
You
need
to
be
careful
also,
if
you
want
to
patch
the
coordinated
dashboard,
which
means
we're
modifying
the
kubernetes
dashboard
that
is
exposed,
so
you
can
access
it
without
credentials
right.
So
it's
really
easy
for
you
to
start
learning
uber
needs.
But
you
need
to
be
aware
that
if
we
touch
it,
it's
accessible
to
everyone
right,
so
you
can
also
start
killing
pots
or
deploying
stuff
that
you
don't
really
want
right,
yeah
and
the
same
with
the
captain
bridge
we
disable
the
login.
B
Actually
I
see
I
need
to
put
a
flag
in
here
also
for
you
to
learn
faster
right,
so
you
don't
have
to
type
the
the
the
the
user
password.
So
you
can
access
captain
bridge
easily
right
and.
A
This
is
what
run
just
one
one
comment
from
my
side
here,
so
the
best
is
to
just
use
a
installation
bundle
not
to
go
through
all
the
different
options
and
flags,
but
to
select
one
installation
bundle.
So
in
this
case
we
use
the
the
full
all
the
installation
funnel
all
we
want
to
have
everything,
but
all
the
bundles
are
described
just
a
little
bit
below
sorry
over
this
this
table.
A
B
In
step
number
12,
I
have
advanced
features
where
I
show
how
to
after
you
have
installed
captain
in
a
box
how
you
can
restore
it
like
delete
everything
so
that
okay,
I
broke
it.
How
can
you
reinstall
it
again
or
how
can
you
install
specific
features
right
because
you
can
load
the
shell
file
and
run
the
functions
separately
right
so
yeah,
and
for
that
I'm
gonna
explain
a
little
bit
later.
Let's
just
take
a
look,
how
the
installation
is
going,
but
yeah
you're
going
to
write.
B
B
So,
let's
just
see
how
is
the
installation
going?
We
see
it's
running
on
the
background.
This
is
a
way
for
you
to
be
efficient.
You
can
always,
if
you
do
less
plus
f
the
install
log,
you
can
see
the
actual
status
right.
So
it's
a
process
that
you're
sending
in
the
background.
You
can
do
your
stuff
in
the
machine
and
then
take
a
look
at
it,
because
sometimes
it
takes
a
bit
of
time,
especially
updating
ubuntu.
B
A
B
A
So
I
know
that
it
sometimes
it
takes
up
to
10
minutes
for
the
the
whole
package
to
be
installed.
I
already
did
it
a
couple
of
times
myself
in
and
searcher
already
prepared
for
us
for
this
video
kind
of
another
machine
where
we
can
skip
the
installation
procedure,
it's
running
in
the
background
of
the
other
machine,
but
just
for
the
demo
purpose.
A
We
are
now
switching
to
the
machine
that
we
just
created
actually
like
one
hour
ago
for
us
to
to
be
able
to
skip
this
part
and
the
waiting
part
exactly.
We.
B
B
Everyone
took
seven
minutes
and
24
seconds
right
and
we
at
the
very
bottom
at
the
end
of
the
installation,
we
print
the
credentials.
So
you
can
take
a
look
and
also
the
usage
how
much
space
you're
you're
using
the
dis
available
right
so
at
the
very
beginning,
also
the
flags
are
going
to
be
there.
So
if
you
have
any
any
issue,
you
can
always
talk
to
us
and
say
hey.
I
have
an
issue
and
with
the
log
file
we
can
see
exactly
which
step
and
what
what
the
configuration
to
trigger.
B
B
So
at
the
very
bottom
you
see,
for
example,
here
all
the
services.
These
are
ingresses
right,
the
ingresses
that
are
exposed
and
we
have
captain.
We
have
kaitia.
We
have
a
home
page
right,
jenkins,
api
kubernetes,
the
cards
application
on
english
right.
We
have
the
credentials
for
unleash
because
there
is
a
tutorial,
the
captain
full
tour,
so
actually
we're
deploying
the
full
tour
automatically
right.
So
let
me
just
show
you
really
really
quick
what
I
mean.
B
A
B
So
here
are
all
the
services,
something
you
need
to
know
is
if
I
type
qctl
now
it's
not
going
to
show
me.
This
is
letting
me
know,
hey
you
don't
have
enough
information.
Why?
Because
this
is
gonna,
be
installed.
I
mean
in
the
same
session
that
I
am.
I
don't
have
the
permission,
so
I
need
to
create
another
session.
I
can
exit
the
machine
and
get
inside
the
machine
or
create
a
new
new
shop
right.
So.
B
A
A
A
Exactly
I
know
that
you
also
have
a
kind
of
a
home
page
that
will
list
everything
that
is
installed.
So
maybe
we
can
take
a
look
at
this
home
page
because
that
will
be
the
starting
point
once
you
have
installed
captain
box,
the
home
page
is,
is
your
starting
point
with
all
the
links
and
it's
always
the
landing.
B
Page
exactly
so
what
I
did
just
now,
I
type
cube
ctl
get
ingress
all
so
I
have
all
the
ingress
of
the
namespaces
of
all
the
namespaces.
I'm
sorry-
and
I
want
to
copy
this-
the
homepage
ingress,
because
this
will
be
the
starting
point
right
for
the
captain
in
the
box.
So
let's
just
put
this
and
there
we
have
it
right.
This
is
the
machine
we
have
here
some
links
and
these
links
are
done
with
javascript,
so,
depending
on
the
domain,
you're
gonna
adapt
automatically
right.
So
I
have
the
kubernetes
dashboard
exposed
right.
B
So
I
can
click
here
on
skip
and
boom.
I
have
already
all
the
parts,
all
the
name
spaces,
so
I
can
start
learning,
also
kubernetes,
I'm
new
to
learning
this
right
to
understand.
Okay,
what
is
our
demonstration?
What
is
a
deployment?
What
kind
of
jobs
stuff
like
that?
So
we
have
the
kubernetes
api
also
exposed
right.
So
you
can
start
communicating
with
the
api.
If
you
have,
you
can
manage
different
machines
and
you
use
modify
the
keep
the
config
file,
so
you
can
also
do
remotely
stuff.
B
A
B
A
B
So
really
cool
and
the
dslrs,
and
everything
is
here
configured
right,
so
you
can
go
into
the
services
right,
so
also
nice
to
know
is
that
these
services
are
exposed,
so
you
can
actually
interact
with
the
services
in
here.
There's
a
link
called
delivery
pipeline
overview.
So
if
I
click
in
here,
it's
nothing
else
that
an
html
with
iframes.
B
So
we
have
cards
in
development
in
staging
and
in
production
right.
So
we
have
the
three
different
stages
right
and
you
can
also
access
each
one
of
them
singular
like
development,
and
you
can
see
this
is
the
url
with
our
magic
domain
right.
A
Really
cool,
and
can
we
also
take
a
look
on
the
git
repository
because
I
think
there
is
also
everything
connected
to
the.
B
Repository
exactly
so,
git
is
deployed
with
the
subdomain
git
right.
So
if
you
click
on
the
link,
maybe
I
click
too
fast
here
on
the
repositories.
It
has
an
api,
so
you
can
manage
repository
with
the
api
and
it
has
also
a
ui.
So
in
the
ui
we
see
the
sock
shop
and
unleash
so
if
I
click
on
the
sock
shop,
captain
uses
branches
for
the
stages
right,
so
we
have
here
the
master.
Then
we
have
production
staging
and
the
effort
right.
B
B
A
Really
good
yeah!
So
sorry,
I
just
want
to
highlight
here
that
you
see
everything
has
been
created
just
a
couple
of
minutes
ago.
So
this
is
the
fresh
installation
that
sanchez
started
just
before
we
started
the
recording
to
have
kind
of
a
backup
machine
to
save
some
time
in
this
recording
and
everything
was
created.
So
when
you
execute
the
captain
in
the
box
bash
script
that
we
showed
in
the
beginning
of
this
video,
this
is
what
you
will
get
out
of
the
box.
There
was
no
manual
intervention
needed.
A
This
is
what
you
already
get
and
you
can
start
playing
and
start
learning
with
with
captain.
That's
the
really
cool
part
you
don't
have
to
follow
the
tutorial.
You
can
still
follow
the
tutorial,
the
full
tour
on
dynatrace,
and
it
will
give
you
all
the
steps
and
every
step
has
been
already
executed
automatically
in
this
captain
in
the
box,
and
this
is
why
I
really
love
it
because
it's
so
fast
to
spin
up
and
show
it
to
someone
and
experiment
with
captain
and
to
learn
captain
that's
right
exactly.
B
Exactly
and
let's
say,
for
example
now
you
want
to
because
everything
is
in
the
machine
so
well
first,
now
that
I'm
in
git,
I
can
sign
in
here
and
the
credentials
are
again,
we
put
them
on
the
on
the
shell
file
right.
B
B
So
in
here,
for
example,
you
see
the
workshop
user
we
created,
so
I
can
actually
access
with
ssh
with
this
user
and
password
that
you
can
modify
and
as
well.
The
git
server
access
here
is
the
username
and
the
password.
So
you
can
manually
create
more
projects
and
on
board
and
stuff
like
that,
the
same,
there
is
also
a
jenkins
server
for
another
session,
where
we
can
show
how
easy
it
is
to
expand
and
enhance
pipelines
right
the
credentials
for
unleash
and
yeah
on
this
services.
B
What
I
wanted
to
show
as
well
is
in
here
you
can
see
that
the
repository
was
cloned,
so
we
have
the
examples
repository
of
the
captain
tutorials
and
we
have
the
captain
in
a
box
also
repository
that
was
cloned,
because
in
here
there
are
some
function
that
allows
you.
For
example,
if
I
go
to
resources
and
I
go
to
demo
right,
they're
gonna.
A
B
Deploy
card
0
1,
because
that
can
actually
even
be
automated.
Let's
say
we
want
to
deploy
cards
number
two,
there's
nothing
else!
That's
just
calling
the
captain
trigger
delivery
right,
so
I
can
actually
just
hold
this
file
or
manually,
and
now
I'm
sending
version
two,
that's
it
as
it's
just
that
I
already
onboarded
one
and
it
went
through
all
the
stages
right.
So
if
I
go
to
the
machine
right-
and
this
is
the
pipeline
in
here
version,
two
is
gonna.
B
A
A
Cool,
I
think
it's
really
a
great
tutorial,
the
captain
in
the
box.
You
can
get
started
so
fast
with.
A
We've
seen
how
you
can
get
started,
how
to
install
it,
what
it
will
give
you
how
to
configure
it.
There
are
different
installation
bundles.
There
is
even
a
troubleshooting
guide
that
sergio
mentioned
if
something
goes
wrong,
but
actually
I
already
did
it
a
couple
of
times
now
we
even
used
it
for
workshops
already
and
it
always
worked
like
a
chart.
So
it's
a
really
great
thing
to
to
use
and
to
give
it
a
try
thanks
also
for
putting
here
the
the
slack
for
captain.
A
So
if
you
have
any
questions,
please
find
us
in
the
captain
slack.
Yes,
I
think
this
was
a
great
episode
to
show
our
community
how
to
use
captain
and
how
to
get
started
really
fast
with
captain
in
the
box.
That
already
brings
you
all
the
demo
experience
that
we're
providing
in
the
other
tutorials.
B
Exactly
how
much
do
I
have
two
minutes
sure
explain
perfect
so
guys
if
you
face
an
issue
again
reach
us
on
slack,
we're
more
than
glad
to
help
you.
There
are
some
scripts
here
that
allows
you
to
see
hey.
Do
I
have
a
problem
or
not
so
doing
like
this,
helps
you
to
find
do
I
have
an
error
in
the
lot
right.
Also,
if
you're
learning,
then
the
best
way
is
to
deploy
stuff
and
break
stuff.
B
So
if
you
break
the
machine,
not
a
problem,
you
could
here
have
some
functions,
so
you
can
restart
microkubernetes,
delete,
microkubernetes
and
start
all
over
again.
For
that
we
recommend
doing
a
snap
remove.
So
you
purge
everything
and
you
start
over
again
right,
and
there
are
some
advanced
features
in
bash
means
load
the
functions
in
in
the
shell
right.
So
when
you
load
the
functions
in
the
shell,
then
you
can
start
calling
them
manually
right.
B
B
A
function
inside
this
function
is
like,
if
jenkins
equals
true,
do
it
right,
so
we're
loading
function
and
setting
everything
to
true.
So
now
we
can
call
functions.
I
mean
here
where
it
can
deploy
jenkins
manually
or
enable
kubernetes
dashboard
or
the
own
git
server
right
or
create
a
work.
Another
workshop
account
a
worship
account
or
another
meaning.
You
want
to
use
the
machine
and
add
more
users.
This
script
is
going
to
create
a
home
directory
and
load
captain
and
qctl,
so
you
can
have
multiple
users
right
and
that's
it.
B
A
So
thanks
searcher
for
joining
today.
It
was
really
a
pleasure
to
have
you
here
and
to
learn
how
captain
in
the
box
works
and
how
to
use
it
and
yeah
happy
captaining
and
shipping
applications.