Git Product home page Git Product logo

quarkus-camel-k-demo's Introduction

Prerequisites

Minikube VM driver

Execute all follow commands for to enable access :

sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils
sudo adduser $(whoami) libvirt
sudo adduser $(whoami) kvm

Minikube permission

sudo usermod -a -G libvirt $(whoami)
newgrp libvirt

Minikube

Launch minikube with :

  • 6 CPU
  • 8GB ram
  • 30GB size
  • 1.20 Kubernetes
  • KVM2 driver
minikube start --memory=8192 --cpus=6 \
  --kubernetes-version=v1.22.3 \
  --vm-driver=kvm2 \
  --disk-size=30g \
  --addons registry \
  --addons ingress \
  --addons ingress-dns \
  --bootstrapper=kubeadm \
  --extra-config=kubelet.authentication-token-webhook=true \
  --extra-config=kubelet.authorization-mode=Webhook \
  --extra-config=scheduler.bind-address=0.0.0.0 \
  --extra-config=controller-manager.bind-address=0.0.0.0 \
  --extra-config=apiserver.enable-admission-plugins="LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook"

If minikube has stopped, you must execute again Minikube permission

Knative

Navigate to knative folder and launch knative.sh

Access Kubernetes Dashboard

Access to kubernetes dashboard from browser

minikube dashboard
kubectl --namespace kubernetes-dashboard patch svc kubernetes-dashboard -p '{"spec": {"type": "NodePort"}}'

Install Camel-K

  1. Download binary kamel-cli
curl -L https://github.com/apache/camel-k/releases/download/v1.7.0/camel-k-client-1.7.0-linux-64bit.tar.gz
tar -xf camel-k-client-1.7.0-linux-64bit.tar.gz
  1. Move kamel-cli

    sudo mv kamel /usr/local/bin

  2. Read cluster ip registry of minikube

    kubectl get service --namespace kube-system

  3. Install kamel

    kamel install --monitoring=true --force --build-publish-strategy=Buildah --registry ghcr.io/USERNAME --registry-auth-username robertonav20 --registry-auth-password PASSWORD

Apache Camel-K Documentations

Ingress DNS

Linux OS with Network Manager Network Manager can run integrated caching DNS server - dnsmasq plugin and can be configured to use separate nameservers per domain.

sudo vi /etc/NetworkManager/NetworkManager.conf

Set the field dns=dnsmasq

[main] dns=dnsmasq Also see dns= in NetworkManager.conf.

Configure dnsmasq to handle .testing and .local domain

sudo mkdir /etc/NetworkManager/dnsmasq.d/ echo "server=/testing/$(minikube ip)" > /etc/NetworkManager/dnsmasq.d/minikube.conf echo "server=/local/$(minikube ip)" > /etc/NetworkManager/dnsmasq.d/minikube.conf

Restart Network Manager

sudo systemctl restart NetworkManager.service

https://github.com/weimeilin79/camel-k-example-jaeger

quarkus-camel-k-demo's People

Contributors

robertonav20 avatar kevinsi96 avatar

Stargazers

Henrique Lucas França avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.