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

Kubernetes für .NET Core Etnwicker

6848c06ef647ab606c668cc5264c0fc9?s=47 Thorsten Hans
September 23, 2020

Kubernetes für .NET Core Etnwicker

Sie möchten Ihre .NET-Core-Anwendung in Kubernetes betreiben und lernen, wie Sie das Potenzial des Container-Orchestrators nutzen können? Dann besuchen Sie diesen Talk von Kubernetes- und Cloud-native-Experte Thorsten Hans. Sie werden nicht nur den praktischen Umgang mit Kubernetes aus Sicht des Entwicklers lernen, sondern auch, wie Sie Patterns und Praktiken nutzen, um Ihre .NET-Core-Anwendungen optimal in Containern zu betreiben.

6848c06ef647ab606c668cc5264c0fc9?s=128

Thorsten Hans

September 23, 2020
Tweet

Transcript

  1. Kubernetes für .NET-Core-Entwickler Thorsten Hans @ThorstenHans Consultant

  2. Focus: Cloud Native & Infrastructure as Code Consultant @ Thinktecture

    AG thorsten.hans@thinktecture.com thorsten.hans@gmail.com thinktecture.com thorsten-hans.com @ThorstenHans Thorsten Hans
  3. Talking Points What is Kubernetes Azure Kubernetes Service Hands-On

  4. Open-Source Container Orchestrator § Initially founded by Google / now

    maintained by CNCF § Successor of Google’s Borg § Original Codename Seven1 § Greek for pilot or helmsman of a ship § Written in go 1 - https://en.wikipedia.org/wiki/Seven_of_Nine Kubernetes
  5. What is Kubernetes § Container Orchestrator § Runs Containers §

    Takes care about Networking / Isolation of workloads § Abstracts hardware from developers § Cloud-Agnostic § Container Lifecycle Management § Deployment, Rolling Upgrades, Scaling, Load-Balancing Kubernetes
  6. Kubernetes Master Kubernetes Node Pool 1 Kubernetes Worker Node Kubernetes

    Worker Node Birds-View Kubernetes Architecture
  7. Kubernetes Master Kubernetes Node Pool 1 Kubernetes Worker Node Kubernetes

    Worker Node Birds-View Kubernetes Architecture Kubernetes Node Pool 2 Kubernetes Worker Node Kubernetes Worker Node
  8. Kubernetes Master Kubernetes Node Pool 1 Kubernetes Worker Node Kubernetes

    Worker Node Birds-View Kubernetes Architecture Kubernetes Node Pool 2 Kubernetes Worker Node Kubernetes Worker Node
  9. Kubernetes Master Kubernetes Node Pool 1 Kubernetes Worker Node Kubernetes

    Worker Node Birds-View Kubernetes Architecture Kubernetes Node Pool 2 Kubernetes Worker Node Kubernetes Worker Node Azure Container Instances
  10. What is a Kubernetes Master § Cluster control-plane § Set

    of control services § etcd based storage § Requires three instances to be highly available § Executing five essential master services Kubernetes Kubernetes Master etcd API Server Scheduler Cloud Controller Manager Controller Manager
  11. What is a Kubernetes Worker-Node § Physical or virtual machine

    § Responsible for running Pods § Consists of at least three main components Kubernetes Kubernetes Worker-Node Container Runtime kubelet kube-proxy
  12. Talking Points What is Kubernetes Azure Kubernetes Service Hands-On

  13. AKS § Fully managed Kubernetes cluster § Easy cluster administration

    e.g. Scaling or Upgrading Kubernetes § Seamless integration with other Azure services § Cost efficient – you pay just for your Worker-Nodes § Since April 2020 you can pay for AKS to get an SLA Azure Kubernetes Service
  14. Seamless Azure Integration § Kubernetes Load-Balancer will spin up an

    Azure Load-Balancer § Mount Azure Files Shares and Disks as Volumes § Consume Docker Images from Azure Container Registry § Use other Azure Services like Redis, Azure SQL, … § Traffic inside the same region is always free § Get Container Insights using Azure Monitor § Protect applications using Azure Security Center AKS and Azure Integration
  15. Talking Points What is Kubernetes Azure Kubernetes Service Hands-On

  16. Running .NET Applications in Kubernetes - Containerize .NET Application -

    Create ACR and AKS - Create Deployment for the Application - Expose Application - Consume Configuration Values Demo
  17. https://12factor.net/ • Adopt the twelve-factor app manifest • Focus on

    • Configuration • Process • Port binding • Logging • Concurrency The 12 Factor Manifest
  18. • Use Kubernetes Namespaces • Group Applications logically • Always

    specify resource requests and limits • Always add health checks • Liveness- and Readiness-Probes • Use Labels • Follow the single responsibility principle Embrace the application platform