Symptoms

Deploying or upgrading CBC platform extension (e.g., idp, gdpr, ux1-marketplace) failed with error as below:

# kubectl describe pods <pod_id>

Events:
  Type     Reason     Age                   From                            Message
  ----     ------     ----                  ----                            -------
  Normal   Scheduled  32m                   default-scheduler               Successfully assigned default/idp-backend-7bd5d8b9b5-hzhn7 to localhost.localdomain
  Warning  Failed     27m (x4 over 32m)     kubelet, localhost.localdomain  Failed to pull image "odindevops-a8n-docker.jfrog.io/idp-backend:2.0.100": rpc error: code = Unknown desc = Get https://odindevops-a8n-docker.jfrog.io/v1/_ping: Proxy Error
  Warning  Failed     27m (x4 over 32m)     kubelet, localhost.localdomain  Error: ErrImagePull
  Warning  Failed     27m (x7 over 32m)     kubelet, localhost.localdomain  Error: ImagePullBackOff
  Normal   Pulling    22m (x6 over 32m)     kubelet, localhost.localdomain  Pulling image "odindevops-a8n-docker.jfrog.io/idp-backend:2.0.100"
  Normal   BackOff    2m48s (x98 over 32m)  kubelet, localhost.localdomain  Back-off pulling image "odindevops-a8n-docker.jfrog.io/idp-backend:2.0.100"


When testing the *proxy server using curl, received DNS lookup error:

[root@localhost ~]# curl -x 'http://proxyServer:8008' odindevops-a8n-docker.jfrog.io
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Proxy Error</title>
</head><body>
<h1>Proxy Error</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
The proxy server could not handle the request <em><a href="HTTP://odindevops-a8n-docker.jfrog.io/">GET&nbsp;HTTP://odindevops-a8n-docker.jfrog.io/</a></em>.<p>
Reason: <strong>DNS lookup failure for: odindevops-a8n-docker.jfrog.io</strong></p></p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at odindevops-a8n-docker.jfrog.io Port 8008</address>
</body></html>


*Notes: Proxy server address used by docker can normally be obtained from the k8s node docker http proxy configuration at /etc/systemd/system/docker.service.d/http-proxy.conf


Cause

Configuration issue on HTTP Proxy server.


Resolution

Please check and resolved any configuration issue on the proxy server.