The two pvc "ocai-mysql-claim" and "ocai-nb-claim" are consuming two pv which are resides on one real storage. After deploying it on openshift origin cluster, "empty" password worked when connecting to mysql.
And endpoint for glusterfs was destroyed soon after deployment, I didn't find out the reason.
Then I modified the deployment as below. And mysql worked as expected.
Now I have two questions:
1, Could two pv reside on one real volume? For example, glusterfs volume
2, I found glusterfs related endpoints disappeared after running deployment successfully. How could I debug such issue?
From: Vyacheslav Semushin <vsemushi redhat com>
Sent: Monday, November 27, 2017 9:52:50 PM
To: Yu Wei
Cc: users lists openshift redhat com; dev lists openshift redhat com
Subject: Re: environment variables when running multiple containers in one pod
2017-11-27 10:34 GMT+01:00 Yu Wei <yu2003w hotmail com>:
It doesn't work only when other containers are being created and when they try to connect to mysql container? If yes, then it could be a race when mysql container isn't ready while others try to connect to it.
Slava Semushin | OpenShift