title: how to communicate with daemonset pod from another pod in the same node?
body: <p>i want a daemonset-redis where every node will have it's own caching and each deployment pod will communicate with it's local daemonset-redis how to achieve it? how to reference daemonset pod in the same node from within docker-container?</p>
  
  <p><strong>UPDATE</strong>:
  i rather not use service option and make sure each pod access its local daemonset</p>
  
  <pre class="lang-py prettyprint-override"><code>apiVersion: apps/v1
  kind: DaemonSet
  metadata:
    name: redislocal
  spec:
    selector:
      matchLabels:
        name: redislocal
    template:
      metadata:
        labels:
          name: redislocal
      spec:
        hostNetwork: true
        containers:
        - name: redislocal
          image: redis:5.0.5-alpine
          ports:
          - containerPort: 6379
            hostPort: 6379
  
  </code></pre>