Java Magazine, May/June 2019
ORACLE COM JAVAMAGAZINE MAY JUNE 2019 22 containers started id 0x9f01de18 L 0000 8080 WEB server is up http localhost 8080 greet This command is especially useful when you are doing development and working with a local cluster At scale there are several ways to collect store and make use of log data Open source projects as well as fully automated commercial oferings exist and an online search will show many options to explore Scaling to Meet Demand Suppose your service is part of an application and is responsible for saying Hello to users Your team anticipates a spike in use tomorrow so you will scale up your service to handle more users Scaling your deployments up and down is a core feature of Kubernetes To scale simply modify the number of replicas defined in your deployment specification and apply the changes via kubectl apply Edit your target app yaml file and apply the changes now Start by scaling the number of replicas up from one to five grep replicas target app yaml replicas 5 kubectl apply f target app yaml service helidon quickstart se unchanged deployment extensions helidon quickstart se configured You should now see five pods deployed where there was only one before Note that because Kubernetes configuration is declarative only the changes that are required are committed to the cluster In this case four pods are added to the deployment kubectl get pods
You must have JavaScript enabled to view digital editions.