Skip to content

Commit 608fa13

Browse files
Merge pull request #60414 from ShaunaDiaz/OSDOCS-6146
2 parents 4c515d1 + 90a1ca4 commit 608fa13

File tree

40 files changed

+2492
-2561
lines changed

40 files changed

+2492
-2561
lines changed

_topic_maps/_topic_map_ms.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ Name: CLI tools
8888
Dir: microshift_cli_ref
8989
Distros: microshift
9090
Topics:
91-
- Name: CLI tools overview
92-
File: microshift-cli-overview
91+
- Name: CLI tools introduction
92+
File: microshift-cli-tools-introduction
9393
- Name: Installing the OpenShift CLI
9494
File: microshift-oc-cli-install
9595
- Name: Configuring the OpenShift CLI

microshift_cli_ref/microshift-cli-overview.adoc

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:_content-type: ASSEMBLY
2+
[id="microshift-cli-tools"]
3+
= {product-title} CLI tools introduction
4+
include::_attributes/attributes-microshift.adoc[]
5+
:context: microshift-cli-tools-introduction
6+
7+
toc::[]
8+
9+
You can use different command-line interface (CLI) tools to build, deploy, and manage {product-title} clusters and workloads. With CLI tools, you can complete various administration and development operations from the terminal to manage deployments and interact with each component of the system.
10+
11+
CLI tools available for use with {product-title} are the following:
12+
13+
* Built-in `microshift` command types
14+
* Linux CLI tools
15+
* Kubernetes CLI (`kubectl`)
16+
* The OpenShift CLI (`oc`) tool with an enabled subset of commands
17+
18+
[NOTE]
19+
====
20+
Commands for multi-node deployments, projects, and developer tooling are not supported by {product-title}.
21+
====
22+
23+
[role="_additional-resources"]
24+
[id="additional-resources_microshift-cli-tools"]
25+
.Additional resources
26+
27+
* xref:..//microshift_cli_ref/microshift-oc-cli-install.adoc#microshift-oc-cli-install[Installing the OpenShift CLI tool for MicroShift].
28+
29+
* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/4.13/html/cli_tools/openshift-cli-oc[Detailed description of the OpenShift CLI (oc)].
30+
31+
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9[Red Hat Enterprise Linux (RHEL) documentation for specific use cases].

microshift_cli_ref/microshift-cli-using-oc.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
:_content-type: ASSEMBLY
22
[id="microshift-cli-using-oc"]
3-
= Using the `oc` tool
3+
= Using the oc tool
44
include::_attributes/attributes-microshift.adoc[]
55
:context: microshift-using-oc
66

77
toc::[]
88

9-
The optional OpenShift CLI (`oc`) tool is available for you to use if you are already familiar with {OCP} and Kubernetes.
9+
The optional OpenShift CLI (`oc`) tool provides a subset of `oc` commands for {product-title} deployments. Using `oc` is convenient if you are familiar with {OCP} and Kubernetes.
1010

1111
include::modules/microshift-cli-oc-about.adoc[leveloffset=+1]
1212

microshift_cli_ref/microshift-oc-cli-commands-list.adoc

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,36 @@
22
[id="microshift-oc-cli-commands"]
33
= OpenShift CLI command reference
44
include::_attributes/attributes-microshift.adoc[]
5-
:context: cli-administrator-commands
5+
:context: microshift-oc-cli-commands
66

77
toc::[]
88

9-
This reference provides descriptions and example commands for OpenShift CLI (`oc`) commands. You must have `cluster-admin` or equivalent permissions to use these commands.
9+
Descriptions and example commands for OpenShift CLI (`oc`) commands are included in this reference document. You must have `cluster-admin` or equivalent permissions to use these commands. To list administrator commands and information about them, use the following commands:
1010

11-
Run `oc adm -h` to list all administrator commands or run `oc <command> --help` to get additional details for a specific command.
11+
* Enter the `oc adm -h` command to list all administrator commands:
12+
+
13+
.Command syntax
14+
+
15+
[source,terminal]
16+
----
17+
$ oc adm -h
18+
----
19+
20+
* Enter the `oc <command> --help` command to get additional details for a specific command:
21+
+
22+
.Command syntax
23+
+
24+
[source,terminal]
25+
----
26+
$ oc <command> --help
27+
----
1228
1329
[IMPORTANT]
1430
====
1531
Using `oc <command> --help` lists details for any `oc` command. Not all `oc` commands apply to using {product-title}.
1632
====
1733

