Skip to content

Commit db7f665

Browse files
authored
Merge pull request #39254 from sagidlow/OSDOCS-2691
OSDOCS-2691: Adding a getting started
2 parents 5dd304f + 6aeedba commit db7f665

31 files changed

+1349
-0
lines changed

_topic_maps/_topic_map.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,17 @@ Topics:
4646
File: new-features
4747
- Name: Deprecated features
4848
File: deprecated-features
49+
---
50+
Name: Getting started
51+
Dir: getting_started
52+
Distros: openshift-enterprise
53+
Topics:
54+
- Name: Overview
55+
File: openshift-overview
56+
- Name: Web Console Walkthrough
57+
File: openshift-web-console
58+
- Name: Command-Line Walkthrough
59+
File: openshift-cli
4960
---
5061
Name: Release notes
5162
Dir: release_notes

getting_started/openshift-cli.adoc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
:_content-type: ASSEMBLY
2+
[id="openshift-cli"]
3+
= Creating and building an application using the CLI
4+
include::modules/common-attributes.adoc[]
5+
:context: openshift-cli
6+
7+
toc::[]
8+
9+
[id="openshift-cli-before-you-begin"]
10+
11+
== Before you begin
12+
13+
* Review xref:../cli_reference/openshift_cli/getting-started-cli.adoc#cli-about-cli_cli-developer-commands[About the OpenShift CLI].
14+
* You must be able to access a running instance of {product-title}. If you do not have access, contact your cluster administrator.
15+
* You must have the OpenShift Container Platform CLI (oc) xref:../cli_reference/openshift_cli/getting-started-cli.adoc#installing-openshift-cli[downloaded and installed].
16+
17+
include::modules/getting-started-cli-login.adoc[leveloffset=+1]
18+
include::modules/getting-started-cli-creating-new-project.adoc[leveloffset=+1]
19+
include::modules/getting-started-cli-granting-permissions.adoc[leveloffset=+1]
20+
include::modules/getting-started-cli-deploying-first-image.adoc[leveloffset=+1]
21+
include::modules/getting-started-cli-creating-route.adoc[leveloffset=+2]
22+
include::modules/getting-started-cli-examining-pod.adoc[leveloffset=+2]
23+
include::modules/getting-started-cli-scaling-app.adoc[leveloffset=+2]
24+
include::modules/getting-started-cli-deploying-python-app.adoc[leveloffset=+1]
25+
include::modules/getting-started-cli-connecting-a-database.adoc[leveloffset=+1]
26+
include::modules/getting-started-cli-creating-secret.adoc[leveloffset=+2]
27+
include::modules/getting-started-cli-load-data-output.adoc[leveloffset=+2]
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
:_content-type: ASSEMBLY
2+
[id="openshift-overview"]
3+
= Overview
4+
include::modules/common-attributes.adoc[]
5+
:context: openshift-overview
6+
7+
toc::[]
8+
9+
{product-title} is a cloud-based Kubernetes container platform. The foundation of {product-title} is based on Kubernetes and therefore shares the same technology. It is designed to allow applications and the data centers that support them to expand from just a few machines and applications to thousands of machines that serve millions of clients.
10+
11+
{product-title} enables you to do the following:
12+
13+
* Provide developers and IT organizations with cloud application platforms that can be used for deploying applications on secure and scalable resources.
14+
* Require minimal configuration and management overhead. {product-title} is built on Kubernetes.
15+
* Bring Kubernetes platform to customer data centers and cloud.
16+
* Meet security, privacy, compliance, and governance requirements.
17+
18+
With its foundation in Kubernetes, {product-title} incorporates the same technology that serves as the engine for massive telecommunications, streaming video, gaming, banking, and other applications. Its implementation in open Red Hat technologies lets you extend your containerized applications beyond a single cloud to on-premise and multi-cloud environments.
19+
20+
include::modules/getting-started-openshift-common-terms.adoc[leveloffset=+1]
21+
22+
[id="openshift-overview-install-openshift"]
23+
== Installing {product-title}
24+
25+
The {product-title} installation program offers you flexibility. You can use the installation program to deploy a cluster on infrastructure that the installation program provisions and the cluster maintains or deploy a cluster on infrastructure that you prepare and maintain.
26+
27+
For more information about the installation process is, the supported platforms, and choosing a method of installing and preparing your cluster, see the following:
28+
29+
* xref:../installing/index.adoc#installation-overview_ocp-installation-overview[OpenShift Container Platform installation overview]
30+
* xref:../installing/index.adoc#installation-process_ocp-installation-overview[Installation overview]
31+
* xref:../installing/index.adoc#supported-platforms-for-openshift-clusters_ocp-installation-overview[Supported platforms for OpenShift Container Platform clusters]
32+
* xref:../installing/installing-preparing.adoc#installing-preparing-selecting-cluster-type[Selecting a cluster installation type]
33+
34+
[id="openshift-next-steps"]
35+
== Next Steps
36+
=== For developers
37+
Develop and deploy containerized applications with {product-title}. {product-title} is a platform for developing and deploying containerized applications. {product-title} documentation helps you:
38+
39+
* **xref:../architecture/understanding-development.adoc#understanding-development[Understand {product-title} development]**: Learn the different types of containerized applications, from simple containers to advanced Kubernetes deployments and Operators.
40+
41+
* **xref:../applications/projects/working-with-projects.adoc#working-with-projects[Work with projects]**: Create projects from the {product-title} web console or OpenShift CLI (`oc`) to organize and share the software you develop.
42+
43+
* **xref:../applications/creating_applications/odc-creating-applications-using-developer-perspective.adoc#odc-creating-applications-using-developer-perspective[Work with applications]**:
44+
Use the xref:../web_console/odc-about-developer-perspective.adoc#odc-about-developer-perspective[*Developer* perspective] in the {product-title} web console to
45+
xref:../applications/creating_applications/odc-creating-applications-using-developer-perspective.adoc#odc-creating-applications-using-developer-perspective[create and deploy applications].
46+
Use the
47+
xref:../applications/odc-viewing-application-composition-using-topology-view.adoc#odc-viewing-application-composition-using-topology-view[*Topology* view]
48+
to see your applications, monitor status, connect and group components, and modify your code base.
49+
50+
* ** xref:../cli_reference/developer_cli_odo/understanding-odo.adoc#understanding-odo[Use the developer CLI tool (`odo`)]**:
51+
The `odo` CLI tool lets developers create single or multi-component applications and automates deployment, build, and service route configurations. It abstracts complex Kubernetes and {product-title} concepts, allowing you to focus on developing your applications.
52+
53+
* **xref:../cicd/pipelines/understanding-openshift-pipelines.adoc#op-key-features[Create CI/CD Pipelines]**: Pipelines are serverless, cloud-native, continuous integration, and continuous deployment systems that run in isolated containers.
54+
They use standard Tekton custom resources to automate deployments and are designed for decentralized teams working on microservices-based architecture.
55+
56+
* **Deploy Helm charts**:
57+
xref:../applications/working_with_helm_charts/understanding-helm.adoc#understanding-helm[Helm 3]
58+
is a package manager that helps developers define, install, and update
59+
application packages on Kubernetes. A Helm chart is a packaging format that
60+
describes an application that can be deployed using the Helm CLI.
61+
62+
* **xref:../cicd/builds/understanding-image-builds.adoc#understanding-image-builds[Understand image builds]**: Choose from different build strategies (Docker, S2I, custom, and pipeline) that can include different kinds of source materials (Git repositories, local binary inputs, and external artifacts). Then, follow examples of build types from basic builds to advanced builds.
63+
64+
* **xref:../openshift_images/create-images.adoc#create-images[Create container images]**: A container image is the most basic building block in {product-title} (and Kubernetes) applications. Defining image streams lets you gather multiple versions of an image in one place as you continue its development. S2I containers let you insert your source code into a base container that is set up to run code of a particular type, such as Ruby, Node.js, or Python.
65+
66+
* **xref:../applications/deployments/what-deployments-are.adoc#what-deployments-are[Create deployments]**: Use `Deployment` and `DeploymentConfig` objects to exert fine-grained management over applications.
67+
xref:../applications/deployments/managing-deployment-processes.adoc#deployment-operations[Manage deployments] using the *Workloads* page or OpenShift CLI (`oc`). Learn xref:../applications/deployments/deployment-strategies.adoc#deployment-strategies[rolling, recreate, and custom] deployment strategies.
68+
69+
* **xref:../openshift_images/using-templates.adoc#using-templates[Create templates]**: Use existing templates or create your own templates that describe how an application is built or deployed. A template can combine images with descriptions, parameters, replicas, exposed ports and other content that defines how an application can be run or built.
70+
71+
* **xref:../operators/understanding/olm-what-operators-are.adoc#olm-what-operators-are[Understand Operators]**: Operators are the preferred method for creating on-cluster applications for {product-title} {product-version}. Learn about the Operator Framework and how to deploy applications using installed Operators into your projects.
72+
73+
* **xref:../operators/operator_sdk/osdk-about.adoc#osdk-about[Develop Operators]**: Operators are the preferred method for creating on-cluster applications for {product-title} {product-version}. Learn the workflow for building, testing, and deploying Operators. Then, create your own Operators based on xref:../operators/operator_sdk/ansible/osdk-ansible-support.adoc#osdk-ansible-support[Ansible] or
74+
xref:../operators/operator_sdk/helm/osdk-helm-support.adoc#osdk-helm-support[Helm], or configure xref:../operators/operator_sdk/osdk-monitoring-prometheus.adoc#osdk-monitoring-prometheus[built-in Prometheus monitoring] using the Operator SDK.
75+
76+
* **xref:../rest_api/index.adoc#api-index[REST API reference]**: Learn about {product-title} application programming interface endpoints.
77+
78+
=== For administrators
79+
* **xref:../architecture/architecture.adoc#architecture-overview-architecture[Understand {product-title} management]**: Learn about components
80+
of the {product-title} {product-version} control plane. See how {product-title} control plane and worker nodes are managed and updated through the xref:../machine_management/creating_machinesets/creating-machineset-aws.adoc#machine-api-overview_creating-machineset-aws[Machine API] and xref:../architecture/control-plane.adoc#operators-overview_control-plane[Operators].
81+
82+
* **xref:../authentication/understanding-authentication.adoc#understanding-authentication[Manage users and groups]**: Add users and groups with different levels of permissions to use or modify clusters.
83+
84+
* **xref:../authentication/understanding-authentication.adoc#understanding-authentication[Manage authentication]**: Learn how user, group, and API authentication
85+
works in {product-title}. {product-title} supports multiple identity providers.
86+
87+
* **xref:../networking/understanding-networking.adoc#understanding-networking[Manage networking]**: The cluster network in {product-title} is managed by the xref:../networking/cluster-network-operator.adoc#cluster-network-operator[Cluster Network Operator] (CNO). The CNO uses iptables rules in xref:../networking/openshift_sdn/configuring-kube-proxy.adoc#configuring-kube-proxy[kube-proxy] to direct traffic between nodes and pods running on those nodes. The Multus Container Network Interface adds the capability to attach xref:../networking/multiple_networks/understanding-multiple-networks.adoc#understanding-multiple-networks[multiple network interfaces] to a pod. Using
88+
xref:../networking/network_policy/about-network-policy.adoc#about-network-policy[network policy] features, you can isolate your pods or permit selected traffic.
89+
90+
* **xref:../storage/understanding-persistent-storage.adoc#understanding-persistent-storage[Manage storage]**: {product-title} allows cluster administrators to configure persistent storage.
91+
92+
* **xref:../operators/understanding/olm-understanding-operatorhub.adoc#olm-understanding-operatorhub[Manage Operators]**: Lists of Red Hat, ISV, and community Operators can
93+
be reviewed by cluster administrators and xref:../operators/admin/olm-adding-operators-to-cluster.adoc#olm-adding-operators-to-a-cluster[installed on their clusters]. After you install them, you can xref:../operators/user/olm-creating-apps-from-installed-operators.adoc#olm-creating-apps-from-installed-operators[run], xref:../operators/admin/olm-upgrading-operators.adoc#olm-upgrading-operators[upgrade], back up, or otherwise manage the Operator on your cluster.
94+
95+
* **xref:../operators/understanding/crds/crd-extending-api-with-crds.adoc#crd-extending-api-with-crds[Use custom resource definitions (CRDs) to modify the cluster]**: Cluster features implemented with Operators can be modified with CRDs. Learn to xref:../operators/understanding/crds/crd-extending-api-with-crds.adoc#crd-creating-custom-resources-definition_crd-extending-api-with-crds[create a CRD] and xref:../operators/understanding/crds/crd-managing-resources-from-crds.adoc#crd-managing-resources-from-crds[manage resources from CRDs].
96+
97+
* **xref:../applications/quotas/quotas-setting-per-project.adoc#quotas-setting-per-project[Set resource quotas]**: Choose from CPU, memory, and other system resources to xref:../applications/quotas/quotas-setting-per-project.adoc#quotas-setting-per-project[set quotas].
98+
99+
* **xref:../applications/pruning-objects.adoc#pruning-objects[Prune and reclaim resources]**: Reclaim space by pruning unneeded Operators, groups, deployments, builds, images, registries, and cron jobs.
100+
101+
* **xref:../scalability_and_performance/scaling-cluster-monitoring-operator.adoc#scaling-cluster-monitoring-operator[Scale] and xref:../scalability_and_performance/using-node-tuning-operator.adoc#using-node-tuning-operator[tune] clusters**: Set cluster limits, tune nodes, scale cluster monitoring, and optimize networking, storage, and routes for your environment.
102+
103+
* **xref:../updating/installing-update-service.adoc#installing-update-service[Understanding the OpenShift Update Service]**: Learn about installing and managing a local OpenShift Update Service for recommending {product-title} updates in restricted network environments.
104+
105+
* **xref:../monitoring/monitoring-overview.adoc#monitoring-overview[Monitor clusters]**:
106+
Learn to xref:../monitoring/configuring-the-monitoring-stack.adoc#configuring-the-monitoring-stack[configure the monitoring stack].
107+
After configuring monitoring, use the web console to access xref:../monitoring/reviewing-monitoring-dashboards.adoc#reviewing-monitoring-dashboards[monitoring dashboards]. In addition to infrastructure metrics, you can also scrape and view metrics for your own services.
108+
109+
* **xref:../support/remote_health_monitoring/about-remote-health-monitoring.adoc#about-remote-health-monitoring_about-remote-health-monitoring[Remote health monitoring]**: {product-title} collects anonymized aggregated information about your cluster. Using Telemetry and the Insights Operator, this data is received by Red Hat and used to improve {product-title}. You can view the xref:../support/remote_health_monitoring/showing-data-collected-by-remote-health-monitoring.adoc#showing-data-collected-by-remote-health-monitoring_showing-data-collected-by-remote-health-monitoring[data collected by remote health monitoring].
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
:_content-type: ASSEMBLY
2+
[id="openshift-web-console"]
3+
= Creating and building an application using the web console
4+
include::modules/common-attributes.adoc[]
5+
:context: openshift-web-console
6+
7+
toc::[]
8+
9+
[id="openshift-web-console-before-you-begin"]
10+
11+
== Before you begin
12+
* Review xref:../web_console/web-console.adoc#web-console-overview[accessing the web console].
13+
* You must be able to access a running instance of {product-title}. If you do not have access, contact your cluster administrator.
14+
15+
include::modules/getting-started-web-console-login.adoc[leveloffset=+1]
16+
include::modules/getting-started-web-console-creating-new-project.adoc[leveloffset=+1]
17+
include::modules/getting-started-web-console-granting-permissions.adoc[leveloffset=+1]
18+
include::modules/getting-started-web-console-deploying-first-image.adoc[leveloffset=+1]
19+
include::modules/getting-started-web-console-examining-pod.adoc[leveloffset=+2]
20+
include::modules/getting-started-web-console-scaling-app.adoc[leveloffset=+2]
21+
include::modules/getting-started-web-console-deploying-python-app.adoc[leveloffset=+1]
22+
include::modules/getting-started-web-console-connecting-a-database.adoc[leveloffset=+1]
23+
include::modules/getting-started-web-console-creating-secret.adoc[leveloffset=+2]
24+
include::modules/getting-started-web-console-load-data-output.adoc[leveloffset=+2]
1.61 MB
Loading
25 KB
Loading
1.84 MB
Loading
38.6 KB
Loading
54.4 KB
Loading
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * getting-started/openshift-cli.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="getting-started-cli-connecting-database_{context}"]
7+
= Connecting to a database
8+
9+
Deploy and connect a MongoDB database where the `national-parks-app` application stores location information.
10+
Once you mark the `national-parks-app` application as a backend for the map visualization tool, `parksmap` deployment uses {product-title} discover mechanism to display the map automatically.
11+
12+
.Prerequisites
13+
14+
* You must have access to an {product-title} cluster.
15+
* You must have installed the OpenShift CLI (`oc`).
16+
* You have a deployed image.
17+
18+
.Procedure
19+
20+
. To connect to a database, enter the following command:
21+
+
22+
[source,terminal]
23+
----
24+
$ oc new-app quay.io/centos7/mongodb-36-centos7 --name mongodb-nationalparks -e MONGODB_USER=mongodb -e MONGODB_PASSWORD=mongodb -e MONGODB_DATABASE=mongodb -e MONGODB_ADMIN_PASSWORD=mongodb -l 'app.kubernetes.io/part-of=national-parks-app,app.kubernetes.io/name=mongodb'
25+
----
26+
+
27+
.Example output
28+
+
29+
[source,terminal]
30+
----
31+
--> Found container image dc18f52 (8 months old) from quay.io for "quay.io/centos7/mongodb-36-centos7"
32+
33+
MongoDB 3.6
34+
-----------
35+
MongoDB (from humongous) is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. This container image contains programs to run mongod server.
36+
37+
Tags: database, mongodb, rh-mongodb36
38+
39+
* An image stream tag will be created as "mongodb-nationalparks:latest" that will track this image
40+
41+
--> Creating resources with label app.kubernetes.io/name=mongodb,app.kubernetes.io/part-of=national-parks-app ...
42+
imagestream.image.openshift.io "mongodb-nationalparks" created
43+
deployment.apps "mongodb-nationalparks" created
44+
service "mongodb-nationalparks" created
45+
--> Success
46+
----
47+
48+
.Additional resources
49+
* xref:../cli_reference/openshift_cli/developer-cli-commands.adoc#oc-new-project[oc new-project]

0 commit comments

Comments
 (0)