Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuyatinnefeld/redhat-openshift
https://github.com/yuyatinnefeld/redhat-openshift
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yuyatinnefeld/redhat-openshift
- Owner: yuyatinnefeld
- Created: 2024-05-03T10:27:23.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-17T08:24:25.000Z (8 months ago)
- Last Synced: 2024-05-18T02:55:39.075Z (8 months ago)
- Language: Shell
- Size: 31.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Learning Azure Redhat Openshift (ARO)
## About
This project provides a structured approach to getting familiar with Azure Red Hat OpenShift (ARO) through hands-on steps and explanations. It emphasizes the usage of the OpenShift CLI (oc) for managing Kubernetes and OpenShift clusters, highlighting its advantages over kubectl and providing clear instructions for installation and usage. The project walks users through essential steps such as creating an ARO cluster, connecting to it, deploying Kubernetes resources via the OpenShift UI, and integrating HashiCorp Vault. Additionally, it offers scripts for cleaning up resources after experimentation. Overall, it serves as a practical guide for learning ARO deployment and management.## OpenShift CLI (oc)
[Docs](cli-co/README.md)### Install oc
docker run -it --rm yuyatinnefeld/openshift_cli /bin/sh### Use oc
oc version
oc login [API_URL]
oc project
oc status
oc get deploymentAPI_URL: Openshift Console > Menu > Copy Login command
Detailed Info: [OpenShift Docs](https://docs.openshift.com/container-platform/4.11/cli_reference/openshift_cli/getting-started-cli.html)
## SCC vs OPA
Security Context Constraints (SCC) and Open Policy Agent (OPA) are both mechanisms used to enforce security policies in OpenShift, but they serve different purposes and operate at different levels of the cluster.- SCCs are ideal for straightforward, security-focused constraints within OpenShift, while OPA provides a flexible, powerful framework for implementing a wide variety of policies across diverse environments.
## Create Azure Redhat Openshift Cluster
1. Create a Cluster
```bash
./create-aro-cluster.sh
```2. Connect to the ARO Cluster
```bash
./connect-aro-cluster.sh
``````bash
open https://console-openshift-console.apps.vwtwulbg.westus2.aroapp.io/
```3. Deploy a Simple App in Openshift UI
```bash
k8s/deployment.yaml
k8s/service.yaml
```4. Build Image
4. Clean Up
```bash
./deelte-aro-cluster.sh
```