Kubernetes endpoints not update when removing kubernetes-master unit

Dear all,

how I can manually invoke an action (or in any way) to remove endpoints from Kubernetes endpoints? When I removed kubernetes-master unit from the model it was removed but juju did not update the endpoints. So there is non-existing IP address of the removed kubertes-master, please see an example:

ubuntu@hostname:~$ kubectl get endpoints kubernetes -o yaml
apiVersion: v1
kind: Endpoints
metadata:
  creationTimestamp: "2022-05-26T09:51:39Z"
  labels:
    endpointslice.kubernetes.io/skip-mirror: "true"
  name: kubernetes
  namespace: default
  resourceVersion: "145234371"
  uid: 984a6d8c-708c-40b6-bcff-160e4ea3e376
subsets:
- addresses:
  - ip: 10.244.225.64
  - ip: 192.10.1.25
  - ip: 192.10.1.26
  - ip: 192.10.1.27
  ports:
  - name: https
    port: 6443
    protocol: TCP

Actually there were removed kubernetes-master unit with IPs 192.10.1.25 and there is also some strange IP 10.244.225.64 which is probably caused by co-location kubernetes-master unit with ceph-mon unit and it end up with config mismatch when kubernetes master get an IP from the Calico vx-lan network during some update (probably) - but this is another problem.

Juju controller version is 2.9.29 and k8s components are 1.23.12.

When I manually update the endpoints through i.e. “kubectl edit” in very short time it revert back to previous configuration.

Thank you for any help