Create Redhat Openshift -Shared Kubernetes Cluster - Free 30 Day Access
Tags: kubernetes, openshift, beginners, tutorial
Published: 2024-01-15 04:20:52


What you'll do. 
1. Create RedHat Account.
2. Open Developer Sandbox.
3. Create Free 30-Day Shared OpenShift Kubernetes Cluster. 

## 1. Create Redhat Account.

- Go to [Redhat](https://developers.redhat.com/developer-sandbox) and register by giving your information.
- Provide Username, Email Id, Password, 
- Verify Email - click on link in your email inbox to verify. 


## 2. Open Developer Sandbox
- Click on [Start your Sandbox for Free] (https://developers.redhat.com/developer-sandbox) 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5vyi387xvh1qa5a3f68e.png)

- Land on Page and click on [Launch Red Hat OpenShift](https://console.redhat.com/openshift/sandbox) 
 ![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hr1yinmztqh1zsonwfbi.png)

### - Red Hat Developer Sandbox Has 3 services

1. Red Hat OpenShift: 
> A cloud-native application platform with everything you need to manage your development life cycle securely, including standardized workflows, support for multiple environments, continuous integration, and release management.

2. Red Hat Dev Spaces
> A collaborative Kubernetes-native solution for rapid application development that delivers consistent developer environments on Red Hat OpenShift to allow anyone with a browser to contribute code in under two minutes.

3. Red Hat Data Science
> Red Hat OpenShift Data Science is a part of the Red Hat OpenShift AI portfolio and provides tools across the AI/ML lifecycle.

- Click on Option 1: [Red Hat OpenShift](https://oauth-openshift.apps.sandbox-m3.1530.p1.openshiftapps.com/oauth/authorize?client_id=console&redirect_uri=https%3A%2F%2Fconsole-openshift-console.apps.sandbox-m3.1530.p1.openshiftapps.com%2Fauth%2Fcallback&response_type=code&scope=user%3Afull&state=8a7615b6)
- click on Login with DevSandbox
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f6ha4u2ni0mliz1ikqj0.png)
- Developer Prespective 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mimy6jg7a75i7jcw3c5h.png)
- Copy Login Command - Go to Top right corner of username dropdown and select option

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rbsfdef08hfvx4a9uun9.png)
- [Download](https://access.redhat.com/downloads/content/290/ver=4.14/rhel---9/4.14.8/x86_64/product-software) OpenShift CLI (oc) 
- Login via Command

- Login via this command: `oc login --token=sha256~123-elkjadsg-325o8-98739487 --server=https://api.sandbox-m3.1530.p1.openshiftapps.com:6443
`
```
$ oc login --token=sha256~123-elkjadsg-325o8-98739487 --server=https://api.sandbox-m3.1530.p1.openshiftapps.com:6443
Logged into "https://api.sandbox-m3.1530.p1.openshiftapps.com:6443" as "jasper475" using the token provided.

You have one project on this server: "jasper475-dev"

Using project "jasper475-dev".
```
- use `Kubectl` to interact with OpenShift Cluster. 

## 3. Red Hat OpenShift Console
- Pods

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hmb9ljp429tbwxe6mfqc.png)
- Deployments

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1bm2uuy91k53g2a1wswg.png)

- Replica Sets

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mf9aho0wakt2prany3lr.png)
- Services

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tg6j3c5mkbcjf8n37jxc.png)
- Routes

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mxx4fngbcu6grf36yddm.png)
- Ingresses

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ax645gi9t6chllj6siw2.png)


**Credits:-**
Thanks to [Abhishek Veeramalla](https://www.youtube.com/@AbhishekVeeramalla)