This blog offers tips and tutorials for technical professionals in cloud computing, programming, and related fields. Whether you’re interested in Azure, IBM Cloud, Elastic, Golang, Hugo, IBM Cloud, Log Analytics or other technologies, you’ll find useful information and resources here.
Setting Up Proxmox With a Bridge Interface and DHCP
If you鈥檙e hosting Proxmox VE on a server with only one public IP, you can still create a private virtual network with NAT and DHCP for your VMs using a Linux bridge. This guide shows how to set up a Proxmox bridge (vmbr0) and run a DHCP server for VMs using a private subnet like 192.168.1.0/24. 馃寪 1. Configure Proxmox Bridge (vmbr0) Edit your host鈥檚 network config (Debian-style /etc/network/interfaces) and add the setup for vmbr0 at the end, along with iptables for routing....
Installing a simple kubernetes UI
Here is a way to install a minimalist kubernetes UI - Headlamp. A simple way of installing it is using yaml files, like this one: kind: Service apiVersion: v1 metadata: name: headlamp namespace: kube-system spec: ports: - port: 80 targetPort: 4466 selector: k8s-app: headlamp --- kind: Deployment apiVersion: apps/v1 metadata: name: headlamp namespace: kube-system spec: replicas: 1 selector: matchLabels: k8s-app: headlamp template: metadata: labels: k8s-app: headlamp spec: containers: - name: headlamp image: ghcr....
Integrate Salesforce as a custom tool in an AI Agents
Do you want a simple way to integrate Salesforce into your smolagents agents? There is an simple way to achieve this. First, let鈥檚 add smolagents, python-dotenv and simple-salesforce cli, in requirements.txt file: smolagents[gradio] python-dotenv simple-salesforce Next, let鈥檚 code a simple AI Agent: import os import yaml from dotenv import load_dotenv from simple_salesforce import Salesforce from smolagents import (CodeAgent, DuckDuckGoSearchTool, HfApiModel, load_tool, tool) from Gradio_UI import GradioUI load_dotenv('.env') @tool def get_insurance_policies_by_status(status: str) -> str: """A tool that fetches the number of insurance policies from Salesforce based on their status....
AWS Lambda With Magnum and FastAPI
Do you want a simple way to deploy an python FastAPI in AWS Lambda ? There is an simple way to do this with Magnum. First, let鈥檚 add FastAPI, magnum and SAM cli, in requirements.txt file: fastapi mangum aws-sam-cli Next, let鈥檚 code a simple FastAPI sample app: from fastapi import FastAPI from mangum import Mangum app = FastAPI() @app.get("/high-scores") async def high_scores(): return {"scores": [100, 200, 300]} @app.post("/insert-score") async def insert_score(data: dict): return {"status": "success", "data": data} lambda_handler = Mangum(app, lifespan="off") if __name__ == "__main__": import uvicorn uvicorn....
Add a certificate to Nginx Ingress Controller
Having installed Nginx, now it鈥檚 the time to setup the TLS for our kubernetes cluster. First we download the certificate from our certificate authority. Next we apply the next secret in our kubernetes cluster, updating the values with the base 64 encoded certificate and key. apiVersion: v1 kind: Secret metadata: name: podrunner-tls namespace: kube-system type: kubernetes.io/tls data: tls.crt: <REPLACE WITH BASE64 OF THE CERTIFICATE> tls.key: <REPLACE WITH BASE64 OF THE KEY> If you need help getting the base64 of the key and certificate, run the next commands:...