MENU

Fun & Interesting

How to build a Kubernetes Webhook | Admission controllers

That DevOps Guy 27,184 4 years ago
Video Not Working? Fix It Now

Subscribe to show your support! https://goo.gl/1Ty1Q2 . Patreon 👉🏽http://patreon.com/marceldempers Checkout the source code below 👇🏽 and follow along 🤓 Also if you want to support the channel further, become a member 😎 https://marceldempers.dev/join Checkout "That DevOps Community" too https://marceldempers.dev/community Source Code 🧐 -------------------------------------------------------------- https://github.com/marcel-dempers/docker-development-youtube-series Introduction to Go Programming -------------------------------------------------------------- https://youtube.com/playlist?list=PLHq1uqvAteVufR04uKxK-oDRZqFenJLii If you are new to Kubernetes, check out my getting started playlist on Kubernetes below :) Kubernetes Guide for Beginners: --------------------------------------------------- https://www.youtube.com/playlist?list=PLHq1uqvAteVvUEdqaBeMK2awVThNujwMd Kubernetes Monitoring Guide: ----------------------------------------------- https://www.youtube.com/playlist?list=PLHq1uqvAteVuEXCrRkPFWLXRKWNLOVUHn Kubernetes Secret Management Guide: -------------------------------------------------------------- https://www.youtube.com/playlist?list=PLHq1uqvAteVtq-NRX3yd1ziA_wJSBu3Oj Like and Subscribe for more :) Follow me on socials! https://marceldempers.dev Twitter | https://twitter.com/marceldempers GitHub | https://github.com/marcel-dempers Facebook | http://fb.me/thatdevopsguy LinkedIn | https://www.linkedin.com/in/marceldempers Instagram | https://www.instagram.com/thatdevopsguy Music: Track: Fox Beat 2 - Joakim Karud - Summer Vibes - Royalty Free Vlog Music [BUY=FREE] | is licensed under a Creative Commons Attribution licence (https://creativecommons.org/licenses/by/3.0/) Listen: https://soundcloud.com/foxbeatmusic2/joakim-karud-summer-vibes-royalty-free-vlog-music-buyfree Track: Amine Maxwell - Night And The City | is licensed under a Creative Commons Attribution licence (https://creativecommons.org/licenses/by/3.0/) Listen: https://soundcloud.com/aminemaxwell/night-and-the-city Track: Le Gang - I'll Go Out To Run Now (Free Download) [Lo-Fi Beats/Chill] | is licensed under a Creative Commons Attribution licence (https://creativecommons.org/licenses/by/3.0/) Listen: https://soundcloud.com/thisislegang/ill-go-out-to-run-now Track: WG $P_BEATZ - SAD LOFI CHILL TYPE BEAT(Prod.WG $P) | is licensed under a Creative Commons Attribution licence (https://creativecommons.org/licenses/by/3.0/) Listen: https://soundcloud.com/wgsp/sad-lofi-chill-type-beat-uso-livre-prodwg-p Track: souKo - souKo - Parallel | is licensed under a Creative Commons Attribution licence (https://creativecommons.org/licenses/by/3.0/) Listen: https://soundcloud.com/soukomusic/parallel Timestamps: 00:00 Introduction 00:30 What are admission controllers 01:57 Documentation 02:12 The Agenda 02:43 The Source Code 03:04 Creating a cluster 03:37 Create TLS certificate 08:51 The Webhook configuration 11:50 Writing the code 15:27 Accessing Kubernetes from code 17:43 Authenticating with Kubernetes 20:50 Kubernetes client-go 22:50 Basic code to list pods 24:44 Mutating Endpoint 27:17 Deploying to kubernetes 30:58 Trying the mutation endpoint 32:05 Admission Reviews and response 39:24 Successful mutation

Comment