Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve language and structure of Switching between external and internal communication #2110

2 changes: 1 addition & 1 deletion modules/installation-guide/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
** xref:deploying-che-with-support-for-git-repositories-with-self-signed-certificates.adoc[]
** xref:installing-che-using-storage-classes.adoc[]
** xref:importing-untrusted-tls-certificates.adoc[]
** xref:switching-between-external-and-internal-communication.adoc[]
** xref:configuring-communication-between-che-components.adoc[]
** xref:setting-up-the-keycloak-che-username-readonly-theme-for-the-eclipse-che-login-page.adoc[]
** xref:mounting-a-secret-as-a-file-or-an-environment-variable-into-a-container.adoc[]
** xref:enabling-dev-workspace-engine.adoc[]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[id="configuring-communication-between-che-components"]
:navtitle: Configuring communication between Che components
:keywords: installation-guide
:page-aliases: .:configuring-communication-between-che-components, .:switching-between-external-and-internal-communication, switching-between-external-and-internal-communication

include::partial$proc_configuring-communication-between-che-components.adoc[]

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The next sections describe some specific user stories.

* xref:importing-untrusted-tls-certificates.adoc[]

* xref:switching-between-external-and-internal-communication.adoc[]
* xref:configuring-communication-between-che-components.adoc[]

* xref:setting-up-the-keycloak-che-username-readonly-theme-for-the-eclipse-che-login-page.adoc[]

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[id="configuring-communication-between-{prod-id-short}-components_{context}"]
= Configuring communication between {prod-short} components

tstastna marked this conversation as resolved.
Show resolved Hide resolved
You can select whether {prod-short} components communicate by using the internal network or external {platforms-ingress}.
tstastna marked this conversation as resolved.
Show resolved Hide resolved
tstastna marked this conversation as resolved.
Show resolved Hide resolved

By default, {prod-short} components communicate by using the internal network. {prod-short} components use their internal services names, which are exposed in the internal {platforms-name} network.

As the administrator, disable the use of the internal services names to force the {prod-short} components to use external {platforms-ingress} in the following situations:

* To deploy {prod-short} on a cluster where NetworkPolicies restricts communications between namespaces.
* To deploy {prod-short} with the multitenant network plugin.

tstastna marked this conversation as resolved.
Show resolved Hide resolved
[IMPORTANT]
====
Using the external {platforms-ingress} might slow the traffic and lead to issues because it uses proxies, certificates, and firewalls.
====

.Prerequisites

* An instance of {prod-short} running on {platforms-name}.

.Procedure

* In the CheCluster Custom Resource server settings, for the `disableInternalClusterSVCNames` property, set `__<property-value>__` to:
[horizontal]
`true`:: To use external {platforms-ingress}.
`false`:: To use internal {orch-name} DNS names.

+
====
[source,yaml,subs="+quotes"]
----
apiVersion: org.eclipse.che/v1
kind: CheCluster
# ...
spec:
server:
# ...
disableInternalClusterSVCNames: __<property-value>__
----
====

.Verification steps
. Specify {prod-short} as the default project:
+
[subs="+quotes,attributes"]
----
$ {orch-cli} project {prod-namespace}
----
. Inspect the ConfigMap properties to determine which communication method {prod-short} uses:
+
[subs="+quotes,attributes,macros"]
----
$ {orch-cli} get configmap che -o \
jsonpath='{.data.pass:[CHE_KEYCLOAK_AUTH__INTERNAL__SERVER__URL]}'
$ {orch-cli} get configmap che -o \
jsonpath='{.data.pass:[CHE_WORKSPACE_PLUGIN__REGISTRY__INTERNAL__URL]}'
----
* If {prod-short} components communicate internally, the output is following:
tstastna marked this conversation as resolved.
Show resolved Hide resolved
+
----
http://keycloak.eclipse-che.svc:8080/auth
http://plugin-registry.eclipse-che.svc:8080/v3
----
tstastna marked this conversation as resolved.
Show resolved Hide resolved
* Otherwise, if the components communicate externally, the output is empty.

This file was deleted.