Skip to content

Commit

Permalink
MINOR: pebble markdown documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmatmati authored and oktalz committed Sep 6, 2023
1 parent 3024d6a commit ac1fccc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
#### Experimental
- [Gateway API](gateway-api.md)

#### Additional
- [Supervisor](pebble.md)

This is autogenerated from [doc.yaml](doc.yaml). Description can be found in [generator readme](gen/README.md)

3 changes: 3 additions & 0 deletions documentation/gen/readme.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ var headerREADME = `
#### Experimental
- [Gateway API](gateway-api.md)
#### Additional
- [Supervisor](pebble.md)
This is autogenerated from [doc.yaml](doc.yaml). Description can be found in [generator readme](gen/README.md)
`
Expand Down
16 changes: 16 additions & 0 deletions documentation/pebble.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# ![HAProxy](../assets/images/haproxy-weblogo-210x49.png "HAProxy")

## Pebble supervisor

A supervisor is a parent processus that manages one or several processes. It controls the lifecycle of a process thanks to a configuration so that your process is ensured to be running as long as needed.

### Docker/K8S

We already provided the well-known S6 supervisor which is activated by default in our Docker image. It is enabled by the command line option `--with-s6-overlay`. We propose now an other awarded supervisor: Pebble. You can find documentation about Pebble in Canonical [documentation](https://github.com/canonical/pebble). The Ingress Controller can switch to Pebble by the flag `--with-pebble`. Note that the official Docker images are stil using S6 but you can build your own with Pebble thanks to the provided Dockerfile `Dockerfile.pebble`. To build your own Docker image supervised by Pebble simply run `make build-pebble`. Here you go, just upload the Docker image in the according registry if necessary and that's it. Your new controller will automatically use Pebble for its process management.

### External mode

Please install pebble in a location included in your PATH environment variable (check documentation for installation).
You need to create your own Pebble directory if you don't want to use the default directory. In the following presentation, we'll keep the default one.
In `/var/lib/pebble/default/` copy the run-controller and run-haproxy scripts and adapt the executables paths according your environment. These scripts are located under `fs/var/lib/pebble/default/` in the git repository. Then add the `layers` directory in `/var/lib/pebble/default/` and copy in it the file `fs/var/lib/pebble/default/layers/001-haproxy.yaml`. If you didn't change the default directory of Pebble you don't need to change anything. Now you start with `pebble run`.

0 comments on commit ac1fccc

Please sign in to comment.