Skip to content

Instantly share code, notes, and snippets.

View ricardozanini's full-sized avatar
🏠
Working from home

Ricardo Zanini ricardozanini

🏠
Working from home
View GitHub Profile
@ricardozanini
ricardozanini / README.md
Created April 2, 2024 12:50
Problems with Minikube coreDNS on a Mac and Podman

How to solve Minikube coreDNS i/o timeout on a Mac

Just a note about restarting a Minikube instance running with podman on a Mac.

You might have seem a problem in the coreDNS pods being unable to resolve naming.

Try using podman driver and the CRI-O container runtime instead of Docker runtime:

minikube start --container-runtime=cri-o
@ricardozanini
ricardozanini / nexus-operator.yaml
Created August 13, 2021 18:58
Nexus Operator 0.6.0-CR1 Install
apiVersion: v1
kind: Namespace
metadata:
labels:
control-plane: controller-manager
name: nexus-operator-system
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
@ricardozanini
ricardozanini / README.md
Created April 22, 2021 20:37
Knative Broker doesn't support cloudevents+json content-type?

Steps to reproduce

  1. Apply the resources.yaml file kubectl apply -f resources.yaml -n <namespace>
  2. This will deploy a default InMemory Broker, a Trigger filtering by source: /from/ping and a custom event display, so we can see the content-type header.
  3. Run the following command from your terminal to create a temporary container to run curl:
kubectl run curl --image=radial/busyboxplus:curl -i --tty --rm
  1. In a new terminal window, run:
@ricardozanini
ricardozanini / fraud-handling.sw.yaml
Created April 15, 2021 18:20
Kogito Serverless Workflow Order Processing Example
id: fraudhandling
name: Fraud Handling
start: FraudHandling
version: "1.0"
events:
- kind: produced
name: FraudEvaluation
type: orders.fraudEvaluation
source: fraudEvaluation
states:
@ricardozanini
ricardozanini / fahrenheit-to-celsius.sw.json
Last active December 14, 2020 21:09
Fahrenheit to Celsius Conversion Workflow
{
"id": "fahrenheit_to_celsius",
"name": "Fahrenheit to Celsius Conversion Flow",
"version": "v1.0",
"functions": [
{
"name": "multiplication",
"resource": "/",
"type": "rest",
"metadata": {
@ricardozanini
ricardozanini / patient-onboarding-openapi.yaml
Last active December 2, 2020 19:09
patient-onboarding-openapi.yaml
openapi: 3.0.3
info:
title: Generated API
version: "1.0"
paths:
/:
post:
operationId: cloudEventListener
requestBody:
content:
$ kubectl get nexus –n nexus
NAME EXPOSE AS UPDATE DISABLED STATUS REASON MAVEN PUBLIC URL
nexus3 Route OK http://nexus3.nexus/repository/maven-public/
$ oc get routes –n nexus
NAME HOST/PORT PATH SERVICES PORT TERMINATION WILDCARD
nexus3 nexus3-nexus.apps-crc.testing nexus3 http None
networking:
expose: true
exposeAs: "Route"
# other fields omitted for brevity
networking:
expose: true
exposeAs: "Ingress"
host: "nexus.example.com"