Documentation ¶
Overview ¶
Package calc provides function to calculate resource quotas for different k8s resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceUsage ¶
ResourceUsage summarizes the usage of compute resources for a k8s resource.
func Deployment ¶
func Deployment(deployment appsv1.Deployment) (*ResourceUsage, error)
Deployment calculates the cpu/memory resources a single deployment needs. Replicas and the deployment strategy are taken into account.
func StatefulSet ¶
func StatefulSet(s appsv1.StatefulSet) (*ResourceUsage, error)
StatefulSet calculates the cpu/memory resources a single statefulset needs. Replicas are taken into account.
Click to show internal directories.
Click to hide internal directories.