Skip to content

Commit 475c2f9

Browse files
authored
Merge pull request #101964 from ShaunaDiaz/OSDOCS-15651
OSDOCS-15651: mods GitOps assembly MicroShift
2 parents ca40a12 + 5fd62f9 commit 475c2f9

12 files changed

+94
-60
lines changed

_attributes/attributes-microshift.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//gitops version for 4.17-4.19
1515
:gitops-ver: 1.16
1616
:gitops-title: Red{nbsp}Hat OpenShift GitOps
17-
:gitops-shortname: GitOps
17+
:gitops: GitOps
1818
:product-registry: OpenShift image registry
1919
:product-version: 4.20
2020
:rhel-major: rhel-9

_topic_maps/_topic_map_ms.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ Distros: microshift
270270
Topics:
271271
- Name: The etcd service
272272
File: microshift-etcd
273-
- Name: The sos report tool
273+
- Name: Using sos reports
274274
File: microshift-sos-report
275275
- Name: Getting your node ID
276276
File: microshift-getting-node-id

microshift_install_rpm_opt/microshift-install-optional-rpms.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ include::modules/microshift-rhoai-install.adoc[leveloffset=+1]
2323
[id="additional-resources_microshift-install-optional-rpms"]
2424
[role="_additional-resources"]
2525
== Additional resources
26-
* xref:../microshift_running_apps/microshift-gitops.adoc#microshift-gitops[Automating application management with the {gitops-shortname} controller]
26+
27+
* xref:../microshift_running_apps/microshift-gitops.adoc#microshift-gitops[Automating application management with the {gitops-short} controller]
2728
* xref:../microshift_networking/microshift_multiple_networks/microshift-cni-multus.adoc#microshift-cni-multus[About using multiple networks]
2829
* xref:../microshift_running_apps/microshift_operators/microshift-operators-olm.adoc#microshift-operators-olm[Using Operator Lifecycle Manager with {microshift-short}]
2930
* xref:../microshift_running_apps/microshift-observability-service.adoc#microshift-observability-service[Using {microshift-short} Observability]
Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,29 @@
11
:_mod-docs-content-type: ASSEMBLY
22
[id="microshift-gitops"]
33
= Automating application management with the GitOps controller
4+
45
include::_attributes/attributes-microshift.adoc[]
56
:context: microshift-gitops
67

78
toc::[]
89

9-
GitOps with Argo CD for {microshift-short} is a lightweight, optional add-on controller derived from the Red Hat OpenShift GitOps Operator. GitOps for {microshift-short} uses the command-line interface (CLI) of Argo CD to interact with the GitOps controller that acts as the declarative GitOps engine. You can consistently configure and deploy Kubernetes-based infrastructure and applications across node and development lifecycles.
10-
11-
[id="microshift-gitops-can-do_{context}"]
12-
== What you can do with the GitOps agent
13-
By using the GitOps with Argo CD agent with {microshift-short}, you can utilize the following principles:
10+
[role="_abstract"]
11+
You can consistently configure and deploy Kubernetes-based infrastructure and applications across node and development lifecycles by using the declarative {gitops-title} engine.
1412

15-
* Implement application lifecycle management.
16-
** Create and manage your node and application configuration files using the core principles of developing and maintaining software in a Git repository.
17-
** You can update the single repository and GitOps automates the deployment of new applications or updates to existing ones.
18-
** For example, if you have 1,000 edge devices, each using {microshift-short} and a local GitOps agent, you can easily add or update an application on all 1,000 devices with just one change in your central Git repository.
19-
* The Git repository contains a declarative description of the infrastructure you need in your specified environment and contains an automated process to make your environment match the described state.
20-
* You can also use the Git repository as an audit trail of changes so that you can create processes based on Git flows such as review and approval for merging pull requests that implement configuration changes.
13+
include::modules/microshift-gitops-can-do.adoc[leveloffset=+1]
2114

22-
include::modules/microshift-gitops-adding-apps.adoc[leveloffset=+1]
23-
24-
[role="_additional-resources"]
25-
.Additional resources
26-
* xref:../microshift_install_rpm/microshift-install-rpm.adoc#microshift-installing-rpms-for-gitops_microshift-install-rpm[Installing the GitOps Argo CD manifests from an RPM package]
15+
include::modules/microshift-gitops-limitations.adoc[leveloffset=+1]
2716

28-
[id="microshift-gitops-cannot-do_{context}"]
29-
== Limitations of using the GitOps agent with {microshift-short}
30-
GitOps with Argo CD for {microshift-short} has the following differences from the Red Hat OpenShift GitOps Operator:
17+
include::modules/microshift-install-rpms-gitops.adoc[leveloffset=+1]
3118

