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 ¶
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.
Click to show internal directories.
Click to hide internal directories.