1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-accessing-cluster-open-firewall.adoc
2024-09-11 18:18:40 +00:00

38 lines
1.4 KiB
Plaintext

// Module included in the following assemblies:
//
// microshift_install_rpm/microshift-install-rpm.adoc
// microshift_install_rpm_ostree/microshift-embed-in-rpm-ostree.adoc
// microshift_configuring/microshift-cluster-access-kubeconfig.adoc
:_mod-docs-content-type: PROCEDURE
[id="microshift-accessing-cluster-open-firewall_{context}"]
= Opening the firewall for remote access to the {microshift-short} cluster
Use the following procedure to open the firewall so that a remote user can access the {microshift-short} cluster. This procedure must be completed before a workstation user can access the cluster remotely.
For this procedure, `user@microshift` is the user on the {microshift-short} host machine and is responsible for setting up that machine so that it can be accessed by a remote user on a separate workstation.
.Prerequisites
* You have installed the `oc` binary.
* Your account has cluster administration privileges.
.Procedure
* As `user@microshift` on the {microshift-short} host, open the firewall port for the Kubernetes API server (`6443/tcp`) by running the following command:
+
[source,terminal]
----
[user@microshift]$ sudo firewall-cmd --permanent --zone=public --add-port=6443/tcp && sudo firewall-cmd --reload
----
.Verification
* As `user@microshift`, verify that {microshift-short} is running by entering the following command:
+
[source,terminal]
----
[user@microshift]$ oc get all -A
----