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

KubeCon NA 2021 Technical Demo: Consul Service Mesh with .NET and Java on Kubernetes

KubeCon NA 2021 Technical Demo: Consul Service Mesh with .NET and Java on Kubernetes

Part of KubeCon North America 2021 Technical Demos for HashiCorp community office hours.

https://www.youtube.com/watch?v=Nn91ic-HHXY

Rosemary Wang

October 13, 2021
Tweet

More Decks by Rosemary Wang

Other Decks in Technology

Transcript

  1. Copyright © 2020 HashiCorp
    October 2021
    Consul Deep Dive


    KubeCon North America 2021

    View Slide

  2. Consul on Kubernetes


    References
    ▪ github.com/hashicorp/consul-k8s


    ▪ learn.hashicorp.com/collections/consul/gs-consul-service-mesh


    ▪ consul.io/docs/k8s

    View Slide

  3. Technical Demo: Terraform


    github.com/ksatirli/multi-
    cloud-kubernetes

    View Slide

  4. github.com/joatmon08/
    expense-report

    View Slide

  5. 01
    Tracing & Metrics
    KubeCon North America 2021 / Consul Deep Dive

    View Slide

  6. How do you get all the traces and metrics?
    Add Consul annotations!

    View Slide

  7. Tracing & Metrics


    References
    ▪ hashicorp.com/blog/tracing-dotnet-applications-with-consul-service-mesh


    ▪ consul.io/docs/connect/transparent-proxy


    ▪ consul.io/docs/k8s/connect/observability/metrics#connect-service-and-
    sidecar-metrics-with-metrics-merging

    View Slide

  8. 02
    Traffic Management
    KubeCon North America 2021 / Consul Deep Dive

    View Slide

  9. Can you canary deploy the new Spring
    Boot application?
    Use a Consul
    service splitter!

    View Slide

  10. What happens when the MySQL
    database goes down?
    Configure Envoy
    outlier detection!

    View Slide

  11. Can you debug
    the new version of
    the report API?
    Use a Consul
    service router!

    View Slide

  12. Traffic Management


    References
    ▪ consul.io/docs/connect/config-entries/service-splitter


    ▪ consul.io/docs/connect/config-entries/service-defaults#overrides


    ▪ consul.io/docs/connect/config-entries/service-router

    View Slide

  13. 03
    API Authorization
    KubeCon North America 2021 / Consul Deep Dive

    View Slide

  14. How do you control API
    access between services
    in the mesh?
    Use Consul intentions!

    View Slide

  15. API Authorization


    References
    ▪ consul.io/docs/connect/config-entries/service-intentions


    ▪ learn.hashicorp.com/tutorials/consul/kubernetes-custom-resource-definitions


    ▪ hashicorp.com/blog/using-hashicorp-consul-with-kong-ingress-controller-for-
    kubernetes

    View Slide

  16. Consul on Kubernetes


    References
    ▪ github.com/hashicorp/consul-k8s


    ▪ learn.hashicorp.com/collections/consul/gs-consul-service-mesh


    ▪ consul.io/consul-on-kubernetes


    ▪ CLI for Consul on Kubernetes is in alpha.

    consul.io/docs/k8s/k8s-cli


    ▪ If you don’t want to manage Consul on Kubernetes, check out HCP Consul.

    cloud.hashicorp.com

    View Slide

  17. Technical Demo: Vault


    youtu.be/bLA6raoOzT8

    View Slide