Creating a fast Kubernetes Development Workflow

Creating a fast Kubernetes Development Workflow

Ded87c77266697ee6981c2277bb97633?s=128

Bastian Hofmann

November 13, 2019
Tweet

Transcript

  1. 2.
  2. 6.
  3. 12.
  4. 21.
  5. 25.
  6. 26.

    OpenStack Cloud LoadBalancer NGINX Ingress Controller NGINX Ingress Controller NGINX

    Ingress Controller web-application web-application MySQL Primary MySQL Secondary quote-svc quote-svc hello-svc hello-svc
  7. 30.

    MySQL Operator MySQLCluster MySQL pods MySQL statefulset Kubernetes controller manager

    Discovers Creates Creates Discovers Monitors and manages
  8. 31.

    If you are interested in the code and how to

    set it up: https:/ /github.com/syseleven/ golem-workshop
  9. 32.
  10. 36.
  11. 41.

    We need to maintain multiple, very similar YAML files with

    slightly different versions and configuration
  12. 44.
  13. 45.
  14. 54.
  15. 56.
  16. 60.
  17. 62.
  18. 63.
  19. 82.
  20. 83.
  21. 89.
  22. 96.
  23. 98.
  24. 100.

    $ telepresence T: Starting proxy with method 'vpn-tcp'... @fhgbvx65xg|bash-3.2$ curl

    http://quote-svc/quote | jq '.' [ { "ID": 503, "title": "stefan sagmeister", "content": "<p>...</p>\n", "link": "https://quotesondesign.com/stefan- sagmeister-2/" } ]
  25. 103.

    $ telepresence --swap-deployment quote-svc --namespace dev-flow-demo --expose 3000 --run npm

    run debug T: Starting proxy with method 'vpn-tcp',... T: Forwarding remote port 3000 to local port 3000.... > quote-svc@1.0.0 debug /Users/bhofmann/forge_test/quote- svc > nodemon --inspect quote-svc.js [nodemon] watching: *.* [nodemon] starting `node --inspect quote-svc.js` Debugger listening on ws://127.0.0.1:9229/83aa27ac- d879-4b50-a228-440354cca791 quote svc listening on port 3000!
  26. 104.
  27. 105.
  28. 106.