preloader

Hard

Overview

For those new to Carvel packaging, this is an example walk through taking you through the manual steps for the creation of a Carvel Package “the hard way”.

It is assumed that the reader already has an understanding of Kubernetes concepts and has knowledge of the carvel components prior to following this.

In a production setting, there are utilities, tools and CI that are used to make this process easier, but this walkthrough is designed to show the manual steps to help understand the process and see “how the sausage is made”.

The following pages will take you through the steps that a Package Author would take to create a package that is then consumed by a Package Consumer.

We will work through an example process one might take in order to package an application ready for localised testing. The process will vary based on the type of package being created and how you will customise it, but the general process is the same.

By the end, you will be glad to know that we have tools and automation to help you with the process. 😄

The sample application used in this process is called pacman. I wonder what it does?

Let’s find out!

Steps

To give you an idea on what to expect, here is a high level overview of the steps we will work through.

  1. Prepare
  2. Define variables
  3. Create folder structure
  4. Run vendir
  5. Run ytt
  6. Run kbld
  7. Create the Package
  8. Run imgpkg
  9. Kapp Controller
  10. Create the Repository
  11. Celebrate

Time

How long will this take?

Unfortunately I can’t give you a definitive answer.

It really depends on your experience with the tools, level of kubernetes knowledge and familiarity with the concepts. We have heard from users ranging from taking 1 hour, to others taking 1 day to complete the process start to finish.