k8sutil

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstanceCount

func GetInstanceCount(appLabel string) (int, error)

GetInstanceCount returns the number of pods running with the specified label If not running on Kubernetes, it returns 1 for local testing

func IsRunningInKubernetes

func IsRunningInKubernetes() bool

IsRunningInKubernetes checks if the application is running inside a Kubernetes cluster

Types

This section is empty.

Jump to

Keyboard shortcuts

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