Skip to content

Commit

Permalink
Merge pull request #993 from kapicorp/address_992
Browse files Browse the repository at this point in the history
Address #992
  • Loading branch information
ademariag authored Apr 23, 2023
2 parents 9b1579b + c80e953 commit 114a4ad
Show file tree
Hide file tree
Showing 15 changed files with 434 additions and 417 deletions.
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ repos:
rev: 22.10.0
hooks:
- id: black
language_version: python3.8
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.32.2
hooks:
Expand Down
70 changes: 70 additions & 0 deletions docs/getting_started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# :kapitan-logo: **Kapitan Overview**

## Setup your repository

!!! note
We are currently working on improving the experience to give you an even quicker experience with Kapitan

### Quickstart

[kapicorp/kapitan-reference](https://github.com/kapicorp/kapitan-reference) repository is meant to be a way to bootstrap your **Kapitan** setup to get you up and running.

It is meant to help you make use of best practices and libraries that can make Kapitan the ultimate tool for all your configuration needs.

```
$ git clone [email protected]:kapicorp/kapitan-reference.git kapitan-templates
$ cd kapitan-templates
$ ./kapitan compile
Compiled postgres-proxy (1.51s)
Compiled tesoro (1.70s)
Compiled echo-server (1.64s)
Compiled mysql (1.67s)
Compiled gke-pvm-killer (1.17s)
Compiled prod-sockshop (4.74s)
Compiled dev-sockshop (4.74s)
Compiled tutorial (1.68s)
Compiled global (0.76s)
Compiled examples (2.60s)
Compiled pritunl (2.03s)
Compiled sock-shop (4.36s)
```

### From Scratch (Advanced)

!!! warning

the `kapitan init` command leaves you with a bare configuration. Setting up Kapitan might require time.

Please use the [**Quickstart**](#quickstart) setup if you want to get started quicker.

If you want to start off with a clean **kapitan** project, you can run `kapitan init --directory <directory>` to populate a new directory with the recommended kapitan folder structure.

The bare minimum structure that makes use of kapitan features may look as follows:

```text
.
├── components
│ ├── mycomponent.jsonnet
├── templates
├── ├── README.md
├── inventory
│ ├── classes
│ │ ├── common.yml
│ └── targets
│ ├── dev.yml
│ ├── staging.yml
│ └── prod.yml
├── refs
│ ├── targets
│ │ ├── prod
│ │ │ └── password
└───├── common
└── example-com-tls.key
```

* `components`: template files for kadet, jsonnet and helm
* `templates`: stores Jinja2 templates for scripts and documentation
* `inventory/targets`: target files
* `inventory/classes`: inventory classes to be inherited by targets
* `refs`: references files
316 changes: 0 additions & 316 deletions docs/inventory.md

This file was deleted.

Loading

0 comments on commit 114a4ad

Please sign in to comment.