I'm going crazy here :slightly_smiling_face: I am ...
# kubernetes
d
I'm going crazy here 🙂 I am adding a new port to a `Service`:
Copy code
- name: web-dashboard
    nodePort: 31915
    port: 81
    protocol: TCP
    targetPort: web-dashboard
And then I add a similar entry to its associated `EndpointSlice`:
Copy code
- name: web-dashboard,
  port: 8001,
  protocol: TCP
But the `endpointslice-controller`keeps on nuking the new entry in
EndpointSlice
. Am I missing something? Why would the new port get garbage-collected by the controller? Does anyone have any ideas?
It's probably happening because the
EndpointSlice
references a port that does not match any pod's
containerPod
. Investigating...