Solucionar problemas de falla de instalación de Air-Gap
Problema
La instalación de air-gap falla con el siguiente error:
TASK [kubernetes/master : Activate etcd backup cronjob] ******************************************************************** fatal: [192.xx.xx.2]: FAILED! => changed=true cmd: - kubectl - apply - -f - /etc/kubernetes/etcd-backup.yaml delta: '0:00:00.197012' end: '2022-09-13 13:46:31.220256' msg: non-zero return code rc: 1 start: '2022-09-13 13:46:31.023244' stderr: The connection to the server 192.xx.xx.2:6443 was refused - did you specify the right host or port? stderr_lines: <omitted> stdout: '' stdout_lines: <omitted>
Solución
La instalación de air-gap, así como el kube-apiserver
fallo porque no tiene un archivo existente /etc/resolv.conf
.
Para crear un archivo nuevo, debe ejecutar el comando como usuario raíz y, a continuación, volver a implementar el #touch /etc/resolv.conf
clúster de Paragon Automation.