How can k8s be aware of service running on host?

9/8/2019

I am running Cockpit on my host, its running as systemd service, at the same time I am using microk8s (single node k8s).

I dont need reverse proxy to Cockpit web ui, but I need something like external service/endpoint k8s object mapping, .. to be k8s aware of that service.

  • k8s should not allow to create another nodePort service with same port ( k8s layer, it should not collide on OS layer )
  • k8s should handle rules for that service in iptables.

Btw: Cockpit must be running as standalone application directly on host.

Any ideas? Thanks

-- MUHAHA
kubernetes

0 Answers