Skip to content

Instantly share code, notes, and snippets.

View hguerrero's full-sized avatar

Hugo Guerrero hguerrero

View GitHub Profile
@hguerrero
hguerrero / helm.yaml
Created July 3, 2024 23:46
Developer Hub + Microcks Provider (1.1.x)
global:
auth:
backend:
enabled: true
clusterRouterBase: ---->[CHANGE ME]<-------
dynamic:
plugins:
- package: "@microcks/microcks-backstage-provider@0.0.5"
integrity: sha512-/Pre7TmeJkVgPrdfTiG0wcYpZ1KM14/AE8kSwUfVGtae4k4/lqaUfMnexnp75ujXHItm+iuSWvCRNhOvEw3PuA==
pluginConfig:
@hguerrero
hguerrero / microcks-pvc.yaml
Created May 31, 2024 13:43
Microcks Deployments K8s
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: microcks-pvc
labels:
app: microcks
spec:
resources:
requests:
@hguerrero
hguerrero / usersignedup.yaml
Last active May 29, 2024 08:33
asyncapi v3 example
asyncapi: '3.0.0'
id: 'urn:io.microcks.example.user-signedup'
info:
title: User signed-up API
version: 0.1.1
description: Sample AsyncAPI for user signedup events
defaultContentType: application/json
servers:
production:
host: localhost:9092
@hguerrero
hguerrero / gist:dbd8aaefede69690613dee43b251813d
Last active July 2, 2024 17:23
Developer Hub - Microcks config
global:
auth:
backend:
enabled: true
dynamic:
plugins:
- package: "@microcks/microcks-backstage-provider@0.0.5"
integrity: sha512-/Pre7TmeJkVgPrdfTiG0wcYpZ1KM14/AE8kSwUfVGtae4k4/lqaUfMnexnp75ujXHItm+iuSWvCRNhOvEw3PuA==
pluginConfig:
catalog:
@hguerrero
hguerrero / gist:0cf57e2b2179c0608e7968dc66a75798
Last active March 11, 2024 17:48
Service Interconnect in AKS
az login
az account set --subscription <YOUR_SUBSCRIPTION>
export KUBECONFIG=~/tmp/kube-azure
az aks get-credentials --resource-group k8s --name skupper
kubectl create namespace skupper
kubectl create secret docker-registry rh--pull-secret --docker-server registry.redhat.io --docker-username <PULL_SECRET_USER> --docker-password <PULL_SECRET_PASSWORD>
kubectl create sa skupper-service-controller
kubectl create sa skupper-router
kubectl create sa skupper-prometheus
kubectl patch serviceaccounts skupper-prometheus -p '{"imagePullSecrets":[{"name":"rh--pull-secret"}]}'
@hguerrero
hguerrero / kafka-ui-deployment.yaml
Last active October 20, 2023 17:41
Kafka on Developer Sandbox
kind: Deployment
apiVersion: apps/v1
metadata:
annotations:
app.openshift.io/connects-to: '[{"apiVersion":"apps/v1","kind":"Deployment","name":"zkless-kafka"}]'
app.openshift.io/route-disabled: 'false'
name: kafka-ui
labels:
app: kafka-ui
app.kubernetes.io/component: kafka-ui
- route:
id: route-a9b9
from:
uri: direct
id: from-a59c
parameters:
name: target
steps:
- log:
message: ${body}
@hguerrero
hguerrero / Cat.java
Created July 3, 2023 16:58
Camel JBang JS DSL + Java Classes
public class Cat {
private final String name;
public Cat(String name) {
this.name = name;
}
public String getName() {
return name;
---
apiVersion: v1
kind: Namespace
metadata:
name: console
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: console-serviceaccount
@hguerrero
hguerrero / README.md
Created December 7, 2021 17:41
Use external Kafka for microks

Running Microcks with Kafka cluster managed by Strimzi

Setup

  1. Start minikube (I'm using mac so driver is hyperkit
minikube start --cpus 4 --memory 8192 --driver hyperkit
  1. Enable ingress addon