init container failed to start when pod run on edge node (KubeEdge) #11666
-
Background:
But I do not know what is the root cause and how to fix it. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 18 replies
-
I'm experiencing the same issue but with simply trying to have a workflow deploy a kubernetes job. I get the exact same error:
Reading around has lead me to nothing really helpful. So hopefully this conversation will lead to some good findings. |
Beta Was this translation helpful? Give feedback.
-
What happens when you create that Job without Argo? |
Beta Was this translation helpful? Give feedback.
-
@Jackie-Haiyu A solution was posted on the slack channel , I tried it and it worked!!! Simply remove the following from your ServiceAccount: automountServiceAccountToken: false As soon as I remove that one line it deployed successfully. |
Beta Was this translation helpful? Give feedback.
-
I have removed the line from automountServiceAccountToken: false and I grant
But I cann't run my pod in kubeEdge cluster,here is the mistake:
the apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: output-parameter-
spec:
entrypoint: output-parameter
templates:
- name: output-parameter
steps:
- - name: generate-parameter
template: nginx
- - name: consume-parameter
template: print-message
arguments:
parameters:
- name: message
value: "{{steps.generate-parameter.outputs.parameters.nginx-index}}"
- name: nginx
nodeSelector:
kubernetes.io/hostname: "edge1"
container:
image: docker.m.daocloud.io/nginx:latest
command: [sh, -c]
args: ["sleep 1; cat /usr/share/nginx/html/index.html"]
outputs:
parameters:
- name: nginx-index
valueFrom:
default: "Foobar"
path: /usr/share/nginx/html/index.html
- name: print-message
nodeSelector:
kubernetes.io/hostname: "edge1"
inputs:
parameters:
- name: message
container:
image: docker.m.daocloud.io/alpine:latest
command: [echo]
args: ["{{inputs.parameters.message}}"] Any helps would be appreciated. |
Beta Was this translation helpful? Give feedback.
@Jackie-Haiyu A solution was posted on the slack channel , I tried it and it worked!!!
Simply remove the following from your ServiceAccount:
As soon as I remove that one line it deployed successfully.