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
To configure the WASM extension you have to prepare configuration files and the actual WASM modules.
15
12
Copy the files to the server which runs your API-Server.
@@ -18,7 +15,7 @@ In a typical kubeadm setup you also have to update the kube-apiserver mainfest t
18
15
The easiest way to mount all required files into the apiserver Pod is to place all files in one directory and mount that directory into the API-Server.
19
16
For this you have to extend `/etc/kubernetes/manifests/kube-apiserver.yaml` with the following parts:
20
17
```yaml
21
-
# spec.containers[0].volumeMaounts
18
+
# spec.containers[0].volumeMounts
22
19
- mountPath: /etc/kubernetes/wasm
23
20
name: wasm
24
21
readOnly: true
@@ -67,9 +64,9 @@ To enable the WASM authentication you have to configure the following option on
The authorization extension consults each module in the module list until one sucessfully authorizes the request.
86
+
The authorization extension consults each module in the module list until one successfully authorizes the request.
90
87
91
-
## Example
88
+
## Authorization Example
92
89
`/etc/kubernetes/wasm/authz.conf`:
93
90
```yaml
94
91
modules:
@@ -101,7 +98,7 @@ Copy the module file from https://github.com/dvob/k8s-wasi-rs/releases/download/
101
98
102
99
# Admission
103
100
To enable the WASM admission you have to add the `WASM` admission controller to the list of enabled admission plugins `--enable-admission-plugins`.
104
-
To configure the WASM admission controller you have to proviede the configuration with the admission control config file `--admission-control-config-file`.
101
+
To configure the WASM admission controller you have to provide the configuration with the admission control config file `--admission-control-config-file`.
@@ -134,10 +131,10 @@ If you specify the type `wasi` the module has to conform to the module specifica
134
131
If `kubewarden` is used as type the call logic described [here](https://docs.kubewarden.io/writing-policies/spec/intro-spec) is used to run the module.
135
132
You can find Kubewarden modules here: https://hub.kubewarden.io/
136
133
137
-
The WASM admission configuration is part of the full admission configuration and is either included as seperate file or directly in the admisison configuration.
134
+
The WASM admission configuration is part of the full admission configuration and is either included as separate file or directly in the admission configuration.
138
135
139
136
File:
140
-
```
137
+
```yaml
141
138
apiVersion: apiserver.config.k8s.io/v1
142
139
kind: AdmissionConfiguration
143
140
plugins:
@@ -146,7 +143,7 @@ plugins:
146
143
```
147
144
148
145
Direct:
149
-
```
146
+
```yaml
150
147
apiVersion: apiserver.config.k8s.io/v1
151
148
kind: AdmissionConfiguration
152
149
plugins:
@@ -170,9 +167,9 @@ plugins:
170
167
resources: ["configmaps"]
171
168
```
172
169
173
-
## Example
170
+
## Admission Examples
174
171
175
-
### Basic
172
+
### Example with Magic-Modules
176
173
`/etc/kubernetes/wasm/admission.conf`:
177
174
```yaml
178
175
apiVersion: apiserver.config.k8s.io/v1
@@ -202,7 +199,7 @@ Copy the module files the following module files to `/etc/kubernetes/wasm/`
0 commit comments