Open BartNetJS opened 1 year ago
Try again after you create the secret:
apiVersion: v1
kind: Secret
metadata:
annotations:
kubernetes.io/service-account.name: default
name: default.service-account-token
type: kubernetes.io/service-account-token
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Try again after you create the secret:
apiVersion: v1 kind: Secret metadata: annotations: kubernetes.io/service-account.name: default name: default.service-account-token type: kubernetes.io/service-account-token
The above solves the issue. However, should we fix that on the deployment manifests?
Edit: To add more info, I deployed version v3.5.10
with helm chart v0.42.0
I was expecting that specifying the service account on the values.yaml
will create the necessary resources, or we should update the documentation to reflect any required steps.
Pre-requisites
:latest
What happened/what you expected to happen?
I try the use the http template, like this:
`apiVersion: argoproj.io/v1alpha1 kind: Workflow metadata: generateName: http-template- spec: entrypoint: main templates:
The workflow never stops and the pod gives: 'MountVolume.SetUp failed for volume "kube-api-access-k5lqn" : secret "default.service-account-token" not found'
I see that indeed the token doesn't exist on the default service account. I tried to create it in this way:
kubectl create secret generic default.service-account-token -n argo \ --from-file=token=$HOME/.kube/config \ --type=kubernetes.io/service-account-token \ --dry-run=client -o json | jq '(.metadata.annotations."kubernetes.io/service-account.name") |= "argo-server"' | kubectl apply -f -
I'm testing a kubernetes cluster on docker desktop with kubernetes version v1.25.2
but then I got
http-template-x2gdp-1340600742-agent: time="2023-01-10T18:23:16.968Z" level=info msg="Starting Workflow Executor" version=v3.4.4 http-template-x2gdp-1340600742-agent: time="2023-01-10T18:23:16.968Z" level=info msg="Starting Agent" requeueTime=10s taskWorkers=16 workflow=http-template-x2gdp http-template-x2gdp-1340600742-agent: Error: Get "https://10.96.0.1:443/apis/argoproj.io/v1alpha1/namespaces/argo/workflowtasksets?fieldSelector=metadata.name%3Dhttp-template-x 2gdp&watch=true": net/http: invalid header field value "Bearer apiVersion: v1\nclusters:\n- cluster:\n certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSU ......
Version
v3.4.4
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
Logs from the workflow controller
Logs from in your workflow's wait container