<p>Is there a possibility to have a service in all namespaces of k8s dynamically deployed?</p>

<p>Right now, glusterFS endpoint(ns dependent) is being deleted by k8s if the port is not in use anymore.
Ex:</p>

<pre><code>{
  "kind": "Endpoints",
  "apiVersion": "v1",
  "metadata": {
    "name": "glusterfs"
  },
  "subsets": [
    {
      "addresses": [
        {
          "ip": "172.0.0.1"
        }
      ],
      "ports": [
        {
          "port": 1
        }
      ]
    }
  ]
}
</code></pre>

<p>So I made a svc for port 1 to be used all the time, so I dont end up with a missing/deleted endpoint in any ns.</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: glusterfs
spec:
  ports:
  - port: 1
</code></pre>

<p>It would be interesting to have the above service deployed dynamically every time someone creates a new namespace.</p>

Xao
<p>DaemonSet is used to deploy Exactly one replica per node.</p>

<p>coming to your question, why do you need to create same service across namespaces? 
It is not supported out of box though. However, you can create a custom script to achieve it.</p>
