mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-28 02:37:11 +00:00
Add container security context to the sample deployment specs
Run under strict rules. We shouldn't need any special privileges.
This commit is contained in:
parent
855bf34190
commit
3cd2d34ea7
4 changed files with 30 additions and 0 deletions
|
@ -64,6 +64,12 @@ spec:
|
|||
fieldPath: spec.nodeName
|
||||
image: quay.io/kubernetes_incubator/node-feature-discovery:v0.5.0
|
||||
name: nfd-master
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
command:
|
||||
- "nfd-master"
|
||||
- env:
|
||||
|
@ -73,6 +79,12 @@ spec:
|
|||
fieldPath: spec.nodeName
|
||||
image: quay.io/kubernetes_incubator/node-feature-discovery:v0.5.0
|
||||
name: nfd-worker
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
command:
|
||||
- "nfd-worker"
|
||||
args:
|
||||
|
|
|
@ -79,6 +79,12 @@ spec:
|
|||
fieldPath: spec.nodeName
|
||||
image: quay.io/kubernetes_incubator/node-feature-discovery:v0.5.0
|
||||
name: nfd-master
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
command:
|
||||
- "nfd-master"
|
||||
## Enable TLS authentication
|
||||
|
|
|
@ -23,6 +23,12 @@ spec:
|
|||
fieldPath: spec.nodeName
|
||||
image: quay.io/kubernetes_incubator/node-feature-discovery:v0.5.0
|
||||
name: nfd-worker
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
command:
|
||||
- "nfd-worker"
|
||||
args:
|
||||
|
|
|
@ -32,6 +32,12 @@ spec:
|
|||
fieldPath: spec.nodeName
|
||||
image: quay.io/kubernetes_incubator/node-feature-discovery:v0.5.0
|
||||
name: nfd-worker
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop: ["ALL"]
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
command:
|
||||
- "nfd-worker"
|
||||
args:
|
||||
|
|
Loading…
Add table
Reference in a new issue