Saturday, July 3, 2021

Learning 2: MiniKube Kubernetes Cluster WebLogic Application deployment

Hey Middleware Expert, I am going to discuss the Kubernetes cluster deployment. This is most important for the topic in Kubernetes in pod management with replicas and deployment for application Lifecycle management.

MiniKube having built-in Kubernetes Dashboard. This post is a continuation of  our  previous post "Learning  1. Minikube  Kubernetes Cluster  Running in the Oracle VirtualBox".

Create a new deployment using a Kubernetes dashboard

To create the new deployment in the minikube Kubernetes dashboard click on the 'deployments' under the workload. On the top right select +CREATE  and there are :

  1. CREATE FROM TEXT INPUT
  2. CREATE FROM FILE
  3. CREATE AN APP
Select the third option

Minikube dash board deployment of WebLogic 
For the App Name, we’ll call this deployment 'wls-app'. Container image for WebLogic 12c we will take ismaleiva90/weblogic12:latest. Here I've used docker pull for this image once it is available in the local docker registry then we can proceed further above step.

To make a deployment complete we need to expose the container port to the host port.


kubectl expose deployment wls-app --port=7001 --type=NodePort

service "wls-app" exposed

kubectl get pods -o wide

kubectl get pods with wide option

kubectl get svc
Listing Kubernetes services with kubectl

It might take few secs to bring up the container in the pod. We can see that the pod is now Running and we will now be able to curl it/browse it:

minikube service wls-app


WebLogic Admin console running in a Kubernetes - local Kube

6. If you want to delete the WebLogic application service wls-app and delete its deployment
kubectl delete service wls-app
service "wls-app" deleted
kubectl delete deployment wls-app
deployment "wls-app" deleted



No comments:

Post a Comment

Blurb about this blog

Blurb about this blog

Essential Middleware Administration takes in-depth look at the fundamental relationship between Middleware and Operating Environment such as Solaris or Linux, HP-UX. Scope of this blog is associated with beginner or an experienced Middleware Team members, Middleware developer, Middleware Architects, you will be able to apply any of these automation scripts which are takeaways, because they are generalized it is like ready to use. Most of the experimented scripts are implemented in production environments.
You have any ideas for Contributing to a Middleware Admin? mail to me wlatechtrainer@gmail.com
QK7QN6U9ZST6