32-
* The `gitops-operator` component is not used with {microshift-short}.
33-
* To maintain the small resource use of {microshift-short}, the Argo CD web console is not available. You can use the Argo CD CLI.
34-
* Because {microshift-short} is single-node, there is no multi-node support. Each instance of {microshift-short} is paired with a local GitOps agent.
35-
* The `oc adm must-gather` command is not available in {microshift-short}.
36-
37-
[id="microshift-gitops-troubleshooting_{context}"]
38-
== Troubleshooting GitOps
39-
If you have problems with your GitOps controller, you can use the {oc-first} tool.
19+
include::modules/microshift-gitops-adding-apps.adoc[leveloffset=+1]
4020

41-
include::modules/microshift-gitops-debug.adoc[leveloffset=+2]
21+
include::modules/microshift-gitops-debug.adoc[leveloffset=+1]
4222

4323
[id="additional-resources_microshift-gitops_{context}"]
4424
[role="_additional-resources"]
4525
== Additional resources
46-
* xref:../microshift_install_rpm/microshift-install-rpm.adoc#microshift-installing-rpms-for-gitops_microshift-install-rpm[Installing the GitOps Argo CD manifests from an RPM package]
4726

4827
* xref:../microshift_support/microshift-sos-report.adoc#microshift-sos-report[Using sos reports]
49-
50-
* link:https://access.redhat.com/documentation/en-us/red_hat_openshift_gitops/1.12[Red Hat OpenShift GitOps]
51-
52-
* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/getting_the_most_from_your_support_experience/generating-an-sos-report-for-technical-support_getting-the-most-from-your-support-experience[Generating an sos report for technical support] (Red Hat Enterprise Linux)
28+
* link:https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/getting_the_most_from_your_support_experience/generating-an-sos-report-for-technical-support_getting-the-most-from-your-support-experience[Generating an sos report for technical support]
29+
* link:https://docs.redhat.com/en/documentation/red_hat_openshift_gitops/latest[{gitops-title}]
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
11
:_mod-docs-content-type: ASSEMBLY
22
[id="microshift-sos-report"]
33
= Using sos reports
4+
45
include::_attributes/attributes-microshift.adoc[]
56
:context: microshift-sos-report
67

78
toc::[]
89

9-
You can use the `sos` tool to collect troubleshooting information about a host. The `sos report` command generates a detailed report that shows all of the enabled plugins and data from the different components and applications in a system.
10+
[role="_abstract"]
11+
As an administrator, you can use the `sos` tool to collect troubleshooting information about a {op-system-full} host and share that information with Red{nbsp}Hat support.
1012

1113
include::modules/microshift-about-sos-reports.adoc[leveloffset=+1]
1214

1315
include::modules/microshift-gathering-sos-report.adoc[leveloffset=+1]
1416

15-
[role="_additional-resources"]
1617
[id="additional-resources_microshift-sos-report_{context}"]
18+
[role="_additional-resources"]
1719
== Additional resources
18-
* link:https://access.redhat.com/solutions/2112[How to provide files to Red Hat Support (vmcore, rhev logcollector, sosreports, heap dumps, log files, etc.]
19-
* link:https://access.redhat.com/solutions/3592[What is an sos report and how to create one in {op-system-base-full}?]
20+
21+
* link:https://access.redhat.com/solutions/2112[How to provide files to Red Hat Support]
22+
* link:https://access.redhat.com/solutions/3592[What is an sos report and how to create one in {op-system-base-full}?]

modules/microshift-about-sos-reports.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
[id="about-microshift-sos-reports_{context}"]
77
= About sos reports
88

9-
The `sos` tool is composed of different plugins that help you gather information from different applications. A {microshift-short}-specific plugin from sos version 4.5.1 can gather the following data:
9+
[role="_abstract"]
10+
You can use an sos report to troubleshoot a failing host or problems with {gitops-title}. The `sos` tool combines plugins that help you gather information from different applications. The `sos report` command generates a detailed report that shows all of the enabled plugins and data from the different components and applications in a system.
11+
12+
A {microshift-short}-specific plugin from sos version 4.5.1 gathers the following data:
1013

1114
* {microshift-short} configuration and version
1215
* YAML output for node and system namespaced resources

modules/microshift-gathering-sos-report.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
[id="gathering-data-microshift-sos-report_{context}"]
77
= Gathering data from an sos report
88

9+
[role="_abstract"]
10+
You can create an sos report about a failing {op-system-full} host that you can share with Red{nbsp}Hat support for troubleshooting.
11+
912
.Prerequisites
1013

1114
* You must have the `sos` package installed.
15+
* You have root access to the host.
1216
1317
.Procedure
1418

