https://github.com/pulp/pulp-ocp-template
https://github.com/pulp/pulp-ocp-template
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pulp/pulp-ocp-template
- Owner: pulp
- Created: 2022-11-29T19:59:53.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-17T16:16:12.000Z (almost 3 years ago)
- Last Synced: 2025-06-19T03:40:32.078Z (9 months ago)
- Size: 617 KB
- Stars: 2
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ABOUT
This is a template to quick test or try [Pulp](https://pulpproject.org/).
> **WARNING**: Any data stored will be lost upon pod destruction. Only use this template for testing.
# PRE-REQS
## "Registering" the template
To make this template available we first need to "register" it in `openshift` namespace:
```
$ oc apply -f https://raw.githubusercontent.com/git-hyagi/pulp-ocp-template/main/pulp-template.yaml
```
This command will create a new template called `pulp-example`.
> **note**: make sure that you have permissions to create templates in `openshift` namespace
# INSTALLING PULP THROUGH WEB CONSOLE
* In "*Developer*" view, select "*+Add*" then click on "*All Services*"

* Now search for "*pulp*" template and select it

* A new panel will open on the right side of the screen. Click "*Instatiate Template*"

* The last step is to define in which namespace **Pulp** should be provisioned and
the domain to create the routes

# INSTALLING PULP THROUGH COMMAND LINE
* [optional] Create a new namespace to run pulp
```
$ oc new-project test-pulp
```
* Deploy pulp
```
$ oc new-app pulp-example
```
# CHECKING INSTALLATION
## Through command line
* verify if all pods are in a running state
```
$ oc get pods
NAME READY STATUS RESTARTS AGE
example-pulp-api-75c8dcdc55-mfcpt 1/1 Running 0 4m48s
example-pulp-content-5ffd9d9789-xvvlb 1/1 Running 0 4m48s
example-pulp-database-0 1/1 Running 0 4m48s
example-pulp-worker-58d666d749-d6glq 1/1 Running 0 4m48s
```
* check the /status endpoint
```
$ oc exec deployment/example-pulp-api -- curl -s localhost:24817/pulp/api/v3/status/|jq
```
## Through web console
* from "*Topology*" view all resources (`api`,`content`,`worker`,`database`) should be surrounded with a "dark blue" circle