Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kubernetes Ingress with Consul and ngrok

Kubernetes Ingress with Consul and ngrok

In this presentation, Scott McAllister (ngrok) and I explain how to combine HashiCorp Consul and the ngrok Ingress Controller for Kubernetes to enable developers to get their apps on line with ease.

This version of the talk was given at the HashiCorp booth at KubeCon Europe in April 2023.

---

Companion Code: github.com/ksatirli/kubernetes-ingress-with-consul-and-ngrok

Kerim Satirli

April 19, 2023
Tweet

More Decks by Kerim Satirli

Other Decks in Technology

Transcript

  1. Kubernetes Ingress
    with Consul and ngrok

    View full-size slide

  2. Sr. Developer Advocate at HashiCorp
    he / him
    @ksatirli
    Kerim
    Satirli

    View full-size slide

  3. Principal Developer Advocate at ngrok
    he / him
    @stmcallister
    Scott
    McAllister

    View full-size slide

  4. 01
    Setting the Stage

    View full-size slide

  5. Challenge:
    Get our app online.

    View full-size slide

  6. Your service
    Your customer
    Before ngrok

    View full-size slide

  7. Your service
    Your customer
    Before ngrok
    Internet
    NAT
    202.45.1.1 192.168.1
    SW
    NAT
    Internet Router VPN Router
    VPNs
    Firewalls
    Internet Public firewall DMZ Internal firewall
    email

    View full-size slide

  8. After ngrok
    Your service
    Your customer

    View full-size slide

  9. >
    ngrok CLI
    ngrok http 80 --domain="kubecon-eu-2023.ngrok.dev"
    Session Status online
    Account Scott McAllister (Plan: Pro)
    Version 3.2.2
    Region Europe (eu)
    Latency 235ms
    Web Interface http://127.0.0.1:4040
    Forwarding https://kubecon-eu-2023.ngrok.dev

    View full-size slide

  10. It all started with a local
    Kubernetes Cluster.

    View full-size slide

  11. 02
    Connecting the Bits

    View full-size slide

  12. ngrok Ingress Controller

    View full-size slide

  13. ngrok Ingress Controller
    sa-1
    eu-1
    us-1
    outbound TLS
    kubecon-eu-2023.ngrok.dev

    View full-size slide

  14. ngrok Ingress Controller
    Middleware
    Webhook
    Validation
    Auth
    Encryption
    Load
    Balancing
    Unauthorized
    requests
    Valid requests

    View full-size slide

  15. Increase Productivity
    Insulate K8s engineers from
    hosting infrastructure
    specifics
    Insulate developers from
    managing sidecars, network
    agents, and VPN clients
    Increase focus on business
    outcomes
    ngrok Ingress Controller
    Optimize Operations
    Eliminate network inbound
    provisioning and agent
    burden
    Eliminate bespoke
    networking
    Enable multi-cluster
    deployments
    Reduce Complexity
    Automate and secure
    north-to-south traffic
    regardless of cluster hosting
    and infrastructure model
    Simplifies north-to-south
    traffic

    View full-size slide

  16. Sample Workload
    https://kubecon-eu-2023.ngrok.dev/

    View full-size slide

  17. Try it yourself!
    https://github.com/ksatirli/kubernetes-ingress-with-consul-and-ngrok

    View full-size slide

  18. Thank you
    speakerdeck.com/ksatirli

    View full-size slide