Kubernetes Issue

Hi All, I face two issue for kubernetes.

  1. one ever i install kubernetes on centos 7 i always face this error.

● kubelet.service - kubelet: The Kubernetes Node Agent
Loaded: loaded (/usr/lib/systemd/system/kubelet.service; enabled; vendor preset: disabled)
Drop-In: /usr/lib/systemd/system/kubelet.service.d
└─10-kubeadm.conf
Active: activating (auto-restart) (Result: exit-code) since Sun 2020-07-05 03:43:07 EDT; 8s ago
Docs: Kubernetes Documentation | Kubernetes
Process: 2319 ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_CONFIG_ARGS $KUBELET_KUBEADM_ARGS $KUBELET_EXTRA_ARGS (code=exited, status=255)
Main PID: 2319 (code=exited, status=255)

Jul 05 03:43:07 master-node systemd[1]: kubelet.service: main process exited, code=exited, status=255/n/a
Jul 05 03:43:07 master-node systemd[1]: Unit kubelet.service entered failed state.
Jul 05 03:43:07 master-node systemd[1]: kubelet.service failed.
[root@master-node ~]# sestatus
SELinux status: disabled
[root@master-node ~]# tail -f /var/log/messages
Jul 5 03:48:25 master systemd: kubelet.service: main process exited, code=exited, status=255/n/a
Jul 5 03:48:25 master systemd: Unit kubelet.service entered failed state.
Jul 5 03:48:25 master systemd: kubelet.service failed.
Jul 5 03:48:35 master systemd: kubelet.service holdoff time over, scheduling restart.
Jul 5 03:48:35 master systemd: Stopped kubelet: The Kubernetes Node Agent.
Jul 5 03:48:35 master systemd: Started kubelet: The Kubernetes Node Agent.
Jul 5 03:48:35 master kubelet: F0705 03:48:35.791234 2568 server.go:199] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file “/var/lib/kubelet/config.yaml”, error: open /var/lib/kubelet/config.yaml: no such file or directory
Jul 5 03:48:35 master systemd: kubelet.service: main process exited, code=exited, status=255/n/a

2)Second issue related to ingress why port 80 is not accesible .

Normal CREATE 13m nginx-ingress-controller Ingress default/echo-ingress
cloud_user@mfaisal2c:~/ingress$ kubectl describe ingress
Name: echo-ingress
Namespace: default
Address:
Default backend: default-http-backend:80 (<error: endpoints “default-http-backend” not found>)
Rules:
Host Path Backends


echo1.example.com
echo1:80 (10.244.1.5:80,10.244.1.6:80)
Annotations: Events:
Type Reason Age From Message


Normal CREATE 13m nginx-ingress-controller Ingress default/echo-ingress

cloud_user@mfaisal2c:~/ingress$ kubectl get ingress
NAME CLASS HOSTS ADDRESS PORTS AGE
echo-ingress echo1.example.com 80 142m

cloud_user@mfaisal2c:~/ingress$ curl echo1
curl: (7) Failed to connect to echo1 port 80: Connection refused