title: Failed to retrieve Ignite pods IP addresses
body: <p>I am trying to run apache ignite cluster using Google Kubernetes Engine.</p>
  
  <p>After following the tutorial here are some <strong>yaml</strong> files.</p>
  
  <p>First I create a service -
  <strong>ignite-service.yaml</strong></p>
  
  <pre><code>apiVersion: v1
  kind: Service
  metadata:
    # Name of Ignite Service used by Kubernetes IP finder. 
    # The name must be equal to TcpDiscoveryKubernetesIpFinder.serviceName.
    name: ignite
    namespace: default
  spec:
    clusterIP: None # custom value.
    ports:
      - port: 9042 # custom value.
    selector:
      # Must be equal to one of the labels set in Ignite pods'
      # deployement configuration.
      app: ignite
  </code></pre>
  
  <p><strong><code>kubectl create -f ignite-service.yaml</code></strong></p>
  
  <p>Second, I create a deployment for my ignite nodes <strong>ignite-deployment.yaml</strong></p>
  
  <h1>An example of a Kubernetes configuration for Ignite pods deployment.</h1>
  
  <pre><code>apiVersion: extensions/v1beta1
  kind: Deployment
  metadata:
    # Custom Ignite cluster's name.
    name: ignite-cluster
  spec:
    # A number of Ignite pods to be started by Kubernetes initially.
    replicas: 2
    template:
      metadata:
        labels:
          app: ignite
      spec:
        containers:
          # Custom Ignite pod name.
        - name: ignite-node
          image: apacheignite/ignite:2.4.0
          env:
          - name: OPTION_LIBS
            value: ignite-kubernetes
          - name: CONFIG_URI
            value: https://raw.githubusercontent.com/apache/ignite/master/modules/kubernetes/config/example-kube.xml
          ports:
          # Ports to open.
          # Might be optional depending on your Kubernetes environment.
          - containerPort: 11211 # REST port number.
          - containerPort: 47100 # communication SPI port number.
          - containerPort: 47500 # discovery SPI port number.
          - containerPort: 49112 # JMX port number.
          - containerPort: 10800 # SQL port number.       
  </code></pre>
  
  <p><strong><code>kubectl create -f ignite-deployment.yaml</code></strong></p>
  
  <p>After that I check status of my pods which are running in my case. However when I check logs for any of my pod, I get the following error,</p>
  
  <pre><code>java.io.IOException: Server returned HTTP response code: 403 for URL: https://kubernetes.default.svc.cluster.local:443/api/v1/namespaces/default/endpoints/ignite
  </code></pre>
  
  <p>Things I have tried:-</p>
  
  <ol>
  <li>I followed this <a href="https://stackoverflow.com/questions/49395481/how-to-setmasterurl-in-ignite-xml-config-for-kubernetes-ipfinder/49405879#49405879">link</a> to make my cluster work. But in step 4, when I run the daemon yaml file, I get the following error</li>
  </ol>
  
  <p><code>error: error validating "daemon.yaml": error validating data: ValidationError(DaemonSet.spec.template.spec): missing required field "containers" in io.k8s.api.core.v1.PodSpec; if you choose to ignore these errors, turn validation off with --validate=false</code></p>
  
  <p>Can anybody point me to my mistake which I might be doing here?</p>
  
  <p>Thanks.</p>