I've found my mistake.
I'm not using the default namespace, so this is the correct configuration:
[..]
spec:
volumes:
- name: nfs-volume
nfs:
server: nfs-server.k8s-openwisp-8664319.svc.cluster.local
path: "/"
readOnly: false
--
Marco Giuntini
GTalk: [email protected]
Skype: hispanico70420
Twitter: @Hispanico81
PGP Key ID: BD774009
On Wed, 22 May 2019 at 16:58, Marco Giuntini <[email protected]>
wrote:
> This is the error that I get on the container level in GKE:
> MountVolume.SetUp failed for volume "nfs-volume" : mount failed: exit
> status 1 Mounting command: systemd-run Mounting arguments:
> --description=Kubernetes transient mount for
> /var/lib/kubelet/pods/cc9377c9-7ca1-11e9-a8e7-42010aa40039/volumes/
> kubernetes.io~nfs/nfs-volume --scope --
> /home/kubernetes/containerized_mounter/mounter mount -t nfs
> nfs-server.default.svc.cluster.local:/
> /var/lib/kubelet/pods/cc9377c9-7ca1-11e9-a8e7-42010aa40039/volumes/
> kubernetes.io~nfs/nfs-volume Output: Running scope as unit:
> run-r3d2b5b1e168c404fa0122cfe0a9827a2.scope Mount failed: mount failed:
> exit status 32 Mounting command: chroot Mounting arguments:
> [/home/kubernetes/containerized_mounter/rootfs mount -t nfs
> nfs-server.default.svc.cluster.local:/
> /var/lib/kubelet/pods/cc9377c9-7ca1-11e9-a8e7-42010aa40039/volumes/
> kubernetes.io~nfs/nfs-volume] Output: mount.nfs: Failed to resolve server
> nfs-server.default.svc.cluster.local: Name or service not known
>
>
> --
> Marco Giuntini
> GTalk: [email protected]
> Skype: hispanico70420
> Twitter: @Hispanico81
> PGP Key ID: BD774009
>
>
> On Wed, 22 May 2019 at 16:08, Ajay Tripathi <[email protected]> wrote:
>
>> Hi,
>>
>> On Tuesday, May 21, 2019 at 7:47:48 PM UTC+5:30, Marco Giuntini wrote:
>>>
>>> I'm trying to deploy in GKE but I'm stuk on nfs-server.
>>> I'm able to deploy and configure nfs-server pod and service, claim the
>>> NGS volume but for some reason the mount in the container fails.
>>>
>>
>> I am not sure why that is happening, can you please share any relevant
>> information about the issue so that I may keep an eye on the issue and
>> cross-check if it's a problem with the images on my end as well. :-)
>>
>>
>> Best,
>> Ajay T.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenWISP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web, visit
>> https://groups.google.com/d/msgid/openwisp/5e1a3260-e24a-4690-9cbd-42e5d0927b3f%40googlegroups.com
>> <https://groups.google.com/d/msgid/openwisp/5e1a3260-e24a-4690-9cbd-42e5d0927b3f%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/openwisp/CAHG%2BkPSCqqCV3A-%3D7GOO8SZh4Tq%3Dx5E%2BPNYbN8Gb7t%3DdD31X9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.