1
1
# Intel FPGA admission controller for Kubernetes
2
2
3
- # Table of Contents
3
+ Table of Contents
4
4
5
5
* [ Introduction] ( #introduction )
6
6
* [ Dependencies] ( #dependencies )
10
10
* [ Mappings] ( #mappings )
11
11
* [ Next steps] ( #next-steps )
12
12
13
- # Introduction
13
+ ## Introduction
14
14
15
15
The FPGA admission controller is one of the components used to add support for Intel FPGA
16
16
devices to Kubernetes.
@@ -31,7 +31,7 @@ The admission controller also keeps the user from bypassing namespaced mapping r
31
31
by denying admission of any pods that are trying to use internal knowledge of InterfaceID or
32
32
Bitstream ID environment variables used by the prestart hook.
33
33
34
- # Dependencies
34
+ ## Dependencies
35
35
36
36
This component is one of a set of components that work together. You may also want to
37
37
install the following:
@@ -42,12 +42,12 @@ install the following:
42
42
All components have the same basic dependencies as the
43
43
[ generic plugin framework dependencies] ( ../../README.md#about )
44
44
45
- # Installation
45
+ ## Installation
46
46
47
47
The following sections detail how to obtain, build and deploy the admission
48
48
controller webhook plugin.
49
49
50
- ## Pre-requisites
50
+ ### Pre-requisites
51
51
52
52
The webhook depends on having [ cert-manager] ( https://cert-manager.io/ )
53
53
installed:
89
89
...
90
90
```
91
91
92
- ## Deployment
92
+ ### Deployment
93
93
94
94
To deploy the webhook, run
95
95
@@ -108,7 +108,7 @@ issuer.cert-manager.io/intelfpgawebhook-selfsigned-issuer created
108
108
```
109
109
Now you can deploy your mappings.
110
110
111
- # Mappings
111
+ ## Mappings
112
112
113
113
Mappings is a an essential part of the setup that gives a flexible instrument to a cluster
114
114
administrator to manage FPGA bitstreams and to control access to them. Being a set of
@@ -148,12 +148,12 @@ bitstream to a region before the container is started.
148
148
149
149
Mappings of resource names are configured with objects of `AcceleratorFunction` and
150
150
` FpgaRegion` custom resource definitions found respectively in
151
- [`./deployment/fpga_admissionwebhook/crd/bases/fpga.intel.com_af.yaml`](../../deployment/ fpga_admissionwebhook/crd/bases/fpga.intel.com_af .yaml)
152
- and [`./deployment/fpga_admissionwebhook/crd/bases/fpga.intel.com_region.yaml`](../../deployment/ fpga_admissionwebhook/crd/bases/fpga.intel.com_region .yaml).
151
+ [`./deployment/fpga_admissionwebhook/crd/bases/fpga.intel.com_af.yaml`](/deployments/ fpga_admissionwebhook/crd/bases/fpga.intel.com_acceleratorfunctions .yaml)
152
+ and [`./deployment/fpga_admissionwebhook/crd/bases/fpga.intel.com_region.yaml`](/deployments/ fpga_admissionwebhook/crd/bases/fpga.intel.com_fpgaregions .yaml).
153
153
154
154
Mappings between 'names' and 'ID's are controlled by the admission controller
155
155
mappings collection file found in
156
- [`./deployments/fpga_admissionwebhook/mappings-collection.yaml`](../.. /deployments/fpga_admissionwebhook/mappings-collection.yaml).
156
+ [`./deployments/fpga_admissionwebhook/mappings-collection.yaml`](/deployments/fpga_admissionwebhook/mappings-collection.yaml).
157
157
This mappings file can be deployed with
158
158
159
159
` ` ` bash
@@ -163,6 +163,6 @@ $ kubectl apply -f https://raw.githubusercontent.com/intel/intel-device-plugins-
163
163
Note that the mappings are scoped to the namespaces they were created in
164
164
and they are applicable to pods created in the corresponding namespaces.
165
165
166
- # Next steps
166
+ # # Next steps
167
167
168
- Continue with [FPGA prestart CRI-O hook](../fpga_crihook/README.md).
168
+ Continue with [FPGA prestart CRI-O hook](../fpga_crihook/README.md).
0 commit comments