payload: {"action":"closed","issue":{"url":"https://api.github.com/repos/kubernetes/minikube/issues/4245","repository_url":"https://api.github.com/repos/kubernetes/minikube","labels_url":"https://api.github.com/repos/kubernetes/minikube/issues/4245/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/minikube/issues/4245/comments","events_url":"https://api.github.com/repos/kubernetes/minikube/issues/4245/events","html_url":"https://github.com/kubernetes/minikube/issues/4245","id":443147341,"node_id":"MDU6SXNzdWU0NDMxNDczNDE=","number":4245,"title":"stateful srv records: server can't find sfs-svc.default.svc.cluster.local: SERVFAIL","user":{"login":"aamirpinger","id":43044635,"node_id":"MDQ6VXNlcjQzMDQ0NjM1","avatar_url":"https://avatars0.githubusercontent.com/u/43044635?v=4","gravatar_id":"","url":"https://api.github.com/users/aamirpinger","html_url":"https://github.com/aamirpinger","followers_url":"https://api.github.com/users/aamirpinger/followers","following_url":"https://api.github.com/users/aamirpinger/following{/other_user}","gists_url":"https://api.github.com/users/aamirpinger/gists{/gist_id}","starred_url":"https://api.github.com/users/aamirpinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aamirpinger/subscriptions","organizations_url":"https://api.github.com/users/aamirpinger/orgs","repos_url":"https://api.github.com/users/aamirpinger/repos","events_url":"https://api.github.com/users/aamirpinger/events{/privacy}","received_events_url":"https://api.github.com/users/aamirpinger/received_events","type":"User","site_admin":false},"labels":[{"id":856080990,"node_id":"MDU6TGFiZWw4NTYwODA5OTA=","url":"https://api.github.com/repos/kubernetes/minikube/labels/area/dns","name":"area/dns","color":"0052cc","default":false},{"id":764037894,"node_id":"MDU6TGFiZWw3NjQwMzc4OTQ=","url":"https://api.github.com/repos/kubernetes/minikube/labels/priority/awaiting-more-evidence","name":"priority/awaiting-more-evidence","color":"fef2c0","default":false},{"id":1304506655,"node_id":"MDU6TGFiZWwxMzA0NTA2NjU1","url":"https://api.github.com/repos/kubernetes/minikube/labels/r/2019q2","name":"r/2019q2","color":"f5f5f5","default":false},{"id":862104550,"node_id":"MDU6TGFiZWw4NjIxMDQ1NTA=","url":"https://api.github.com/repos/kubernetes/minikube/labels/triage/needs-information","name":"triage/needs-information","color":"d455d0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-05-12T21:10:40Z","updated_at":"2019-07-17T04:33:43Z","closed_at":"2019-07-17T04:33:43Z","author_association":"NONE","body":"### **Issue in dns lookup for statefulsets srv records**\r\n\r\n***My yaml file***\r\n```\r\nkind: List\r\napiVersion: v1\r\nitems:\r\n- apiVersion: v1\r\n  kind: Service\r\n  metadata:\r\n    name: sfs-svc\r\n    labels:\r\n      app: sfs-app\r\n  spec:\r\n    ports:\r\n    - port: 80\r\n      name: web\r\n    clusterIP: None\r\n    selector:\r\n      app: sfs-app\r\n- apiVersion: apps/v1\r\n  kind: StatefulSet\r\n  metadata:\r\n    name: web\r\n  spec:\r\n    selector:\r\n      matchLabels:\r\n        app: sfs-app # has to match .spec.template.metadata.labels\r\n    serviceName: \"sfs-svc\"\r\n    replicas: 3 \r\n    template:\r\n      metadata:\r\n        labels:\r\n          app: sfs-app # has to match .spec.selector.matchLabels\r\n      spec:\r\n        terminationGracePeriodSeconds: 10\r\n        containers:\r\n        - name: test-container\r\n          image: nginx\r\n          imagePullPolicy: IfNotPresent\r\n          command: [ \"sh\", \"-c\"]\r\n          args:\r\n          - while true; do\r\n              printenv MY_NODE_NAME MY_POD_NAME MY_POD_NAMESPACE >> /var/sl/output.txt;\r\n              printenv MY_POD_IP >> /var/sl/output.txt;\r\n              date >> var/sl/output.txt; \r\n              cat /var/sl/output.txt;\r\n              sleep 999999;\r\n            done;\r\n          env:\r\n            - name: MY_NODE_NAME\r\n              valueFrom:\r\n                fieldRef:\r\n                  fieldPath: spec.nodeName\r\n            - name: MY_POD_NAME\r\n              valueFrom:\r\n                fieldRef:\r\n                  fieldPath: metadata.name\r\n            - name: MY_POD_NAMESPACE\r\n              valueFrom:\r\n                fieldRef:\r\n                  fieldPath: metadata.namespace\r\n            - name: MY_POD_IP\r\n              valueFrom:\r\n                fieldRef:\r\n                  fieldPath: status.podIP\r\n          volumeMounts:\r\n          - name: www\r\n            mountPath: /var/sl\r\n    volumeClaimTemplates:\r\n    - metadata:\r\n        name: www\r\n      spec:\r\n        accessModes: [ \"ReadWriteOnce\" ]\r\n        #storageClassName: classNameIfAny\r\n        resources:\r\n          requests:\r\n            storage: 1Mi\r\n\r\n```\r\n**$ Kubectl cluster-info**\r\n\r\n> Kubernetes master is running at https://192.168.99.100:8443\r\n> KubeDNS is running at https://192.168.99.100:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy\r\n> \r\n\r\n**$ kubectl version**\r\n\r\n> Client Version: version.Info{Major:\"1\", Minor:\"13\", GitVersion:\"v1.13.3\", GitCommit:\"721bfa751924da8d1680787490c54b9179b1fed0\", GitTreeState:\"clean\", BuildDate:\"2019-02-01T20:08:12Z\", GoVersion:\"go1.11.5\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n> Server Version: version.Info{Major:\"1\", Minor:\"14\", GitVersion:\"v1.14.1\", GitCommit:\"b7394102d6ef778017f2ca4046abbaa23b88c290\", GitTreeState:\"clean\", BuildDate:\"2019-04-08T17:02:58Z\", GoVersion:\"go1.12.1\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n> \r\n\r\n**$ kubectl get po,svc,statefulset**\r\n\r\n> NAME        READY   STATUS    RESTARTS   AGE\r\n> pod/web-0   1/1     Running   0          45m\r\n> pod/web-1   1/1     Running   0          45m\r\n> pod/web-2   1/1     Running   0          45m\r\n> \r\n> NAME                 TYPE        CLUSTER-IP   EXTERNAL-IP   PORT(S)   AGE\r\n> service/kubernetes   ClusterIP   10.96.0.1    <none>        443/TCP   46m\r\n> service/sfs-svc      ClusterIP   None         <none>        80/TCP    45m\r\n> \r\n> NAME                   READY   AGE\r\n> statefulset.apps/web   3/3     45m\r\n> \r\n\r\n### **PROBLEM: I am not getting DNS address for statefulset headless service**\r\n**When I try $ nslookup sfs-svc.default.svc.cluster.local** \r\n\r\n> Server:\t\t127.0.0.53\r\n> Address:\t127.0.0.53#53\r\n> \r\n**> ** server can't find sfs-svc.default.svc.cluster.local: SERVFAIL**\r\n> "}}
other: {"actor":{"display_login":"tstromberg"}}