WebSphere interview question
How do you run Liberty in containers and on Kubernetes?
How you'd do it
Summary
Build an image from an official Open Liberty or WebSphere Liberty base image: copy server.xml and the
application, run features.sh to install features at build time, and configure.sh to finish the image. On
Kubernetes, use readiness, liveness and startup probes on MicroProfile Health endpoints, externalise configuration
through environment variables and mounted ConfigMaps/Secrets, and optionally the Open Liberty Operator to
manage applications.
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More WebSphere questions
- Explain the traditional WebSphere Network Deployment architecture: cell, Deployment Manager, nodes, node agents, servers and clusters.
- WSVR0605W hung thread warnings appear and the application stops responding. What do you do?
- How does Liberty's server.xml and feature model work?
- How do you configure a JDBC data source and connection pool in Liberty and in traditional WAS?
- What is WebSphere Application Server, and how do Liberty and traditional WAS differ?
- Explain class loading in WebSphere: parent-first versus parent-last, and shared libraries.
- Users see errors and the logs show J2CA0045E: connection not available. How do you investigate?
- How would you migrate an application from traditional WebSphere to Liberty?