KubernetesintheDatacenter SquarespaceE899sJourneyTowardsSelf ServiceInfrastructure8CloudNativeCon179

2020-02-27 58浏览

  • 1.Kubernetes in the Datacenter Squarespace’s Journey Towards Self-Service Infrastructure Kevin Lynch klynch@squarespace.com
  • 2.Microservices:A Story of Growth 2013: <50 engineers ● “Whatever works” ● Build product ● Grow fast Monolith Queue DB Background Jobs
  • 3.Microservices:A Story of Growth 2014: ~75 engineers ● “Whatever works” ● Too much firefighting ● Not enough new features ● Microservices FTW! Monolith Queue DB Background Jobs
  • 4.Microservices:A Story of Growth 2016: 100+ engineers ● Scalable + Reliable ● Developers can move faster ● Squarespace can move faster Monolith Queue DB Background Jobs
  • 5.Traditional Provisioning Process Manual Find Resources (CPU, RAM, Disk) Find IP Configure VLAN Configure Firewall Update Ansible Inventory DNS Updates PXE Boot Install OS Configure OS Install App! Install App Dependencies Configure Monitoring
  • 6.Containerization & Kubernetes Orchestration Static infrastructure and microservices do not mix! ● Difficult to find resources ● Slow to provision and scale ● Shoehorning “Cattle” into “Pets” mentality ● System was too complex for new engineers
  • 7.Microservices:A Story of Growth 2017: 200+ engineers ● Self-Service Infrastructure ● Operations can move faster ● Squarespace can move faster Compute Network Metrics Storage
  • 8.Self-Service Compute kubectl apply -f app.yaml Compute
  • 9.Self-Service Compute ● Java Spring Boot ● FluentD ○ Logging ● Consul ○ Service Discovery ○ K/V Pod Java Service fluentd consul Computeresources:requests:cpu:'>cpu: