If you are going to be running ESCWA in a pod in a Kubernetes cluster, when you start ESCWA you can specify an additional parameter to enable it to determine which other pods in the cluster are running directory servers that you want to be able to manage in ESCWA.
When using this additional parameter you specify a label. ESCWA then uses the Kubernetes API to query all pods running on the cluster and checks if they have a label that matches the label that you specified. Each pod with a label that matches the specified value is then listed in ESCWA as a directory server (provided that Micro Focus Directory Server (MFDS) is running on it). The ports for each of the pods that you want ESCWA to detect must have a name of "mfcobol" and only need expose TCP on port 86.
To specify the additional parameter add it to the escwa command that you run to start ESCWA using the following format:
--K8sConfig='{"Direct":Direct-value, "Port":"Port-value", "Namespace":"Namespace-value", "LabelEnvironment":LabelEnv-value, "Label":"Label-value"}'
where the right-hand side of the parameter is a JSON object containing properties that take the following values:
When specifying the label to search for, you specify the key/value pair separated by "%3D". See Kubernetes: Labels and Selectors in the Kubernetes documentation for more information on Kubernetes labels.
escwa --K8sConfig={"Direct":false, "Port":"8001", "LabelEnvironment":false, "Label":"app%3Dmyapp-k8s-escwa", "Namespace":"default"}' &