18-
// The OCP file is auto-generated from the openshift/oc repository; MicroShift is made manually
19-
// OpenShift CLI (oc) administrator commands
20-
//include::modules/microshift-oc-by-example-content.adoc[leveloffset=+1]
21-
include::modules/microshift-oc-by-example-content-gen.adoc[leveloffset=+1]
34+
// The OCP files are auto-generated from the openshift/oc repository; use the MicroShift-specific flags to generate MicroShift command files from the same repo
35+
include::modules/microshift-oc-by-example-content.adoc[leveloffset=+1]
36+
2237
include::modules/microshift-oc-adm-by-example-content.adoc[leveloffset=+1]

microshift_cli_ref/microshift-usage-oc-kubectl.adoc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,21 @@ include::_attributes/attributes-microshift.adoc[]
66

77
toc::[]
88

9-
The Kubernetes command-line interface (CLI), `kubectl`, can be used to run commands against a Kubernetes cluster. Because {product-title} is a certified Kubernetes distribution, you can use the supported `kubectl` binaries that ship with {product-title}, or you can gain extended functionality by using the `oc` binary.
9+
The Kubernetes command-line interface (CLI), `kubectl`, can be used to run commands against a Kubernetes cluster. Because {product-title} is a certified Kubernetes distribution, you can use the supported `kubectl` CLI tool that ships with {product-title}, or you can gain extended functionality by using the `oc` CLI tool.
10+
11+
[id="microshift-kubectl-binary_{context}"]
12+
== The kubectl CLI tool
13+
14+
You can use the `kubectl` CLI tool to interact with Kubernetes primitives on your {product-title} cluster. You can also use existing `kubectl` workflows and scripts for new {product-title} users coming from another Kubernetes environment, or for those who prefer to use the `kubectl` CLI.
15+
16+
The `kubectl` CLI tool is included in the archive if you download the `oc` CLI tool.
17+
18+
For more information, read the link:https://kubernetes.io/docs/reference/kubectl/overview/[Kubernetes CLI tool documentation].
1019

1120
[id="microshift-oc-binary_{context}"]
12-
== The oc binary
21+
== The oc CLI tool
1322

14-
The `oc` binary offers the same capabilities as the `kubectl` binary, but it extends to natively support additional {product-title} features, including:
23+
The `oc` CLI tool offers the same capabilities as the `kubectl` CLI tool, but it extends to natively support additional {product-title} features, including:
1524

1625
* **Route resource**
1726
+
@@ -23,7 +32,7 @@ The additional command `oc new-app`, for example, makes it easier to get new app
2332

2433
[IMPORTANT]
2534
====
26-
If you installed an earlier version of the `oc` binary, you cannot use it to complete all of the commands in {product-title} {product-version}. If you want the latest features, you must download and install the latest version of the `oc` binary corresponding to your {product-title} server version.
35+
If you installed an earlier version of the `oc` CLI tool, you cannot use it to complete all of the commands in {product-title} {ocp-version}. If you want the latest features, you must download and install the latest version of the `oc` CLI tool corresponding to your {product-title} version.
2736
====
2837

2938
Non-security API changes will involve, at minimum, two minor releases (4.1 to 4.2 to 4.3, for example) to allow older `oc` binaries to update. Using new capabilities might require newer `oc` binaries. A 4.3 server might have additional capabilities that a 4.2 `oc` binary cannot use and a 4.3 `oc` binary might have additional capabilities that are unsupported by a 4.2 server.
@@ -51,12 +60,3 @@ image:redcircle-1.png[] Fully compatible.
5160
image:redcircle-2.png[] `oc` client might not be able to access server features.
5261

5362
image:redcircle-3.png[] `oc` client might provide options and features that might not be compatible with the accessed server.
54-
55-
[id="microshift-kubectl-binary_{context}"]
56-
== The kubectl binary
57-
58-
The `kubectl` binary is provided as a means to support existing workflows and scripts for new {product-title} users coming from a standard Kubernetes environment, or for those who prefer to use the `kubectl` CLI. Existing users of `kubectl` can continue to use the binary to interact with Kubernetes primitives, with no changes required to the {product-title} cluster.
59-
60-
The `kubectl` binary is included in the archive if you download the `oc` binary.
61-
62-
For more information, see the link:https://kubernetes.io/docs/reference/kubectl/overview/[kubectl documentation].

