Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docker_advanced_k8s_troubleshooting [2020/05/25 07:52] – andonovj | docker_advanced_k8s_troubleshooting [2020/05/25 12:47] (current) – [Not installed NFS Client (NFS Dynamic Provisioning)] andonovj | ||
---|---|---|---|
Line 153: | Line 153: | ||
</ | </ | ||
+ | =====Specific Problems===== | ||
+ | Let's dwelves into more specific problems: | ||
+ | |||
+ | ====Wrong Api Version==== | ||
+ | If you have a wrong Api version in teh YML file, you will receive the following error: | ||
+ | |||
+ | < | ||
+ | ubuntu@k8s-master: | ||
+ | error: unable to recognize " | ||
+ | </ | ||
+ | |||
+ | To fix that, find where that image has been moved, most probably for newer versions of Kubernetes is: | ||
+ | |||
+ | < | ||
+ | ubuntu@k8s-master: | ||
+ | apiVersion: apps/v1 | ||
+ | </ | ||
+ | |||
+ | Bare in mind that can of course change. | ||
+ | |||
+ | ====Not installed NFS Client (NFS Dynamic Provisioning)==== | ||
+ | In case you have NFS dynamic provisioning and you didn't install NFS client on ALL nodes of the cluster, you will get the following error, when you try to create a POD which is to be placed there. | ||
+ | |||
+ | < | ||
+ | Mounting command: systemd-run | ||
+ | Mounting arguments: --description=Kubernetes transient mount for / | ||
+ | Output: Running scope as unit run-r94910a4067104f079e9aae302b111ab2.scope. | ||
+ | mount: wrong fs type, bad option, bad superblock on 10.111.172.167:/ | ||
+ | | ||
+ | (for several filesystems (e.g. nfs, cifs) you might | ||
+ | need a / | ||
+ | |||
+ | In some cases useful info is found in syslog - try | ||
+ | dmesg | tail or so. | ||
+ | Warning | ||
+ | </ | ||
+ | |||
+ | To fix that, just install the NFS client on all the nodes: | ||
+ | |||
+ | < | ||
+ | root@node-1: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following additional packages will be installed: | ||
+ | keyutils libnfsidmap2 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libtirpc1 python python-minimal python2.7 python2.7-minimal rpcbind | ||
+ | Suggested packages: | ||
+ | watchdog python-doc python-tk python2.7-doc binfmt-support | ||
+ | The following NEW packages will be installed: | ||
+ | keyutils libnfsidmap2 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libtirpc1 nfs-common python python-minimal python2.7 python2.7-minimal rpcbind | ||
+ | 0 upgraded, 12 newly installed, 0 to remove and 40 not upgraded. | ||
+ | Need to get 4,258 kB of archives. | ||
+ | After this operation, 18.0 MB of additional disk space will be used. | ||
+ | Do you want to continue? [Y/n] Y | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | root@node-1: | ||
+ | Reading package lists... Done | ||
+ | Building dependency tree | ||
+ | Reading state information... Done | ||
+ | The following additional packages will be installed: | ||
+ | keyutils libnfsidmap2 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libtirpc1 python python-minimal python2.7 python2.7-minimal rpcbind | ||
+ | Suggested packages: | ||
+ | watchdog python-doc python-tk python2.7-doc binfmt-support | ||
+ | The following NEW packages will be installed: | ||
+ | keyutils libnfsidmap2 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libtirpc1 nfs-common python python-minimal python2.7 python2.7-minimal rpcbind | ||
+ | 0 upgraded, 12 newly installed, 0 to remove and 40 not upgraded. | ||
+ | Need to get 4,258 kB of archives. | ||
+ | After this operation, 18.0 MB of additional disk space will be used. | ||
+ | Do you want to continue? [Y/n] Y | ||
+ | </ | ||