Skip to content

Commit 7ce50d0

Browse files
authored
travelops documentation (#406)
* initial docs push * adding images to repo * travelops documentation big update * Update getting-started.adoc
1 parent 3878a4c commit 7ce50d0

18 files changed

+412
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: TravelOps
3+
date: 2024-02-09
4+
tier: sandbox
5+
summary: This pattern enables you to secure your applications using Red Hat Service Mesh.
6+
rh_products:
7+
- Red Hat OpenShift Container Platform
8+
- Red Hat Service Mesh
9+
- Red Hat Kiali
10+
- Red Hat Jaeger Distributed Tracing
11+
- Red Hat ElasticSearch
12+
industries:
13+
- General
14+
aliases: /travelops/
15+
links:
16+
install: getting-started
17+
help: https://groups.google.com/g/validatedpatterns
18+
bugs: https://github.com/validatedpatterns-sandbox/travelops/issues
19+
ci: travelops
20+
---
21+
:toc:
22+
:imagesdir: /images
23+
:_content-type: ASSEMBLY
24+
include::modules/comm-attributes.adoc[]
25+
26+
include::modules/trvlops-about.adoc[leveloffset=+1]
27+
28+
include::modules/trvlops-architecture.adoc[leveloffset=+1]
29+
30+
[id="next-steps_trvlops-index"]
31+
== Next steps
32+
33+
* link:getting-started[Deploy the Pattern] using Helm.
34+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: Demo Script
3+
weight: 60
4+
aliases: /travelops/demo/
5+
---
6+
7+
:toc:
8+
:imagesdir: /images
9+
:_content-type: REFERENCE
10+
include::modules/comm-attributes.adoc[]
11+
12+
include::modules/trvlops-demo.adoc[leveloffset=+1]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Getting Started
3+
weight: 10
4+
aliases: /travelops/getting-started/
5+
---
6+
7+
:toc:
8+
:imagesdir: /images
9+
:_content-type: ASSEMBLY
10+
include::modules/comm-attributes.adoc[]
11+
12+
include::modules/trvlops-deploying.adoc[leveloffset=1]
13+
14+
[id="next-steps_getting-started"]
15+
== Next Steps
16+
17+
To run through the demo, refer to link:..//demo-script[Monitor the Mesh]
18+
19+
Like what you see, but can't quite put your finger on how you could use a Service Mesh? Check out link:../ideas-for-customization[Ways to customize the Mesh] for some ideas!
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
title: Ideas for customization
3+
weight: 50
4+
aliases: /travelops/ideas-for-customization/
5+
---
6+
7+
:toc:
8+
:imagesdir: /images
9+
:_content-type: ASSEMBLY
10+
include::modules/comm-attributes.adoc[]
11+
12+
//header information comes from the module
13+
include::modules/trvlops-about-customizing-pattern.adoc[leveloffset=+1]

modules/comm-attributes.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
:med: medical diagnosis
3434
:multi-devsec-pattern: Multi-cluster DevSecOps pattern
3535
:multi-devsec: multi-cluster DevSecOps
36+
:trvlops-pattern: TravelOps pattern
37+
:trvlops: TravelOps pattern
3638
// Associated products
3739
:hashicorp-vault: HashiCorp Vault
3840
:hashicorp-vault-short: Vault
@@ -152,5 +154,10 @@
152154
// Red Hat OpenShift AI
153155
:rh-oai: Red{nbsp}Hat OpenShift Data Science
154156
:oai: OpenShift Data Science
157+
// Red Hat Service Mesh
158+
:rh-sm: Red{nbsp}Hat Service Mesh
159+
:rh-kiali: Kiali
160+
:rh-jaeger: Jaeger Distributed Tracing
161+
:rh-elastic: ElasticSearch
155162
// Icons
156163
:grid: grid.png
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:_content-type: CONCEPT
2+
:imagesdir: ../../images
3+
4+
[id="about-customizing-pattern-trvlops"]
5+
= About customizing the pattern {trvlops-pattern}
6+
7+
One of the major goals of the Validated Patterns development process is to create modular, customizable demos. The {trvlops-pattern} is just an example of a pattern that can deploy a Service Mesh and add applications to it using GitOps. When reading these customization ideas really think of them in the context of starting with this pattern and extending it to meet your organizations needs.
8+
9+
* oAuth Configuration
10+
** Create an oAuth provider (HTPasswd, GitHub, MicroSoft)
11+
** Create RBAC (roles, rolebindings) and assign to users
12+
13+
* External prometheus installation
14+
15+
* Integrate `openshift-pipelines` into the pattern for a full `ci/cd` experience
16+
17+
* Integrate with Keycloak for AuthN / AuthZ
18+
19+
* Integrate with a real certificate authority like Let's Encrypt

modules/trvlops-about.adoc

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
:_content-type: CONCEPT
2+
:imagesdir: ../../images
3+
4+
[id="about-travelops-pattern"]
5+
= About the travelops pattern
6+
7+
Use case::
8+
9+
* Use a GitOps approach to manage hybrid and multi-cloud deployments across both public and private clouds.
10+
* Enable cross-cluster governance and application lifecycle management.
11+
* Securely manage secrets across the deployment.
12+
+
13+
[NOTE]
14+
====
15+
Based on the requirements of a specific implementation, certain details might differ. However, all validated patterns that are based on a portfolio architecture, generalize one or more successful deployments of a use case.
16+
====
17+
18+
Background::
19+
20+
The {trvlops-pattern} deployed using OpenShift GitOps and is comprised of Red Hat Service Mesh (RHSM), Kiali for the Service Mesh console, Jaeger for distributed tracing, and elasticsearch for logging and analytics. The application deployed is from the Kiali traveldemo tutorial. This pattern isn't as much about the demo as it is about the capabilities that are enabled with a few simple configurations. Service Mesh's are being incorporated across multiple platforms to provide secure communications between services.
21+
22+
//In this pattern we implement Mutual TLS (mTLS) which is completed per namespace. To enable a namespace in the mesh you must add the namespace to the list under `serviceMeshMemberNamespaces` in `values-travelops.yaml`. This will create a Service Mesh Member (SMM) resource, which tells the Service Mesh that resources in the namespace are authorized in the mesh.
23+
24+
Organizations are aiming to develop, deploy, and operate applications on an open hybrid cloud in a stable, simple, and secure way. This hybrid strategy includes multi-cloud deployments where workloads might be running on multiple clusters and on multiple clouds, private or public.
25+
This strategy requires an infrastructure-as-code approach: GitOps. GitOps uses Git repositories as a single source of truth to deliver infrastructure-as-code. Submitted code will be checked by the continuous integration (CI) process, while the continuous delivery (CD) process checks and applies requirements for things like security, infrastructure-as-code, or any other boundaries set for the application framework. All changes to code are tracked, making updates easy while also providing version control should a rollback be needed.
26+
27+
[id="about-solution"]
28+
== About the solution
29+
30+
This architecture covers a single cluster for all DevOps and GitOps functionality. However, one could extend this architecture to meet hybrid or multicloud demand using a GitOps approach
31+
32+
Benefits of Hybrid Multicloud management with GitOps:
33+
34+
* Unify management across cloud environments.
35+
* Dynamic infrastructure security.
36+
* Infrastructural continuous delivery best practices.
37+
38+
In the following figure, logically, this solution can be viewed as being composed of an automation component, unified management including secrets management, and the clusters under management, all running on top of a user-chosen mixture of on-premise data centers and public clouds.
39+
40+
.Logical diagram of hybrid multi-cloud management with GitOps
41+
image::multicloud-gitops/logical-diagram.png[Logical Architecture]
42+
43+
[id="about-technology"]
44+
== About the technology
45+
46+
The following technologies are used in this solution:
47+
48+
49+
https://www.redhat.com/en/technologies/cloud-computing/openshift/try-it[Red Hat OpenShift Platform]::
50+
An enterprise-ready Kubernetes container platform built for an open hybrid cloud strategy. It provides a consistent application platform to manage hybrid cloud, public cloud, and edge deployments. It delivers a complete application platform for both traditional and cloud-native applications, allowing them to run anywhere. OpenShift has a pre-configured, pre-installed, and self-updating monitoring stack that provides monitoring for core platform components. It also enables the use of external secret management systems, for example, HashiCorp Vault in this case, to securely add secrets into the OpenShift platform.
51+
52+
https://www.redhat.com/en/technologies/cloud-computing/openshift/try-it[Red Hat OpenShift GitOps]::
53+
A declarative application continuous delivery tool for Kubernetes based on the ArgoCD project. Application definitions, configurations, and environments are declarative and version controlled in Git. It can automatically push the desired application state into a cluster, quickly find out if the application state is in sync with the desired state, and manage applications in multi-cluster environments.
54+
55+
https://www.redhat.com/en/technologies/management/advanced-cluster-management[Red Hat Advanced Cluster Management for Kubernetes]::
56+
Controls clusters and applications from a single console, with built-in security policies. Extends the value of Red Hat OpenShift by deploying apps, managing multiple clusters, and enforcing policies across multiple clusters at scale.
57+
58+
https://www.redhat.com/en/technologies/cloud-computing/openshift/what-is-openshift-service-mesh[Red Hat Service Mesh]::
59+
Red Hat® OpenShift Service Mesh provides a uniform way to connect, manage, and observe microservices-based applications.
60+
61+
https://www.redhat.com/en/technologies/management/ansible[Red Hat Ansible Automation Platform]::
62+
Provides an enterprise framework for building and operating IT automation at scale across hybrid clouds including edge deployments. It enables users across an organization to create, share, and manage automation, from development and operations to security and network teams.
63+
64+
Hashicorp Vault::
65+
Provides a secure centralized store for dynamic infrastructure and applications across clusters, including over low-trust networks between clouds and data centers.
66+
67+
This solution also uses a variety of _observability tools_ including the Prometheus monitoring and Grafana dashboard that are integrated with OpenShift as well as components of the Observatorium meta-project which includes Thanos and the Loki API.

modules/trvlops-architecture.adoc

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
:_content-type: CONCEPT
2+
:imagesdir: ../../images
3+
4+
[id="overview-architecture"]
5+
= Overview of the architectures
6+
7+
The following figure provides a high level architectural overview of the travelops pattern.
8+
9+
.Overview schematic diagram of the complete solution
10+
image::travelops/ossm-arch-travelops.png[Physical Architecture,link="/images/travelops/ossm-arch-travelops.png"]
11+
12+
Subsequent schematic diagrams provide details on:
13+
14+
* Hybrid multi-cloud GitOps
15+
* Dynamic security management
16+
17+
[id="hybrid-multicloud-gitops"]
18+
== Hybrid Multicloud GitOps
19+
20+
The following figure provides a schematic diagram showing remaining activities associated with setting up the management hub and clusters using Red Hat Advanced Cluster Management.
21+
22+
//figure 5 originally
23+
.Schematic diagram of hybrid multi-cloud management with GitOps
24+
image::multicloud-gitops/spi-multi-cloud-gitops-sd-security.png[Schematic diagram of hybrid multi-cloud management with GitOps]
25+
26+
* Manifest and configuration are set as code template in the form of a `Kustomization` YAML file. The file describes the desired end state of the managed cluster. When complete, the `Kustomization` YAML file is pushed into the source control management repository with a version assigned to each update.
27+
* OpenShift GitOps monitors the repository and detects changes in the repository.
28+
* OpenShift GitOps creates and updates the manifest by creating Kubernetes objects on top of Red Hat Advanced Cluster Management.
29+
* Red Hat Advanced Cluster Management provisions, updates, or deletes managed clusters and configuration according to the manifest. In the manifest, you can configure what cloud provider the cluster will be on, the name of the cluster, infrastructure node details and worker node. Governance policy can also be applied as well as provision an agent in the cluster as the bridge between the control center and the managed cluster.
30+
* OpenShift GitOps continuously monitors the code repository and the status of the clusters reported back to Red Hat Advanced Cluster Management. Any configuration drift or in case of any failure, OpenShift GitOps will automatically try to remediate by applying the manifest or by displaying alerts for manual intervention.
31+
32+
[id="dynamic-security-management"]
33+
== Dynamic security management
34+
35+
The following figure provides a schematic diagram showing how secrets are handled in this solution.
36+
37+
//figure 6 originally
38+
.Schematic showing the setup and use of external secrets management
39+
image::multicloud-gitops/spi-multi-cloud-gitops-sd-security.png[Schematic showing the setup and use of external secrets management]
40+
41+
* During setup, the token to securely access HashiCorp Vault is stored in Ansible Vault. It is encrypted to protect sensitive content.
42+
43+
* Red Hat Advanced Cluster Management for Kubernetes acquires the token from Ansible Vault during install and distributes it among the clusters. As a result, you have centralized control over the managed clusters through RHACM.
44+
45+
* To allow the cluster access to the external vault, you must set up the external secret management with Helm in this study. OpenShift Gitops is used to deploy the external secret object to a managed cluster.
46+
47+
* External secret management fetches secrets from HashiCorp Vault by using the token that was generated in step 2 and constantly monitors for updates.
48+
49+
* Secrets are created in each namespace, where applications can use them.
50+
51+
//[id="slide-deck"]
52+
//== Presentation
53+
//
54+
//View a short presentation slide deck about Multicloud GitOps link:https://speakerdeck.com/rhvalidatedpatterns/multicloud-gitops[here]

modules/trvlops-demo.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
:_content-type: PROCEDURE
2+
:imagesdir: ../../../images
3+
4+
[id="demoscript-trvlops-pattern"]
5+
= TravelOps Demo Script
6+
7+
[WARNING]
8+
====
9+
TravelOps demo script is under construction. Will be posted shortly.
10+
====

0 commit comments

Comments
 (0)