pebble

package
v0.0.0-...-51a0f74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package pebble defines constants (probe handlers, health check ports) to be used in Pebble container specs.

Index

Constants

View Source
const (
	// for api-server container (jujud)
	ApiServerHealthCheckPort = "38811"

	// for charm container (containeragent)
	CharmHealthCheckPort = "38812"
)

Reserved Pebble health check ports for each container. All ports from 38813 onwards are reserved for workload containers Additional ports should be allocated backwards e.g. 38812, 38811, 38810, ...

Variables

This section is empty.

Functions

func LivenessHandler

func LivenessHandler(port string) corev1.ProbeHandler

func ReadinessHandler

func ReadinessHandler(port string) corev1.ProbeHandler

func StartupHandler

func StartupHandler(port string) corev1.ProbeHandler

func WorkloadHealthCheckPort

func WorkloadHealthCheckPort(i int) string

WorkloadHealthCheckPort returns the HTTP port to use for Pebble health checks on workload container i, where i = 0, 1, 2, ...

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL