NOTE:
For demonstration purposes only, not for use in production.
Refer the following documentation for detailed information:
https://oracle.github.io/weblogic-kubernetes-operator/
WebLogic Server deployment on a Kubernetes cluster using WKO involves the following tasks:
1. Download, Install and Configure WebLogic Kubernetes Operator
– Create a namespace – “sample-weblogic-operator-ns”
– Create a Service Account – “sample-weblogic-operator-sa”
– Add a repo and install Operator using Helm – “sample-weblogic-operator”
2. Download, Install and Configure Traefik
– Create a namespace – “Traefik”
– Add a repo and install Traefik using Helm – “traefik-operator”
3. Download and Install WebLogic Server from Oracle Container Registry (OCR)
– Create a namespace – “sample-domain1-ns”
– Configure Traefik to manage ingresses created
– Create a secret which contains username and password to login and pull WebLogic Server image from Oracle Container Registry (OCR) – “weblogic-repo-credentials”
4. Create and configure a WebLogic Server Domain
– Create a kubernetes secret for domain which contains the WebLogic Server Admin username and password – “sample-domain1-weblogic-credentials”
– Create a domain runtime encryption secret. – “sample-domain1-runtime-encryption-secret”
– Create a sample WebLogic Server domain – “sample-domain1” with wls cluster “sample-domain1-cluster-1”
– Create ingress route for WebLogic domain
1. Download, Install and Configure WebLogic Kubernetes Operator
Step 1.1:
Create a namespace, say “sample-weblogic-operator-ns” for WebLogic Kubernetes Operator:
Step 1.2:
Create a ServiceAccount, say “sample-weblogic-operator-sa” in Operator namespace “sample-weblogic-operator-ns”
Step 1.3:
Add repo and install Weblogic Kubernetes Operator using Helm
OR
If you want to use a custom build WKO image or pull the image from another repository:
Example:
Verify if the pods were created successfully:
2. Download, Install and Configure Traefik
Step 2.1:
Create a namespace for Traefik, say “traefik”
Step 2.2:
Add repo and install Traefik:
OR
If you want to pull Traefik image from a different repository:
Example:
3. Download and Install WebLogic Server from Oracle Container Registry (OCR)
Step 3.1:
Create a namespace for WebLogic Server, say “sample-domain1-ns”
This namespace can host one or more domains. Set a label “weblogic-operator=enabled” to this namespace.
Step 3.2:
Configure Traefik to manage ingresses created in this namespace.
Step 3.3:
Create a secret which contains username and password to pull WebLogic Server image from Oracle Container Registry (OCR)
4. Create and configure a WebLogic Server Domain
Step 4.1:
Create a secret that holds WebLogic Server Admin username and password
Step 4.2:
Create a secret that contains domain runtime encryption password
Step 4.3:
Create a domain, say “sample-domain1” with a WebLogic cluster, say “sample-domain1-cluster-1”
Verify if it was created successfully:
Step 4.4:
Create an ingress route for this domain
Access WebLogic console: