style95 commented on issue #771:
URL: 
https://github.com/apache/openwhisk-deploy-kube/issues/771#issuecomment-1835252585

   hm.. let me try that.
   It seems [DockerContainer respects the 
option](https://github.com/apache/openwhisk/blob/master/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpool/docker/DockerContainer.scala#L101
   ).
   But not sure it would apply to the Kubernetes pod too.
   Since a nameserver is specified this way, I think there should be some logic 
to translate the config into `dnsConfig` of a pod accordingly.
   And I couldn't find any.
   
   ```yaml
   apiVersion: v1
   kind: Pod
   metadata:
     namespace: default
     name: dns-example
   spec:
     containers:
       - name: test
         image: nginx
     dnsPolicy: "None"
     dnsConfig:
       nameservers:
         - 1.2.3.4
       searches:
         - ns1.svc.cluster-domain.example
         - my.dns.search.suffix
       options:
         - name: ndots
           value: "2"
         - name: edns0
   ```
   
https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to