Skip to content

AiMLops Project 1.1 Project Tools and Topics

Ayush Ghimire edited this page May 2, 2025 · 1 revision

Topics to Understand for Kubernetes & MLOps Platform Setup

1. Kubernetes Resource Application Order

  • Why it matters: Dependencies between Kubernetes resources require careful ordering
  • Key concepts:
    • CRDs must be installed before instances of those custom resources
    • Webhooks need time to be ready before they process requests
    • Namespaces must exist before resources are created in them
  • Best practice: Use kubectl wait to ensure readiness before proceeding

2. Cert-Manager and TLS in Kubernetes

  • Components:
    • Certificate issuers (LetsEncrypt, self-signed)
    • CRDs for Certificate and Issuer resources
    • Admission webhooks for validation
  • Common pitfalls:
    • Webhook trust issues (x509 errors)
    • DNS-01 vs HTTP-01 challenge differences
    • Certificate renewal and storage

3. Kustomize Structure and Organization

  • Concepts:
    • Base vs overlay structure
    • Resource accumulation and transformation
    • Patching and variable substitution
  • Best practices:
    • Validate kustomize builds with --dry-run
    • Use consistent path structures
    • Understand resource reference resolution

4. ConfigMap and Secret Management

  • Approaches:
    • Direct creation vs. generator-based
    • Secret encryption and security
    • ConfigMap volumes vs environment variables
  • Best practices:
    • Keep sensitive data out of ConfigMaps
    • Validate ConfigMap existence before referencing
    • Consider using sealed-secrets or external secret stores

5. MLOps Platform Architecture

  • Components:
    • Training infrastructure (Ray)
    • Model registry (MLflow)
    • Pipeline orchestration (Kubeflow)
    • Data versioning
  • Integration points:
    • Identity and access management
    • Shared storage considerations
    • Cross-component communication

6. Kubernetes Debugging Techniques

  • Tools:
    • kubectl describe for detailed resource information
    • kubectl logs for container logs
    • kubectl events for cluster events
  • Methodologies:
    • Start with pod status and events
    • Check dependent resources
    • Validate network policies and service connectivity

7. Idempotent Installation Scripts

  • Principles:
    • Scripts should be safely re-runnable
    • Failed partial installations should be cleanly handled
    • Pre-flight checks prevent known issues
  • Techniques:
    • Use kubectl apply instead of create
    • Check resource existence before operations
    • Implement proper retry logic with backoff

Conclusion

Understanding these key topics will help you diagnose and resolve the issues encountered in your MLOps platform setup. The most critical concepts involve proper ordering of resource application, handling webhook-based validation correctly, and ensuring your Kustomize structure is properly organized.

Clone this wiki locally