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
PRO

April 19, 2023
Tweet

More Decks by Kerim Satirli

Other Decks in Programming

Transcript

  1. Kubernetes Ingress
    with Consul and ngrok

    View Slide

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

    View Slide

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

    View Slide

  4. 01
    Setting the Stage

    View Slide

  5. Challenge:
    Get our app online.

    View Slide

  6. Your service
    Your customer
    Before ngrok

    View 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 Slide

  8. After ngrok
    Your service
    Your customer

    View 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 Slide

  10. It all started with a local
    Kubernetes Cluster.

    View Slide

  11. View Slide

  12. 02
    Connecting the Bits

    View Slide

  13. ngrok Ingress Controller

    View Slide

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

    View Slide

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

    View Slide

  16. 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 Slide

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

    View Slide

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

    View Slide

  19. Thank you
    speakerdeck.com/ksatirli

    View Slide