github.com/midokura/kubeedge@v1.2.0-mido.0/build/admission/README.md (about) 1 ## Deploy the admission webhook 2 3 This method will guide you to deploy the admission webhook, 4 so you need to login to the k8s master node (or where else if you can 5 operate the cluster with `kubectl`). 6 7 The manifests and scripts in `github.com/kubeedge/kubeedge/build/admission` 8 will be used, so place these files to somewhere you can kubectl with. 9 10 First, ensure your k8s cluster can pull admission image. If the 11 image not exist. We can make one, and push to your registry. 12 13 ```bash 14 cd $GOPATH/src/github.com/kubeedge/kubeedge 15 make admissionimage 16 ``` 17 18 Then, we need to generate the tls certs. It then will create a secret 19 if succeeded. 20 21 ```bash 22 cd build/admission 23 ./gen-admission-secret.sh 24 ``` 25 26 Second, we create k8s resources from the manifests in name order. Before 27 creating, check the content of each manifest to make sure it meets your 28 environment. 29 30 ```bash 31 for resource in $(ls *.yaml); do kubectl create -f $resource; done 32 ``` 33 34 Last, please use `kubectl get pods -nkubeedge` to check whether the admission run successfully.