- minikube at https://minikube.sigs.k8s.io/docs/start/
- kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/
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
sudo usermod -a -G libvirt $(whoami)
newgrp libvirt
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
Navigate to knative folder and launch knative.sh
Access to kubernetes dashboard from browser
minikube dashboard
kubectl --namespace kubernetes-dashboard patch svc kubernetes-dashboard -p '{"spec": {"type": "NodePort"}}'
- 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
-
Move kamel-cli
sudo mv kamel /usr/local/bin
-
Read cluster ip registry of minikube
kubectl get service --namespace kube-system
-
Install kamel
kamel install --monitoring=true --force --build-publish-strategy=Buildah --registry ghcr.io/USERNAME --registry-auth-username robertonav20 --registry-auth-password PASSWORD
- Install guide : https://camel.apache.org/camel-k/next/installation/installation.html.
- Component : https://camel.apache.org/components/3.13.x/index.html
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