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 :
- CREATE FROM TEXT INPUT
- CREATE FROM FILE
- 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