diff --git a/deployments/sgx_plugin/base/intel-sgx-hookinstall.yaml b/deployments/sgx_plugin/base/intel-sgx-hookinstall.yaml deleted file mode 100644 index c22b778f..00000000 --- a/deployments/sgx_plugin/base/intel-sgx-hookinstall.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: intel-sgx-hookinstall-job - labels: - jobgroup: intel-sgx-hookinstall-job -spec: - template: - metadata: - labels: - jobgroup: intel-sgx-hookinstall-job - spec: - restartPolicy: Never - containers: - - name: intel-sgx-hookinstall-job - image: intel/intel-sgx-initcontainer:devel - imagePullPolicy: IfNotPresent - securityContext: - readOnlyRootFilesystem: true - volumeMounts: - - mountPath: /etc/kubernetes/node-feature-discovery/source.d/ - name: nfd-source-hooks - volumes: - - name: nfd-source-hooks - hostPath: - path: /etc/kubernetes/node-feature-discovery/source.d/ - type: DirectoryOrCreate diff --git a/deployments/sgx_plugin/base/intel-sgx-plugin.yaml b/deployments/sgx_plugin/base/intel-sgx-plugin.yaml index 946af929..1e24f9e9 100644 --- a/deployments/sgx_plugin/base/intel-sgx-plugin.yaml +++ b/deployments/sgx_plugin/base/intel-sgx-plugin.yaml @@ -13,6 +13,15 @@ spec: labels: app: intel-sgx-plugin spec: + initContainers: + - name: intel-sgx-initcontainer + image: intel/intel-sgx-initcontainer:devel + imagePullPolicy: IfNotPresent + securityContext: + readOnlyRootFilesystem: true + volumeMounts: + - mountPath: /etc/kubernetes/node-feature-discovery/source.d/ + name: nfd-source-hooks containers: - name: intel-sgx-plugin image: intel/intel-sgx-plugin:devel @@ -32,3 +41,7 @@ spec: - name: sgxdevices hostPath: path: /dev/sgx + - name: nfd-source-hooks + hostPath: + path: /etc/kubernetes/node-feature-discovery/source.d/ + type: DirectoryOrCreate diff --git a/deployments/sgx_plugin/base/kustomization.yaml b/deployments/sgx_plugin/base/kustomization.yaml index 45cf2ac0..14dc17db 100644 --- a/deployments/sgx_plugin/base/kustomization.yaml +++ b/deployments/sgx_plugin/base/kustomization.yaml @@ -1,3 +1,2 @@ resources: - - intel-sgx-hookinstall.yaml - intel-sgx-plugin.yaml