jhawarchirag0 commented on issue #771:
URL:
https://github.com/apache/openwhisk-deploy-kube/issues/771#issuecomment-1839037641
I have created a file containing the pod-template.yaml
```
apiVersion: v1
kind: Pod
spec:
dnsPolicy: None
dnsConfig:
nameservers:
- 192.168.9.30
searches:
- example.com
```
I have added a cm
```
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
```
I have added an env variable inside invoker-pod.yaml
```
containers:
- name: invoker
env:
- name: "WHISK_POD_TEMPLATE"
valueFrom:
configMapKeyRef:
name: whisk-pod-template
key: pod-template.yaml
```
I am getting this error in the logs for invoker
```
Defaulted container "invoker" out of: invoker, wait-for-controller (init)
Error: Could not find or load main class apiVersion:
Caused by: java.lang.ClassNotFoundException: apiVersion:
```
--
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]