Рет қаралды 3,677
In this video we wrote the https server that would work as validating webhook controller and deployed it on Kubernetes cluster to make sure that the server is being called/requested when a Kluster resource is created.
We also looked into how we can give the .crt and .key files to the server as flags that would be mounted on the application as secrets.
GitHub:
github.com/viveksinghggits/va...
Relevant Playlists:
Creating Kluster Operator from scratch: • Generating ClientSet/I...
What are admission controllers: • Admission Controllers ...
Web:
viveksingh.dev/
00:00 Introduction
00:22 Agenda
01:06 What are Validating Webhook Controllers
02:56 What are we going to build/Discuss the problem
10:28 Components of validating Webhook controller
12:55 HTTPS is must in Webhook server
16:10 Set up of Webhook Server on Kubernetes
18:00 Writing HTTPS Webhook Server
47:15 Building the Webhook Server and checking -help
48:01 Containerise the application
49:06 Running Webhook server locally to see it uses self signed Certs
50:54 Creating deployment manifest for Webhook server
51:51 Creating the certificate files and secret manifest
54:45 Changing deployment manifest to have secret as volume
56:43 Adding argument for our server in deployment manifest
59:17 Create the Webhook server deployment
01:00:04 Create Service to expose webhook server deployment
01:03:08 Adding ValidatingWebhookConfiguration resource
01:05:57 Testing Validating Webhook Controller
01:08:51 Summarising codebase
01:10:21 Agenda from next video
01:11:11 Summarising the Webhook Server
01:13:56 Share, Like and Subscribe