Skip to content

Instantly share code, notes, and snippets.

View rafaeltuelho's full-sized avatar
🎯
Focusing

Rafael T. C. Soares (A.K.A Tuelho) rafaeltuelho

🎯
Focusing
  • Red Hat Inc.
  • Frisco, TX, USA
  • 18:05 (UTC -05:00)
View GitHub Profile
@rafaeltuelho
rafaeltuelho / rhdh-eap-setup.md
Last active October 11, 2023 15:06
Red Hat Developer Hub (EAP) Setup

Red Hat Developer Hub (Early Access Program) Setup instructions

Openshift Cluster Checklist

@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
@rafaeltuelho
rafaeltuelho / rhoas-kafka-service-bindings.md
Created November 14, 2022 14:53
RHOAS CLI commands to manage Kafka and Service Bindings resources on Openshift

Module 5.

Install rhoas on MacOS with zsh shell

curl -o- https://raw.githubusercontent.com/redhat-developer/app-services-cli/main/scripts/install.sh | bash
#make sure your $HOME/bin is included in your $PATH

#open a new terminal
rhoas --version
@rafaeltuelho
rafaeltuelho / 3scale-toolbox-cli-api.md
Last active November 16, 2022 17:15
3Scale toolbox CLI and API commands

Create a Service Registry instance

Install rhoas on MacOS with zsh shell

curl -o- https://raw.githubusercontent.com/redhat-developer/app-services-cli/main/scripts/install.sh | bash
#make sure your $HOME/bin is included in your $PATH

#open a new terminal
rhoas --version