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

   I was unable to pass it in the application.conf but used this in the 
owconfig.yaml
   ```
   invoker:
     options: "-Dwhisk.kubernetes.user-pod-node-affinity.enabled=false  
-Dwhisk.kubernetes.pod-template=file:/config/pod-template.yaml"
   ```
   
   Used this configmap
   ```
   apiVersion: v1
   kind: ConfigMap
   data:
     pod-template.yaml: |
       apiVersion: v1
       kind: Pod
       spec:
         dnsPolicy: None
         dnsConfig:
           nameservers:
             - 192.168.9.30
           searches:
             - example.com
   metadata:
     name: whisk-pod-template
   ```
   
   Modified invoker-pod.yaml with these changes
   ```
         volumes:
         - name: pod-template
           configMap:
             name: whisk-pod-template
             items:
             - key: pod-template.yaml
               path: pod-template.yaml
         containers:
         - name: invoker
           volumeMounts:
           - name: pod-template
             mountPath: /config/pod-template.yaml
             subPath: pod-template.yaml
   ```
   
   For the env approach I don't quite understand the problem completely which 
is causing the issue


-- 
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