Hello,
The API Connect (10.0.7.0) operator was deployed to a single node Kubernetes with local docker registry using SSL but self-signed cert. --tls-verify=false was used in the upload command "docker run --rm apiconnect-image-tool-<version> upload <registry-url>". The operator was deployed with
kubectl apply -f ibm-apiconnect-crds.yaml
kubectl apply -f ibm-apiconnect.yaml
kubectl apply -f ibm-datapower.yaml -n <namespace>
The ibm-apiconnect pod is now in the state "Init:ImagePullBackOff"
NAME READY STATUS RESTARTS AGE
datapower-operator-5fd8bd4f8d-prr9n 1/1 Running 0 21m
datapower-operator-conversion-webhook-75dd9d58f4-grxj2 1/1 Running 0 20m
ibm-apiconnect-779bc7cd69-c4n7k 0/1 Init:ImagePullBackOff 0 21m
The pod description shows the following.
Is the issue caused by "tls: failed to verify certificate: x509: certificate signed by unknown authority"?
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 39s default-scheduler Successfully assigned apiconnect/ibm-apiconnect-779bc7cd69-c4n7k to myapi
Normal Pulling 26s (x2 over 40s) kubelet Pulling image "myapi.demo.com:5000/ibm-apiconnect-operator-init@sha256:4d0fe0398a936b3d2b00d59cc7b0fa863c9f029da096f1b4f94b011d5b8e68cc"
Warning Failed 26s (x2 over 40s) kubelet Failed to pull image "myapi.demo.com:5000/ibm-apiconnect-operator-init@sha256:4d0fe0398a936b3d2b00d59cc7b0fa863c9f029da096f1b4f94b011d5b8e68cc": failed to pull and unpack image "myapi.demo.com:5000/ibm-apiconnect-operator-init@sha256:4d0fe0398a936b3d2b00d59cc7b0fa863c9f029da096f1b4f94b011d5b8e68cc": failed to resolve reference "myapi.demo.com:5000/ibm-apiconnect-operator-init@sha256:4d0fe0398a936b3d2b00d59cc7b0fa863c9f029da096f1b4f94b011d5b8e68cc": failed to do request: Head "https://myapi.demo.com:5000/v2/ibm-apiconnect-operator-init/manifests/sha256:4d0fe0398a936b3d2b00d59cc7b0fa863c9f029da096f1b4f94b011d5b8e68cc": tls: failed to verify certificate: x509: certificate signed by unknown authority
Warning Failed 26s (x2 over 40s) kubelet Error: ErrImagePull
Normal BackOff 12s (x3 over 40s) kubelet Back-off pulling image "myapi.demo.com:5000/ibm-apiconnect-operator-init@sha256:4d0fe0398a936b3d2b00d59cc7b0fa863c9f029da096f1b4f94b011d5b8e68cc"
Warning Failed 12s (x3 over 40s) kubelet Error: ImagePullBackOff
------------------------------
Frank Ning
Technical consultant - solution architect
Toronto ON
------------------------------