-
Notifications
You must be signed in to change notification settings - Fork 29
Localfile is trying to get image from an endpoint #346
Comments
@sanketmlad Can you do The error looks like pod was allocated on non-singularity node... |
We don't have deamon :) |
@sashayakovtseva that output is posted in the bug. |
For each singularity node do: Use
|
Hi Sasha Below is the output for describe command Name: hello-world-singularity-77f6d7bc46-pptnj Normal Pulling 6d8h (x2 over 6d8h) kubelet, kube-singularity-slave Pulling image "local.file/home/elansad/hello-world-singularity/hello-world-singularity.sif" |
BTW I have not installed singularity on Kubernetes slave machine |
Yes, of course :)
|
That did not affect the error. Getting same error after installing same version of singularity on slave node of kubernetes |
I suspect that the prefix local.file is still not being considered, and it is trying to get to web. |
@sanketmlad Still the error output looks like it is docker, not Singularity.
LMK if that works. |
Hello @sanketmlad, |
What are the steps to reproduce this issue?
Install Kubernetes with kubeadm
Install singularity-cri from master branch
modify kubeadm-flags to point singularity socket
sudo cat /var/lib/kubelet/kubeadm-flags.env
#KUBELET_KUBEADM_ARGS="--cgroup-driver=cgroupfs --network-plugin=cni --pod-infra-container-image=k8s.gcr.io/pause:3.1 --resolv-conf=/run/systemd/resolve/resolv.conf --container-runtime-endpoint=unix:///var/run/singularity.sock --image-service-endpoint=unix:///var/run/singularity.sock"
KUBELET_KUBEADM_ARGS=--container-runtime=remote --container-runtime-endpoint=unix:///var/run/singularity.sock --image-service-endpoint=unix:///var/run/singularity.sock
Run sycri and kubelet
Spin up hello world using following yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-world-singularity
spec:
replicas: 1
selector:
matchLabels:
app: hello-world-singularity
template:
metadata:
labels:
app: hello-world-singularity
spec:
containers:
- name: hello-world-singularity
image: local.file/home/sanket/hello-world-singularity/hello-world-singularity.sif
ports:
- containerPort: 8080
Describe pot shows following error
Error: ImagePullBackOff
Pulling image "local.file/home/sanket/hello-world-singularity/hello-world-singularity.sif"
Failed to pull image "local.file/home/sanket/hello-world-singularity/hello-world-singularity.sif": rpc error: code = Unknown desc = Error response from daemon: Get https://local.file/v2/: dial tcp: lookup local.file: no such host
What happens?
When I spin up a container using local file, it tries to reach to some hostname local.file and gives message "local.file: no such host"
What were you expecting to happen?
It should pick up from local file
Any logs, error output, comments, etc?
Failed to pull image "local.file/home/sanket/hello-world-singularity/hello-world-singularity.sif": rpc error: code = Unknown desc = Error response from daemon: Get https://local.file/v2/: dial tcp: lookup local.file: no such host
Environment?
OS distribution and version:: Ubuntu 18.04 Kubernetes master and slave on Virtual box
go version: go1.12.7 linux/amd64
go env: …
Singularity-CRI version: 1.0.0-beta.4.7.gf95f62d.dirty
Singularity version: 3.3.0-rc.1.455.gd8c768aac
Kubernetes version: v1.15.1
The text was updated successfully, but these errors were encountered: