206 lines
4.7 KiB
Markdown
206 lines
4.7 KiB
Markdown
|
|
---
|
||
|
|
theme: seriph
|
||
|
|
highlighter: prism
|
||
|
|
lineNumbers: true
|
||
|
|
transition: slide-left
|
||
|
|
title: Cloud Native Provisioning - Rust Ecosystem
|
||
|
|
drawings:
|
||
|
|
enabled: true
|
||
|
|
persist: false
|
||
|
|
---
|
||
|
|
|
||
|
|
# Cloud Native Provisioning
|
||
|
|
|
||
|
|
## Nushell + KCL + Rust Ecosystem
|
||
|
|
|
||
|
|
Infrastructure as Code con tipos, AI, y herramientas Rust
|
||
|
|
|
||
|
|
<div class="pt-12">
|
||
|
|
<span @click="$slidev.nav.next" class="px-2 py-1 rounded cursor-pointer" hover="bg-white bg-opacity-10">
|
||
|
|
Press Space for next page <carbon:arrow-right class="inline"/>
|
||
|
|
</span>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# ¿Quién soy?
|
||
|
|
|
||
|
|
<div class="flex gap-8 items-center">
|
||
|
|
<div class="flex-1">
|
||
|
|
<h2>Jesús Pérez Lorenzo</h2>
|
||
|
|
<ul>
|
||
|
|
<li>🦀 Senior Rust Developer</li>
|
||
|
|
<li>☁️ Cloud Native Architect</li>
|
||
|
|
<li>🏗️ Infrastructure as Code enthusiast</li>
|
||
|
|
<li>🚀 Open Source contributor</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# El Problema
|
||
|
|
|
||
|
|
<div class="grid grid-cols-2 gap-8">
|
||
|
|
<div>
|
||
|
|
<h2>🔧 Herramientas Actuales</h2>
|
||
|
|
<ul>
|
||
|
|
<li>❌ <strong>Terraform</strong>: HCL sin tipos fuertes</li>
|
||
|
|
<li>❌ <strong>Ansible</strong>: YAML frágil</li>
|
||
|
|
<li>❌ <strong>CloudFormation</strong>: JSON/YAML verboso</li>
|
||
|
|
<li>❌ <strong>Pulumi</strong>: Mejor, pero limitado</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div>
|
||
|
|
<h2>🚨 Problemas Reales</h2>
|
||
|
|
<ul>
|
||
|
|
<li>Errores en runtime, no en compile time</li>
|
||
|
|
<li>Debugging complejo</li>
|
||
|
|
<li>Reutilización limitada</li>
|
||
|
|
<li>Sin integración con AI</li>
|
||
|
|
<li>Configuración como texto plano</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# Nuestra Filosofía
|
||
|
|
|
||
|
|
<div class="grid grid-cols-3 gap-6">
|
||
|
|
<div class="text-center">
|
||
|
|
<div class="text-6xl mb-4">🛡️</div>
|
||
|
|
<h3>Type Safety</h3>
|
||
|
|
<p>Errores capturados en compile time, no en production</p>
|
||
|
|
</div>
|
||
|
|
<div class="text-center">
|
||
|
|
<div class="text-6xl mb-4">🧩</div>
|
||
|
|
<h3>Composability</h3>
|
||
|
|
<p>Componentes reutilizables que se combinan naturalmente</p>
|
||
|
|
</div>
|
||
|
|
<div class="text-center">
|
||
|
|
<div class="text-6xl mb-4">🤖</div>
|
||
|
|
<h3>AI-First</h3>
|
||
|
|
<p>Lenguaje natural como interfaz principal</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# Stack Tecnológico
|
||
|
|
|
||
|
|
<div class="grid grid-cols-2 gap-8">
|
||
|
|
<div>
|
||
|
|
<h2>🐚 Nushell</h2>
|
||
|
|
<ul>
|
||
|
|
<li>Shell estructurado con tipos</li>
|
||
|
|
<li>Pipelines de datos, no texto</li>
|
||
|
|
<li>JSON/YAML nativo</li>
|
||
|
|
<li>Better error handling</li>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<h2 class="mt-6">⚙️ KCL</h2>
|
||
|
|
<ul>
|
||
|
|
<li>Configuration Language con schemas</li>
|
||
|
|
<li>Validación en compile time</li>
|
||
|
|
<li>Composición y herencia</li>
|
||
|
|
<li>IDE support completo</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div>
|
||
|
|
<h2>🦀 Herramientas Rust</h2>
|
||
|
|
<ul>
|
||
|
|
<li><strong>youki</strong>: Container runtime OCI</li>
|
||
|
|
<li><strong>Cosmian KMS</strong>: Key management</li>
|
||
|
|
<li><strong>Polkadot/Substrate</strong>: Blockchain infra</li>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<h2 class="mt-6">🤖 MCP Integration</h2>
|
||
|
|
<ul>
|
||
|
|
<li>Model Context Protocol</li>
|
||
|
|
<li>Claude Desktop integration</li>
|
||
|
|
<li>Natural language operations</li>
|
||
|
|
<li>AI-assisted troubleshooting</li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# Demo 1: Provisioning Básico
|
||
|
|
|
||
|
|
```rust
|
||
|
|
bash
|
||
|
|
# Crear nueva infraestructura
|
||
|
|
provisioning generate infra --new rust-meetup-demo
|
||
|
|
|
||
|
|
# Ver la configuración generada
|
||
|
|
provisioning show settings --infra rust-meetup-demo --out json
|
||
|
|
|
||
|
|
# Crear servidores (modo check primero)
|
||
|
|
provisioning server create --infra rust-meetup-demo --check
|
||
|
|
|
||
|
|
# Crear servidores reales
|
||
|
|
provisioning server create --infra rust-meetup-demo
|
||
|
|
```
|
||
|
|
|
||
|
|
<div class="mt-6 p-4 bg-blue-100 rounded-lg">
|
||
|
|
✨ <strong>Ventaja</strong>: Tipos estructurados, mejor debugging, composición natural
|
||
|
|
</div>
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# Demo 2: MCP + AI Integration
|
||
|
|
|
||
|
|
<div class="grid grid-cols-2 gap-8">
|
||
|
|
<div>
|
||
|
|
<h3>Claude Desktop</h3>
|
||
|
|
<div class="bg-gray-100 p-4 rounded-lg text-sm">
|
||
|
|
<p><strong>Usuario:</strong> "Crea 3 servidores AWS con 4 CPU cada uno para un cluster Kubernetes de desarrollo"</p>
|
||
|
|
<br>
|
||
|
|
<p><strong>Claude:</strong> "Voy a crear esa infraestructura para ti..."</p>
|
||
|
|
<br>
|
||
|
|
<p class="text-green-600">✅ Servidores creados: k8s-master-01, k8s-worker-01, k8s-worker-02</p>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div>
|
||
|
|
<h3>Comando ejecutado</h3>
|
||
|
|
|
||
|
|
```rust
|
||
|
|
bash
|
||
|
|
# Generado automáticamente por MCP
|
||
|
|
provisioning generate server \
|
||
|
|
--template aws-k8s-cluster \
|
||
|
|
--nodes 3 \
|
||
|
|
--cpu 4 \
|
||
|
|
--purpose development
|
||
|
|
|
||
|
|
provisioning server create \
|
||
|
|
--infra rust-meetup-demo \
|
||
|
|
--wait
|
||
|
|
```
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# Demo 3: Cosmian KMS
|
||
|
|
|
||
|
|
**Ventajas Cosmian KMS:**
|
||
|
|
|
||
|
|
- 🏢 Enterprise-ready con audit logs
|
||
|
|
- 🔄 Rotación automática de claves
|
||
|
|
- 🛡️ Zero-knowledge encryption
|
||
|
|
- ⚡ Performance nativa Rust
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
# 🙏 Gracias
|
||
|
|
|
||
|
|
## ¿Preguntas?
|
||
|
|
|
||
|
|
<div class="text-center mt-12">
|
||
|
|
<p class="text-2xl">🦀 ❤️ ☁️</p>
|
||
|
|
<p>Rust + Cloud = Mejor DevOps</p>
|
||
|
|
</div>
|