Skip to content

An example Kubernetes MutatingAdmissionWebhook to add environmental variables to all containers in a pod

Notifications You must be signed in to change notification settings

CFCR/MutatingAdmissionWebhook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating A Mutating Admission Webhook

This document walks through the steps required to provide a proxy environmental variables to all workloads in a cluster. It does this by creating and deploying a Mutating Admission Webhook.

Prerequisites

  • Kubernetes Cluster with version > 1.10. (i.e. CFCR >v0.17 or PKS >1.1.1)

Overview

The Mutating Admission Webhook we will create in this document will automatically edit all pods being applied to the cluster. It edits the pod by injecting a NO_PROXY environmental variable into all containers.

Our Mutating Admission Webhook is a Kubernetes deployment which will be deployed to your Kubernetes cluster.

The example here is based on the example provided by Kubernetes.

About

An example Kubernetes MutatingAdmissionWebhook to add environmental variables to all containers in a pod

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published