Skip to content

zhonglin6666/storage-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

Kubernetes 1.9.0 or above with the admissionregistration.k8s.io/v1beta1 API enabled. Verify that by the following command:

kubectl api-versions | grep admissionregistration.k8s.io/v1beta1

The result should be:

admissionregistration.k8s.io/v1beta1

Deploy

  1. Create namespace and rbad with kube-webhook
kubectl apply -f deploy/namespace.yaml
kubectl apply -f deploy/rbac.yaml
  1. Create a signed cert/key pair and store it in a Kubernetes secret that will be consumed by deployment
./deploy/webhook-create-cert.sh \
    --service kube-webhook-svc \
    --secret kube-webhook-certs \
    --namespace kube-webhook
  1. Install deployment and service
kubectl apply -f deploy/deployment.yaml
kubectl apply -f deploy/service.yaml
  1. Patch the MutatingWebhookConfigurations by set caBundle with correct value from Kubernetes cluster
cat deploy/mutating-webhook.yaml | \
    deploy/webhook-patch-ca-bundle.sh | \
    kubectl apply -f -

kubectl get MutatingWebhookConfiguration

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published