oracle / weblogic-kubernetes-operator

WebLogic Kubernetes Operator

Home Page:https://oracle.github.io/weblogic-kubernetes-operator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WLS on AKS Domain on PV sample: multiple domains supported?

edburns opened this issue · comments

I have a customer who wants to follow the steps in WLS on AKS Domain on PV sample initially for the first domain, and then follow a subset of the steps for a second domain on the same AKS cluster, but with different PV for the second domain.

From the sample:

Use the kubectl command to create the Storage Class and persistent volume claim to the default namespace.

Customer:

Yes, those were the steps. I started at #create-weblogic-domain as I had already run all the steps once for the first domain. Since the steps assume the domain will be domain1, I also copied the ~/azure/weblogic-on-aks/domain1.yaml to 4cdomain.yaml and edited to fix the domain names, giving unique names for the admin and cluster servers, etc.

I had done the quoted storage class steps previously when creating the first domain

I guessed 2 domains in 1 namespace might not be supported but thought I'd ask. I was just trying to save some time on a 2nd app PoC but it won't take much longer to create another namespace, PV, etc

I judge the guidance was not written with this case in mind. This issue asks the assignee to determine the effort to support this case.

It turns out the issue is you can't start a domain name with a number. I was trying to use domainUID="4cdomain". When I changed the domainUID to domain4c I was able to create the 2nd domain in the same namespace.

Found this in an old document.

image

I judge the best course of action is to report this as a usability issue. A better error message would have helped.

Closing. See #3133.