Important
|
The instructions have not been written/finished, but the resource file has been verified. Instructions will be added soon. |
kubectl create configmap random-generator-config --from-literal=pattern=EnvVarConfiguration
kubectl create secret generic random-generator-secret --from-literal=seed=11232156346
kubectl create -f pod.yml
kubectl create -f service.yml
port=$(kubectl get svc random-generator -o jsonpath={.spec.ports[0].nodePort})
curl -s http://$(minikube ip):$port/info | jq .
{
"memory.free": 24,
"seed": 11232156346,
"memory.used": 46,
"cpu.procs": 1,
"memory.max": 481,
"logFile": "/tmp/random.log",
"pattern": "EnvVarConfiguration",
"id": "b5942022-5925-4672-9c26-8cf255b5ccf0",
"version": "1.0"
}