Creating a validated pattern
The high level steps to create a validated pattern are as follows:
Identify the business case you want to address.
Use the Multicloud GitOps as a starting point by using the template to create a new Git repository in your local GitHub account.
Identify the technology components that you need.
Ensure that the configuration of those components, and the integration points are handled in the pattern.
Best Practices for creating Validated Patterns
Following these best practices, to create robust, scalable, and maintainable validated patterns that are easy to deploy and manage across various environments.
Start with OpenShift Multicloud GitOps
When creating a validated pattern, begin with OpenShift Multicloud GitOps as your foundation. This is the most fundamental pattern and should serve as your base.
Centralize all manifests in a Git Repository
Ensure that all pattern manifests, configuration files, and desired state definitions are stored in a Git repository. This provides a single source of truth and facilitates the use of GitOps for deployment.
Include all necessary deployment resources
The Git repository should include everything required to deploy the pattern, including manifests, configuration, and any additional resources. Avoid relying on manual commands post-deployment; instead, incorporate these into the manifests.
Adopt a clear separation of concerns
Maintain a clear separation between configuration files and development source code. This helps manage complexity and ensures that each aspect of the pattern is independently maintainable.
Leverage GitOps for deployment consistency
Use GitOps to push the desired state from your Git repository to the Kubernetes cluster. This approach ensures consistency across multiple deployments and clusters.
Use Helm charts for grouping manifests
If your deployment process involves multiple
oc apply
commands, group these manifests into a Helm chart. This simplifies deployment and integrates well with the pattern framework, which can apply the chart automatically.
Integrate existing automation scripts
Review existing Ansible scripts or shell scripts that deploy resources. Where possible, convert these scripts into manifests or use the pattern’s framework to apply them imperatively. Avoid adding new scripts, as they often introduce technical debt.
Ensure comprehensive deployment capabilities
The pattern should be capable of deploying all necessary resources to support the applications it includes. This means that once the pattern is applied, no additional manual steps should be required.
Plan for cluster sizing and storage needs
Before deploying a pattern, review its cluster sizing and storage requirements. For instance, patterns using Red Hat OpenShift Data Foundation (ODF) may require substantial storage resources. Consult pattern documentation for accurate sizing.
Customize and fork patterns appropriately
When extending a pattern or deploying it at a customer site, create a personal or organizational fork. This allows for experimentation and customization while facilitating potential contributions back to the upstream pattern repository.
Consider managed cloud services for deployment
For ease of deployment, especially in public cloud environments, consider using managed OpenShift services like Red Hat OpenShift Service on AWS (ROSA) or Microsoft Azure Red Hat® OpenShift (ARO). These services simplify the setup and management of OpenShift clusters.
Manage Multi-Cluster and Multi-Cloud deployments
Use the patterns framework to centrally manage multiple clusters and workloads across public and private clouds. Incorporate tools like Red Hat Advanced Cluster Management (RHACM) and Red Hat OpenShift GitOps (ArgoCD) to streamline operations.
Secure secrets across deployments
Utilize tools such as Hashicorp Vault to manage secrets securely across multi-cloud deployments, ensuring sensitive data is protected.