Skip to content

Instantly share code, notes, and snippets.

View hguerrero's full-sized avatar

Hugo Guerrero hguerrero

View GitHub Profile
@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
apiVersion: microcks.github.io/v1alpha1
kind: MicrocksInstall
metadata:
name: microcks
spec:
# Add fields here
name: microcks
version: "latest"
microcks:
replicas: 1
@hguerrero
hguerrero / readme.md
Created October 29, 2021 15:52 — forked from guillaumerose/readme.md
Microshift with podman machine

5 minutes to OpenShift on a Mac with podman machine and microshift.

Steps:

  1. brew install podman
  2. podman machine init
  3. podman machine start
  4. podman machine ssh

(in the ssh session)

@hguerrero
hguerrero / install.yaml
Last active September 28, 2021 23:11
apicurio studio k8s distro
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: apicuriodata
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
@hguerrero
hguerrero / kafka-ephemeral-single.yaml
Created July 21, 2021 20:57
Single node Kafka cluster
apiVersion: kafka.strimzi.io/v1beta2
kind: Kafka
metadata:
name: broker
spec:
kafka:
version: 2.8.0
replicas: 1
listeners:
- name: plain
@hguerrero
hguerrero / kind-with-local-registry-and-ingress.sh
Last active July 19, 2021 22:03 — forked from orpiske/kind-with-local-registry.sh
Kind with local registry (with registry address fixes)
#!/bin/sh
set -o errexit
####
## Kind cluster with local registry (fixed script from the upstream kind). See NOTE comments below for the changed items
# create registry container unless it already exists
reg_name='kind-registry'
reg_port='5000'
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)"
@hguerrero
hguerrero / infinispan-operator.yaml
Created June 6, 2021 02:31
Infinispan operator install on infinispan namespace
#####################################################################
### THIS IS AUTOGENERATED INFINISPAN OPERATOR INSTALL BUNDLE FILE ###
### PLEASE DON'T EDIT THIS FILE ###
#####################################################################
apiVersion: v1
kind: ServiceAccount
metadata:
name: infinispan-operator
labels:
apiVersion: apps/v1
kind: Deployment
metadata:
name: tutorial-web-app-operator
spec:
replicas: 1
selector:
matchLabels:
name: tutorial-web-app-operator
template: