Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-7266

Update documentation for nonProxyHosts in CheCluster CR

XMLWordPrintable

    • False
    • None
    • False

      When a proxy is configured for OpenShift, nonProxyHosts can be provided for Dev Spaces in the CheCluster CR. For example, to bypass the proxy for localhost:

      spec:
        components:
          cheServer:
            proxy:
              nonProxyHosts:
                - "localhost"

      In some proxy configurations, it localhost may not translate to 127.0.0.1. 

      The problem is that the VS Code workspace idler for Dev Spaces depends on making HTTP requests to 127.0.0.1 [1]. If localhost does not translate to 127.0.0.1, the proxy may block the idler's requests, and therefore prematurely shutting down workspaces that users are using.

      Updating the docs [2] for nonProxyHosts to mention the distinction between localhost and 127.0.0.1  would help avoid this problem.

      [1]https://github.com/che-incubator/che-code/blob/ee6017b5734a9b21b5ab4ed9a7c78d98faa06f76/code/extensions/che-api/src/impl/k8s-workspace-service-impl.ts#L56

      [2]https://docs.redhat.com/en/documentation/red_hat_openshift_dev_spaces/3.16/html/administration_guide/configuring-devspaces#checluster-custom-resource-fields-reference

       

              jvrbkova@redhat.com Jana Vrbkova
              dakwon@redhat.com David Kwon
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: