Error - FAILED - RETRYING: Wait for the ServiceMonitor CRD to be created on AWS EC2
I was installing Openshift(OKD) Version 3.11 on Cent0S 7.6 with one master and 1 node configuration on the AWS EC2 instance. I have faced this error FAILED - RETRYING: Wait for the ServiceMonitor CRD so many times during installation.
First of all, check the status of SDN pods by using below command
oc get pods -n openshift-sdn
The output of the above command is
NAME READY STATUS RESTARTS AGE
ovs-k85zh 1/1 Running 0 1h
sdn-ds457 0/1 CrashLoopBackOff 16 1h
Now check the logs of the sdn pod
oc logs sdn-ds457 -n openshift-sdn
Once you entered the above command it will show output like this
From the logs it is clear that our subnet doest not match with node ip i.e there is a problem in DNS configuration. In my case, I did 2 following changes in my configuration
1. Add your public IP of the master node in /etc/resolv.conf like this
nameserver 172.31.7.2(my private ip which is already present)
nameserver 18.239.xx.xxx
2. Add details of your master and nodes in /etc/hosts file
public ip of master hostname of master
public ip of node hostname of node
private ip of master hostname of master
private ip of node hostname of node
public ip of master hostname of master
public ip of node hostname of node
private ip of master hostname of master
private ip of node hostname of node
3. Make sure that docker service is running.
0 Comments