Skip to content

Instantly share code, notes, and snippets.

OCP Environment
Start with the OCP 4.8 workshop deployer on RHPDS.
ssh to the bastion using the SSH password provided in the email.
sudo as root user:
sudo -i
Go to RHPDS catalog - https://rhpds.redhat.com/catalog/explorer
Under Openshift Workshop Order "OpenShift 4.8 Workshop"
Confirm the warning
Set the size to Large
Set the users to 15 so that it provisions an extra worker node for our storage
Select training as the Purpose
Submit - this can take about 30 minutes to finish, and you will get an email
If the provision fails, simply repeat the previous steps
apiVersion: maistra.io/v1
kind: ServiceMeshControlPlane
metadata:
name: full-install
spec:
istio:
global:
disablePolicyChecks: false
proxy:
resources:
apiVersion: maistra.io/v1
kind: ServiceMeshControlPlane
metadata:
name: user1-istio-system
# Documentation: https://servicemesh--ocpdocs.netlify.com/openshift-enterprise/latest/service_mesh/service_mesh_install/installing-ossm.html#ossm-cr-parameters_installing-ossm
spec:
istio:
apiVersion: apps.3scale.net/v1alpha1
kind: APIManager
metadata:
name: "3scale-amp"
namespace: "{{ threescale_project }}"
spec:
wildcardDomain: "{{ route_subdomain }}"
resourceRequirementsEnabled: false
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
# This name uniquely identifies the PVC. Will be used in deployment below.
name: system-storage
namespace: "{{ threescale_project }}"
labels:
app: 3scale-api-management
threescale_component: system
spec:
Early Notes on Running 3scale 2.7 on OCP 4.2
Background
The 3scale course has been delivered so far on OCP 3.x even though 3scale has been supported on OCP 4 since 3scale 2.5.
Primarily, this is due to following issues:
The 3scale template is not supported to deploy AMP on OCP. Only the 3scale operator is supported. Hence, the existing 3scale Install Ansible Roles cannot be used for deploying to OCP 4.
On OCP 3.x, Gluster FS is available for providing RWX storage necessary for 3scale. On OCP 4.x, no RWx storage is available on OpenTLC or RHPDS.
{
"policies_config": [
{
"name": "apicast",
"version": "builtin",
"configuration": {},
"enabled": true
}
]
}
$ oc logs -f bc/www
Cloning "https://github.com/jbossdemocentral/3scaleworkshop-wwwpage" ...
Commit: 6865c5da7079ec1d0d870af67c051bb5732a1b9b (externalize client_id)
Author: Hugo Guerrero <hguerrer@redhat.com>
Date: Fri Aug 3 11:22:08 2018 -0500
Caching blobs under "/var/cache/blobs".
Getting image source signatures
Copying blob sha256:35ad9b4fba1fa6b00a6f266303348dc0cf9a7c341616e800c2738030c0f64167
Copying blob sha256:5e2ae0c76e83847010202c40d0c7ebac953a6c7871efdea7602b41507b3d11f5
Copying blob sha256:c4d668e229cd131e0a8e4f8218dca628d9cf9697572875e355fe4b247b6aa9f0
kind: Template
apiVersion: v1
metadata:
annotations:
description: The Gogs git server (https://gogs.io/)
tags: instant-app,gogs,go,golang
name: gogs
objects:
- kind: ServiceAccount
apiVersion: v1