Skip to content

Commit 3abbb9d

Browse files
authored
Merge pull request #52502 from dhellmann/microshift-poc-follow-up
USHIFT-267: address comments from #50054
2 parents 41be38e + a160fa8 commit 3abbb9d

File tree

9 files changed

+72
-52
lines changed

9 files changed

+72
-52
lines changed

cli_reference/openshift_cli/usage-oc-kubectl.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@ Resources such as `DeploymentConfig`, `BuildConfig`, `Route`, `ImageStream`, and
1616
+
1717
* **Authentication**
1818
+
19-
The `oc` binary offers a built-in `login` command that allows authentication and enables you to work with {product-title} projects, which map Kubernetes namespaces to authenticated users.
2019
ifndef::microshift[]
20+
The `oc` binary offers a built-in `login` command for authentication and lets you work with {product-title} projects, which map Kubernetes namespaces to authenticated users.
2121
See xref:../../authentication/understanding-authentication.adoc#understanding-authentication[Understanding authentication] for more information.
2222
endif::[]
2323
+
24+
ifdef::microshift[]
25+
The `oc` binary offers a built-in `login` command for authentication to {product-title}.
26+
endif::[]
27+
+
2428
* **Additional commands**
2529
+
2630
The additional command `oc new-app`, for example, makes it easier to get new applications started using existing source code or pre-built images. Similarly, the additional command `oc new-project` makes it easier to start a project that you can switch to as your default.

microshift_architecture/microshift-understanding.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ include::_attributes/attributes-microshift.adoc[]
55
:context: microshift-understanding
66
toc::[]
77

8-
Learn about {product-title}, interacting with {product-title} the command-line interface (CLI) tools, consumption experience, and integration with {op-system-first}.
8+
Learn about {product-title}, interacting with {product-title} via the command-line interface (CLI) tools, and integration with {op-system-first}.
99

1010
[id="microshift-understanding-about_{context}"]
1111
== About MicroShift
1212

13-
MicroShift is a distribution of {OCP} optimized for small form factor and edge computing.
13+
MicroShift is a distribution of {OCP} optimized for small form factors and edge computing.
1414

15-
Edge devices deployed in the field pose very different operational, environmental, and business challenges from those of cloud computing. These challenges motivate different engineering trade-offs for Kubernetes at the far edge than for cloud or near-edge scenarios. MicroShift's design goals cater to this:
15+
Edge devices deployed in the field pose very different operational, environmental, and business challenges from those of cloud computing. These challenges motivate different engineering tradeoffs for Kubernetes at the far edge than for cloud or near-edge scenarios. MicroShift's design goals cater to these factors, including:
1616

17-
* Make frugal use of system resources, such as CPU, memory, network, and storage
18-
* Tolerate severe networking constraints
19-
* Update securely, safely, quickly, and seamlessly, without disrupting workloads
20-
* Extend and integrate cleanly with edge-optimized operating systems, like Fedora IoT and {op-system-first}
21-
* Provide a consistent development and management experience with other distributions of {OCP}
17+
* Minimizing the use of system resources, such as CPU, memory, network, and storage
18+
* Tolerating severe networking constraints
19+
* Securely and seamlessly updating, without disrupting workloads
20+
* Extending and integrating cleanly with edge-optimized operating systems, like Fedora IoT and {op-system-first}
21+
* Providing a consistent development and management experience with other distributions of {OCP}

microshift_support/attributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../_attributes/
1+
../_attributes

microshift_support/images

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../images/
1+
../images

microshift_support/microshift-version.adoc

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,44 +5,8 @@ include::_attributes/attributes-microshift.adoc[]
55
:context: microshift-version
66
toc::[]
77

8-
[id="microshift-version-cli"]
9-
== Checking the MicroShift Version from the command line
8+
Learn about detecting the version of {product-title} at runtime.
109

11-
From the command line, use `microshift version` to check the version information.
10+
include::modules/microshift-version-command-line.adoc[leveloffset=+1]
1211

13-
[source,terminal]
14-
----
15-
$ microshift version
16-
----
17-
18-
.Example output
19-
[source,terminal]
20-
----
21-
MicroShift Version: 4.10.0-0.microshift-e6980e25
22-
Base OCP Version: 4.10.18
23-
----
24-
25-
[id="microshift-version-api"]
26-
== Checking the MicroShift Version via the API
27-
28-
Through the API, access the `kube-public/microshift-version` ConfigMap to retrieve the same information.
29-
30-
[source,terminal]
31-
----
32-
$ oc get configmap -n kube-public microshift-version -o yaml
33-
----
34-
35-
.Example output
36-
[source,terminal]
37-
----
38-
apiVersion: v1
39-
data:
40-
major: "4"
41-
minor: "10"
42-
version: 4.10.0-0.microshift-e6980e25
43-
kind: ConfigMap
44-
metadata:
45-
creationTimestamp: "2022-08-08T21:06:11Z"
46-
name: microshift-version
47-
namespace: kube-public
48-
----
12+
include::modules/microshift-version-api.adoc[leveloffset=+1]

microshift_support/modules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../modules/
1+
../modules

microshift_support/snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../snippets/
1+
../snippets/

modules/microshift-version-api.adoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * microshift_support/microshift-version.adoc
4+
5+
[id="microshift-version-api"]
6+
= Checking the {product-title} Version via the API
7+
8+
.Procedure
9+
10+
* Using the API, access the `kube-public/microshift-version` ConfigMap to retrieve the same information.
11+
12+
[source,terminal]
13+
----
14+
$ oc get configmap -n kube-public microshift-version -o yaml
15+
----
16+
17+
.Example output
18+
[source,yaml]
19+
----
20+
apiVersion: v1
21+
data:
22+
major: "4"
23+
minor: "10"
24+
version: 4.10.0-0.microshift-e6980e25
25+
kind: ConfigMap
26+
metadata:
27+
creationTimestamp: "2022-08-08T21:06:11Z"
28+
name: microshift-version
29+
namespace: kube-public
30+
----
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * microshift_support/microshift-version.adoc
4+
5+
[id="microshift-version-cli"]
6+
= Checking the {product-title} Version from the command-line
7+
8+
.Procedure
9+
10+
* Run the following command to check the version information:
11+
12+
[source,terminal]
13+
----
14+
$ microshift version
15+
----
16+
17+
.Example output
18+
[source,terminal]
19+
----
20+
MicroShift Version: 4.10.0-0.microshift-e6980e25
21+
Base OCP Version: 4.10.18
22+
----

0 commit comments

Comments
 (0)