mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-28 02:37:11 +00:00
kustomize: add prune overlay
Add an overlay for deploying "nfd-master --prune". Replaces nfd-prune.yaml.template.
This commit is contained in:
parent
787ebfe441
commit
b38cf997d5
4 changed files with 52 additions and 0 deletions
20
deployment/overlays/prune/kustomization.yaml
Normal file
20
deployment/overlays/prune/kustomization.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: node-feature-discovery
|
||||
|
||||
bases:
|
||||
- ../../base/rbac
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- master-job.yaml
|
||||
|
||||
components:
|
||||
- ../../components/common
|
||||
|
||||
patches:
|
||||
- path: master-clusterrole.yaml
|
||||
target:
|
||||
kind: ClusterRole
|
||||
name: nfd-master
|
3
deployment/overlays/prune/master-clusterrole.yaml
Normal file
3
deployment/overlays/prune/master-clusterrole.yaml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- op: add
|
||||
path: "/rules/0/verbs/-"
|
||||
value: "list"
|
25
deployment/overlays/prune/master-job.yaml
Normal file
25
deployment/overlays/prune/master-job.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: nfd-master
|
||||
labels:
|
||||
app: nfd
|
||||
spec:
|
||||
completions: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nfd-prune
|
||||
spec:
|
||||
serviceAccount: nfd-master
|
||||
tolerations: []
|
||||
containers:
|
||||
- name: nfd-master
|
||||
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
- "nfd-master"
|
||||
args:
|
||||
- "--prune"
|
||||
restartPolicy: Never
|
||||
|
4
deployment/overlays/prune/namespace.yaml
Normal file
4
deployment/overlays/prune/namespace.yaml
Normal file
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: node-feature-discovery
|
Loading…
Add table
Reference in a new issue