When submitting a whalesay test against argo:
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: hello-world-
spec:
entrypoint: whalesay
templates:
Warning FailedMount 18m (x1602 over 4d8h) kubelet Unable to attach or mount volumes: unmounted volumes=[docker-sock], unattached volumes=[podmetadata docker-sock argo-sa-token-q47jq]: timed out waiting for the condition
Warning FailedMount 8m5s (x3073 over 4d8h) kubelet MountVolume.SetUp failed for volume “docker-sock” : hostPath type check failed: /var/run/docker.sock is not a socket file
Warning FailedMount 2m30s (x585 over 4d7h) kubelet Unable to attach or mount volumes: unmounted volumes=[docker-sock], unattached volumes=[docker-sock argo-sa-token-q47jq podmetadata]: timed out waiting for the condition
I am at a loss why this happens - changing the
containerRuntimeExecutor: k8sapi
in the argo workflow-controller-configmap did not give any changes ( yes I restarted the workflow controller)
Any help highly appreciated - microk8s seems cool but it would be worthless without a working Argo to us.
kind: ConfigMap
apiVersion: v1
metadata:
name: workflow-controller-configmap
namespace: argo
selfLink: /api/v1/namespaces/argo/configmaps/workflow-controller-configmap
uid: 560661a7-fcd2-452d-ad7c-c30fa8841b35
resourceVersion: ‘2422831’
creationTimestamp: ‘2020-10-24T17:59:31Z’
managedFields:
- manager: kubectl
operation: Update
apiVersion: v1
time: ‘2020-10-24T17:59:31Z’
fieldsType: FieldsV1
fieldsV1:
‘f:data’: {}
- manager: dashboard
operation: Update
apiVersion: v1
time: ‘2020-11-03T08:37:17Z’
fieldsType: FieldsV1
fieldsV1:
‘f:data’:
‘f:workflowDefaults’: {}
data:
workflowDefaults: |
containerRuntimeExecutor: pns
metadata:
annotations:
argo: workflows
spec:
# Delete workflows after this timeout if not set differently in the workflow yaml
ttlStrategy:
# 6 days
secondsAfterCompletion: 518400
Still get this error:
docker-sock:
Type: HostPath (bare host directory volume)
Path: /var/run/docker.sock
HostPathType: Socket
argo-sa-token-q47jq:
Type: Secret (a volume populated by a Secret)
SecretName: argo-sa-token-q47jq
Optional: false
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type Reason Age From Message
Normal Scheduled 20s default-scheduler Successfully assigned mynamespace/hello-world-qstqq to viemicrok8s1
Warning FailedMount 4s (x6 over 20s) kubelet MountVolume.SetUp failed for volume “docker-sock” : hostPath type check failed: /var/run/docker.sock is not a socket file
It is marked as running but it never completes:
NAME STATUS AGE DURATION PRIORITY
hello-world-qstqq Running 2m 2m 0
yes, BUT
something was not correct with the Syntax
I changed it to :
---------------snip------------
data:
config: |
containerRuntimeExecutor: pns
workflowDefaults:
metadata:
---------------snip------------
and now it works.