[midPoint] Midpoint 4.8 Kubernetes Cluster

SHARMA Kapil kapil-a.sharma at thalesgroup.com
Tue Nov 28 11:44:47 CET 2023


THALES GROUP LIMITED DISTRIBUTION to email recipients

Hello Everyone,

I hope you all are doing well.


I am trying to deploy a Cluster of midpoint 4.8 nodes in GCP Kubernetes and as soon as I scale up (kubectl scale -n mp-demo --replicas=2 statefulset/mp-pg-demo), I am unable to login on midpoint and see below error message in the midpoint logs.

Also if you can provide some clarity on NFS , Is it really mandatory to have NFS service for a midpoint cluster in Midpoint ?

Caused by: java.net.UnknownHostException: UnknownHostException invoking http://idm-framework-server-0.idm-framework-server.idm-poc.svc.cluster.local:8080/midpoint/ws/cluster/event/invalidation/connectors/892f882a-cf8a-431e-961b-cfd993272b00: null
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
        at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1428)
        at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1409)
        at org.apache.cxf.io.AbstractWrappedOutputStream.close(AbstractWrappedOutputStream.java:77)
        at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
        at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:696)
        at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:63)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
        at org.apache.cxf.jaxrs.client.AbstractClient.doRunInterceptorChain(AbstractClient.java:710)
        at org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:1085)
        ... 51 common frames omitted
Caused by: java.net.UnknownHostException: null


I have already added below env variable in the stateful yaml file as mentioned in https://docs.evolveum.com/midpoint/install/kubernetes/cluster/

            - name: MP_SET_midpoint_taskManager_clustered
              value: "true"
            - name: MP_SET_midpoint_nodeIdSource
              value: hostname
            - name: MP_SET_midpoint_keystore_keyStorePath
              value: /opt/midpoint/mount-keystore/keystore.jceks
            - name: MP_SET_midpoint_keystore_keyStorePassword_FILE
              value: /opt/midpoint/mount-keystore/keystore
          volumeMounts:
            - name: mp-home
              mountPath: /opt/midpoint/var
            - name: db-pass
              mountPath: /opt/midpoint/config-secrets
            - name: keystore
              mountPath: /opt/midpoint/mount-keystore

I am not sure what am I doing wrong here , please advise if any of you have already setup a Kubernetes cluster for midpoint in your environment.

Thank you !

Regards
Kapil Sharma
Technical Lead
DIS-CPL
[cid:image001.png at 01DA21E5.AF7B6D20]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20231128/a824e2b0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 2428 bytes
Desc: image001.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20231128/a824e2b0/attachment.png>


More information about the midPoint mailing list