Skip to content

wearearima/kubernetes-resource-usage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test

Build with mvn clean package jib:dockerBuild.

Deploy to k8s: kubectl apply -f pod.yaml

Inspect kubernetes metrics with kubectl top pod.

Inspect resource usage inside the pod with kubectl exec --stdin --tty kubernetes-resource-usage -- sh

Results

Node's CPU cores: 4

Request Limit Java CPU Cores
0.1 - 1
2 - 2
2 4 4

Request: spec > containers > resources > request

Limit: spec > containers > resources > limit

Java CPU Cores: Runtime.getRuntime().availableProcessors()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages