Skip to content

Latest commit

 

History

History
29 lines (15 loc) · 615 Bytes

README.md

File metadata and controls

29 lines (15 loc) · 615 Bytes

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()