Kubernetes Errors: Kops related errors

Error 1

[ec2-user@ip-172-31-19-219 ~]$ kops create cluster --name $CLUSTER_NAME --zones $AWS_AVAILABILITY_ZONES --kubernetes-version $KUBERNETES_VERSION
I0620 09:13:06.655156   22247 create_cluster.go:1318] Using SSH public key: /home/ec2-user/.ssh/id_rsa.pub

cluster "cluster1.k8.rajeshkumar.xyz" already exists; use 'kops update cluster' to apply changes

Error 2

[ec2-user@ip-172-31-19-219 ~]$ kops update cluster
W0620 09:16:46.302303   22255 root.go:227] no context set in kubecfg

ClusterName: Required value: Cluster name is required

Error 3

[ec2-user@ip-172-31-19-219 ~]$ kops validate cluster
Using cluster from kubectl context: cluster1.k8.rajeshkumar.xyz

Validating cluster cluster1.k8.rajeshkumar.xyz

INSTANCE GROUPS
NAME                    ROLE    MACHINETYPE     MIN     MAX     SUBNETS
master-ap-south-1a      Master  c4.large        1       1       ap-south-1a
nodes                   Node    t2.medium       2       2       ap-south-1a,ap-south-1b

NODE STATUS
NAME    ROLE    READY

VALIDATION ERRORS
KIND    NAME            MESSAGE
dns     apiserver       Validation Failed

The dns-controller Kubernetes deployment has not updated the Kubernetes cluster's API DNS entry to correct IP address.  The API DNS IP address is the placeholder address that kops creates: 203.0.113.  Please wait about 5-10 minutes for a master to start, dns-controller to launch, and DNS to propa.  The protokube container and dns-controller deployment logs may contain more diagnostic informati Etcd and the API DNS entries must be updated for a kops Kubernetes cluster to start.

Validation Failed

Error 4

VALIDATION ERRORS
KIND    NAME                                    MESSAGE
Pod     kube-system/kube-dns-756bfc7fdf-47m7g   kube-system pod "kube-dns-756bfc7fdf-47m7g" is not healthy
Pod     kube-system/kube-dns-756bfc7fdf-47m7g   kube-system pod "kube-dns-756bfc7fdf-47m7g" is not healthy
Pod     kube-system/kube-dns-756bfc7fdf-47m7g   kube-system pod "kube-dns-756bfc7fdf-47m7g" is not healthy
Pod     kube-system/kube-dns-756bfc7fdf-c5jwf   kube-system pod "kube-dns-756bfc7fdf-c5jwf" is not healthy
Pod     kube-system/kube-dns-756bfc7fdf-c5jwf   kube-system pod "kube-dns-756bfc7fdf-c5jwf" is not healthy
Pod     kube-system/kube-dns-756bfc7fdf-c5jwf   kube-system pod "kube-dns-756bfc7fdf-c5jwf" is not healthy

Validation Failed
Rajesh Kumar
Follow me