Skip to content

Instantly share code, notes, and snippets.

View hguerrero's full-sized avatar

Hugo Guerrero hguerrero

View GitHub Profile
@hguerrero
hguerrero / kong.yml
Created March 13, 2025 15:47
Kong tech enablement for 3.10 demos config
_format_version: "3.0"
_transform: true
services:
- name: request_callout
url: https://echo-api.3scale.net/
routes:
- name: request_callout
hosts:
- callout.dev
@hguerrero
hguerrero / llm-deployment.yaml
Created February 14, 2025 19:01
qwen2.5b deployment
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: llm-storage
spec:
accessModes:
- ReadWriteOnce
volumeMode: Filesystem
resources:
requests:
@hguerrero
hguerrero / create.sh
Created February 14, 2025 01:12
kind extraPortMappings
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
@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/[email protected]"
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/[email protected]"
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}