microshift_networking/microshift-networking.adoc

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,25 @@ To troubleshoot connection problems with the NodePort service, read about the kn
2222
====
2323

2424
include::modules/microshift-cni.adoc[leveloffset=+1]
25+
2526
include::modules/microshift-configuring-ovn.adoc[leveloffset=+1]
27+
2628
include::modules/microshift-restart-ovnkube-master.adoc[leveloffset=+1]
29+
2730
//include::modules/microshift-man-config-ovs-bridge.adoc[leveloffset=+1]
31+
2832
include::modules/microshift-http-proxy.adoc[leveloffset=+1]
33+
34+
include::modules/microshift-rpm-ostree-https.adoc[leveloffset=+1]
35+
2936
include::modules/microshift-cri-o-container-runtime.adoc[leveloffset=+1]
37+
3038
include::modules/microshift-ovs-snapshot.adoc[leveloffset=+1]
31-
include::modules/microshift-deploying-a-load-balancer.adoc[leveloffset=+1]
32-
include::modules/microshift-blocking-nodeport-access.adoc[leveloffset=+1]
39+
40+
include::modules/microshift-deploying-a-load-balancer.adoc[leveloffset=+1]
41+
42+
include::modules/microshift-blocking-nodeport-access.adoc[leveloffset=+1]
43+
3344
include::modules/microshift-mDNS.adoc[leveloffset=+1]
3445

3546
[role="_additional-resources"]

microshift_support/microshift-etcd.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ toc::[]
1313
include::snippets/microshift-tech-preview-snip.adoc[leveloffset=+1]
1414

1515
include::modules/microshift-observe-debug-etcd-server.adoc[leveloffset=+1]
16-
include::modules/microshift-configuration.adoc[leveloffset=+1]
16+
include::modules/microshift-config-etcd.adoc[leveloffset=+1]

modules/microshift-accessing-cluster-locally.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ $ sudo cat /var/lib/microshift/resources/kubeadmin/kubeconfig > ~/.kube/config
3737
$ chmod go-r ~/.kube/config
3838
----
3939

40-
. Verify that {product-title} is running by entering the following command:
40+
.Verification
41+
42+
* Verify that {product-title} is running by entering the following command:
4143
+
4244
[source,terminal]
4345
----

modules/microshift-accessing-cluster-open-firewall.adoc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,28 @@
88
[id="microshift-accessing-cluster-open-firewall_{context}"]
99
= Opening the firewall for remote access to the {product-title} cluster
1010

11-
Use the following procedure to open the firewall so that a remote user can access the {product-title} cluster. Your account must have cluster admin privileges. This procedure must be completed before a workstation user can access the cluster remotely.
11+
Use the following procedure to open the firewall so that a remote user can access the {product-title} cluster. This procedure must be completed before a workstation user can access the cluster remotely.
1212

13-
* `user@microshift`, is the user on the {product-title} host machine and is responsible for setting up that machine so that it can be accessed by a remote user on a separate workstation.
13+
For this procedure, `user@microshift` is the user on the {product-title} host machine and is responsible for setting up that machine so that it can be accessed by a remote user on a separate workstation.
1414

1515
.Prerequisites
1616

1717
* You have installed the `oc` binary.
1818
19+
* Your account has cluster administration privileges.
20+
1921
.Procedure
2022

21-
. As `user@microshift` on the {product-title} host, open the firewall port for the Kubernetes API server (`6443/tcp`) by running the following command:
23+
* As `user@microshift` on the {product-title} host, open the firewall port for the Kubernetes API server (`6443/tcp`) by running the following command:
2224
+
2325
[source,terminal]
2426
----
2527
[user@microshift]$ sudo firewall-cmd --permanent --zone=public --add-port=6443/tcp && sudo firewall-cmd --reload
2628
----
2729
28-
.Verify {product-title} is running
30+
.Verification
2931

30-
. As `user@microshift`, verify that {product-title} is running by entering the following command:
32+
* As `user@microshift`, verify that {product-title} is running by entering the following command:
3133
+
3234
[source,terminal]
3335
----

0 commit comments

Comments
 (0)