Skip to content

Instantly share code, notes, and snippets.

View rafaeltuelho's full-sized avatar

Rafael Torres Coelho Soares (aka Tuelho) rafaeltuelho

View GitHub Profile
@rafaeltuelho
rafaeltuelho / pymongo-fastapi-crud-devworkspace-cr.yaml
Last active October 28, 2024 21:59
Sample Python3 + MongoDB DevWorkspace CR which creates a Openshift Dev Spaces workspace
apiVersion: workspace.devfile.io/v1alpha2
kind: DevWorkspace
metadata:
annotations:
che.eclipse.org/che-editor: che-incubator/che-code/latest
name: pymongo-fastapi-crud
namespace: user1-devspaces
finalizers:
- rbac.controller.devfile.io
spec:
@rafaeltuelho
rafaeltuelho / gitlab-on-openshift-install.md
Last active December 5, 2025 14:28
Installing Gitlab on Openshift 4.x using Helm Chart
  • Install Cert Manager
    • using the Operator Hub

cert-manager-operator

  • using helm chart
helm repo add jetstack https://charts.jetstack.io --force-update

helm install \
apiVersion: org.eclipse.che/v2
kind: CheCluster
metadata:
  name: devspaces
  namespace: openshift-devspaces
spec:
  devEnvironments:
    startTimeoutSeconds: 600 #timeout for the Workspace creation
    containerBuildConfiguration:
@rafaeltuelho
rafaeltuelho / devspaces-github-oauth-setup.sh
Last active August 21, 2023 22:09
Openshift DevSapces with Github OAuth integration Script.
#!/bin/bash
#for DevSpaces
#Go to https://github.com/settings/applications/new
#Enter the 'Red Hat DevSpaces Workshop' as the Application Name
#Enter the Homepage URL as 'https://devspaces.apps.YOUR-cluster-domain/'
#Enter the Authorization callback URL as 'https://devspaces.apps.YOUR-cluster-domain/api/oauth/callback'
#Remember to copy the Client Id and the Client Secret values
DEV_SPACES_NAMESPACE='openshift-devspaces'
- name: Tests playbook
hosts: localhost
gather_facts: no
vars:
num_users: 10
infra_template_object:
- name: infra
autoscale: false
total_replicas: 3
total_replicas_min: 3
@rafaeltuelho
rafaeltuelho / hyperfoil-openshift-deployment.yaml
Last active May 2, 2023 19:32
Hyperfoil Openshift deployment Manifests
apiVersion: v1
kind: List
items:
- apiVersion: v1
kind: Secret
metadata:
name: hyperfoil-auth
data:
password: b3BlbnNoaWZ0
type: Opaque
@rafaeltuelho
rafaeltuelho / ocp-htpasswd-new-users.yml
Created April 19, 2023 23:40
Simple play to add new users to an exisiting htpasswd based provider on Openshift
- name: Add new users playbook
hosts: localhost
gather_facts: false
vars:
users:
- user1
- user2
- user3
- user4
- user5
@rafaeltuelho
rafaeltuelho / artemis-broker-amqp.yaml
Created February 17, 2023 20:33
Artemis Broker for AMQP Custom Resource using artemiscloud.io operator
apiVersion: broker.amq.io/v1beta1
kind: ActiveMQArtemis
metadata:
name: artemis-broker-amqp
spec:
adminUser: admin
adminPassword: $secret$
acceptors:
- name: amqp
expose: true
@rafaeltuelho
rafaeltuelho / knative-minikube-components-setup.sh
Created January 25, 2023 22:56
Script to install/configure all the components required for the Red Hat Developers knative Tutorial https://redhat-developer-demos.github.io/knative-tutorial
#!/bin/sh
export TUTORIAL_HOME=/Users/rsoares/workshops/Knative/knative-tutorial
DNS_DOMAIN=minikube #nip.io
KNATIVE_EVENTING_KAFKA_VERSION=v1.8.1
KNATIVE_SERVING_VERSION=v1.8.3
KNATIVE_EVENTING_VERSION=v1.8.5
MINIKUBE_PROFILE=knativetutorial
KOURIER_VERSION=v1.8.1
STRIMZI_OP_VERSION=0.32.0
@rafaeltuelho
rafaeltuelho / argocd-fundamentals-notes.md
Created December 20, 2022 23:32
Notes from Codefresh ArgoCD Fundamentals

Simple Sample App

argocd app create demo \
--project default \
--sync-policy auto \
--repo https://github.com/codefresh-contrib/gitops-certification-examples \
--path ./blue-green-app \
--dest-namespace default \
--dest-server https://kubernetes.default.svc