You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`imagine` - The simplest [`ImagePolicyWebhook`](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#imagepolicywebhook) webhook example you'll ever find!
6
-
7
-
_Yes, you're correct, i'm studying for the CKS exam!_
5
+
`imagine` - The simplest [`ImagePolicyWebhook`](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#imagepolicywebhook) webhook example you'll ever find! 🧞
8
6
9
7
## Development
10
8
@@ -85,3 +83,24 @@ spec:
85
83
type: DirectoryOrCreate
86
84
name: imagine
87
85
```
86
+
87
+
Wait for a while to let the `kube-apiserver` start up again, check the status with e.g. `crictl`.
88
+
89
+
You can now run the simplest of tests:
90
+
91
+
```bash
92
+
kubectl run --image nginx nginx-1
93
+
```
94
+
95
+
vs
96
+
97
+
```bash
98
+
kubectl run --image nope nginx-1
99
+
```
100
+
101
+
You're now done! 🧞
102
+
103
+
#### Troubleshooting
104
+
105
+
* Check the logs of `imagine`, it logs incoming requests verbatim, and also the status and reason of the validating admission control request.
0 commit comments