@@ -76,4 +80,4 @@ Your sosreport has been generated and saved in:
7680
sha256 922e5ff2db25014585b7c6c749d2c44c8492756d619df5e9838ce863f83d4269
7781
7882
Please send this file to your support representative.
79-
----
83+
----

modules/microshift-gitops-adding-apps.adoc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
[id="microshift-gitops-adding-apps_{context}"]
77
= Creating GitOps applications on {microshift-short}
88

9-
You can create a custom YAML configuration to deploy and manage applications in your {microshift-short} service. To install the necessary packages to run GitOps applications, follow the documentation in "Installing the GitOps Argo CD manifests from an RPM package".
9+
[role="_abstract"]
10+
You can create a custom configuration by using a YAML file to deploy and manage applications in your {microshift-short} service after you install the {gitops-title} Argo CD manifests from an RPM package.
1011

1112
.Prerequisites
1213

1314
* You installed the `microshift-gitops` packages.
14-
1515
* The Argo CD pods are running in the `openshift-gitops` namespace.
1616
1717
.Procedure
@@ -60,12 +60,12 @@ spec:
6060

6161
. To deploy the applications defined in the YAML file, run the following command:
6262
+
63-
[source,terminal]
64-
[subs="+quotes"]
63+
[source,terminal,subs="+quotes"]
6564
----
66-
$ oc apply -f __<my_app.yaml>__ <1>
65+
$ oc apply -f _<my_app.yaml>_
6766
----
68-
<1> Replace `_<my_app.yaml>_` with the name of your application YAML.
67+
+
68+
Replace `_<my_app.yaml>_` with the name of your application YAML.
6969

7070
.Verification
7171

@@ -75,11 +75,12 @@ $ oc apply -f __<my_app.yaml>__ <1>
7575
----
7676
$ oc get applications -A
7777
----
78-
It might take a few minutes for the application to show the `Healthy` status.
78+
+
79+
Wait a few minutes for the application to show a `Healthy` status.
7980
+
8081
.Example output
8182
[source,terminal]
8283
----
8384
NAMESPACE NAME SYNC STATUS HEALTH STATUS
8485
openshift-gitops spring-petclinic Synced Healthy
85-
----
86+
----
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Module included in the following assemblies:
2+
//
3+
// microshift_running_apps/microshift-gitops.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="microshift-gitops-can-do_{context}"]
7+
= What you can do with the GitOps agent
8+
9+
[role="_abstract"]
10+
You can manage application lifecycles and use automated processes to manage application changes with {gitops-title}.
11+
12+
{gitops} with Argo CD for {microshift-short} is a lightweight, optional add-on controller derived from the {gitops} Operator.
13+
14+
The {gitops} agent for {microshift-short} uses the command-line interface (CLI) of Argo CD to interact with the {gitops} controller. The controller acts as the declarative {gitops} engine. By using the {gitops} with Argo CD agent for {microshift-short}, you can use the following principles:
15+
16+
* Implement application lifecycle management:
17+
18+
** Create and manage your node and application configuration files using the core principles of developing and maintaining software in a Git repository.
19+
** You can update the single repository and GitOps automates the deployment of new applications or updates to existing ones.
20+
** For example, if you have 1,000 edge devices, each using {microshift-short} and a local GitOps agent, you can easily add or update an application on all 1,000 devices with just one change in your central Git repository.
21+
22+
* The Git repository contains a declarative description of the infrastructure you need in your specified environment and contains an automated process to make your environment match the described state.
23+
24+
* You can also use the Git repository as an audit trail of changes so that you can create processes based on Git flows such as review and approval for merging pull requests that implement configuration changes.

modules/microshift-gitops-debug.adoc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="microshift-gitops-debug_{context}"]
7-
= Debugging GitOps with oc adm inspect
7+
= Debugging {gitops} with oc adm inspect
88

9-
You can debug GitOps by using the {oc-first}.
9+
[role="_abstract"]
10+
If you have problems with your Argo CD for {microshift-short} {gitops-title} controller, you can use the {oc-first} tool to inspect it for errors.
1011

1112
.Prerequisites
1213

1314
* The `oc` command-line tool is installed.
1415
1516
.Procedure
1617

17-
. Run the `oc adm inspect` command when in the GitOps namespace:
18+
* Run the `oc adm inspect` command when in the {gitops} namespace:
1819
+
1920
[source,terminal]
2021
----
@@ -32,4 +33,5 @@ Wrote inspect data to inspect.local.2673575938140296280.
3233
----
3334
3435
.Next steps
35-
* If `oc adm inspect` did not provide the information you need, you can run an sos report.
36+
37+
* If `oc adm inspect` did not show the information you need, you can run an sos report.

0 commit comments

Comments
 (0)