Skip to content

Instantly share code, notes, and snippets.

View rafaeltuelho's full-sized avatar

Rafael Torres Coelho Soares (aka Tuelho) rafaeltuelho

  • Red Hat Inc.
  • Frisco, TX, USA
  • 11:31 (UTC -05:00)
View GitHub Profile
- 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
@rafaeltuelho
rafaeltuelho / openshift-devspaces-32-checluster-crd.yaml
Created November 7, 2022 18:30
Openshift DevSpaces 3.2 CRD sample
apiVersion: org.eclipse.che/v2
kind: CheCluster
metadata:
name: devspaces
namespace: ocp-devspaces
spec:
components:
cheServer:
debug: false
logLevel: INFO
@rafaeltuelho
rafaeltuelho / podman-tips.md
Last active September 21, 2023 07:59
Notes to run podman

When on MacOS

  • add a new alias to your shell (bash or zsh) to create a temporary Unix Domain Socket for podman

you need jq installed confirm the path for podman.sock with podman system connection list --format=json

podman-sock='rm -f /tmp/podman.sock && ssh -i ~/.ssh/podman-machine -p $(podman system connection list --format=json | jq ''.[0].URI'' | sed -E ''s|.+://.+@.+:([[:digit:]]+)/.+|\1|'') -L''/tmp/podman.sock:/run/user/501/podman/podman.sock'' -N core@localhost'
  • set the following env vars to configure Test Containers for podman