mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
deployment/kustomize: support nfd-gc
Rename the old "topology-gc" to just "gc". Simplify the setup a bit by including the RBAC rules in the "gc" base. Note: we don't enable nfd-gc in the default overlay, yet, as the NodeFeature API isn't enabled (gc is not needed).
This commit is contained in:
parent
f9fadd2102
commit
6cf29bd8ef
8 changed files with 24 additions and 25 deletions
|
@ -1,7 +1,7 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: nfd-topology-gc
|
||||
name: nfd-gc
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
|
@ -23,3 +23,10 @@ rules:
|
|||
verbs:
|
||||
- delete
|
||||
- list
|
||||
- apiGroups:
|
||||
- nfd.k8s-sigs.io
|
||||
resources:
|
||||
- nodefeatures
|
||||
verbs:
|
||||
- delete
|
||||
- list
|
|
@ -1,12 +1,12 @@
|
|||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRoleBinding
|
||||
metadata:
|
||||
name: nfd-topology-gc
|
||||
name: nfd-gc
|
||||
roleRef:
|
||||
apiGroup: rbac.authorization.k8s.io
|
||||
kind: ClusterRole
|
||||
name: nfd-topology-gc
|
||||
name: nfd-gc
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: nfd-topology-gc
|
||||
name: nfd-gc
|
||||
namespace: default
|
|
@ -1,4 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: nfd-topology-gc
|
||||
name: nfd-gc
|
|
@ -3,21 +3,21 @@ kind: Deployment
|
|||
metadata:
|
||||
labels:
|
||||
app: nfd
|
||||
name: nfd-topology-gc
|
||||
name: nfd-gc
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nfd-topology-gc
|
||||
app: nfd-gc
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nfd-topology-gc
|
||||
app: nfd-gc
|
||||
spec:
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
serviceAccount: nfd-topology-gc
|
||||
serviceAccount: nfd-gc
|
||||
containers:
|
||||
- name: nfd-topology-gc
|
||||
- name: nfd-gc
|
||||
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
||||
imagePullPolicy: Always
|
||||
command:
|
||||
- "nfd-topology-gc"
|
||||
- "nfd-gc"
|
|
@ -4,4 +4,7 @@ kind: Kustomization
|
|||
namespace: node-feature-discovery
|
||||
|
||||
resources:
|
||||
- topology-gc.yaml
|
||||
- gc-clusterrole.yaml
|
||||
- gc-clusterrolebinding.yaml
|
||||
- gc-serviceaccount.yaml
|
||||
- gc.yaml
|
|
@ -1,9 +0,0 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: node-feature-discovery
|
||||
|
||||
resources:
|
||||
- topology-gc-clusterrole.yaml
|
||||
- topology-gc-clusterrolebinding.yaml
|
||||
- topology-gc-serviceaccount.yaml
|
|
@ -6,13 +6,12 @@ namespace: node-feature-discovery
|
|||
resources:
|
||||
- ../../base/rbac
|
||||
- ../../base/rbac-topologyupdater
|
||||
- ../../base/rbac-topology-gc
|
||||
- ../../base/nfd-crds
|
||||
- ../../base/master
|
||||
- ../../base/worker-daemonset
|
||||
- ../../base/noderesourcetopologies-crd
|
||||
- ../../base/topologyupdater-daemonset
|
||||
- ../../base/topology-gc
|
||||
- ../../base/gc
|
||||
- namespace.yaml
|
||||
|
||||
components:
|
||||
|
|
|
@ -5,10 +5,9 @@ namespace: node-feature-discovery
|
|||
|
||||
resources:
|
||||
- ../../base/rbac-topologyupdater
|
||||
- ../../base/rbac-topology-gc
|
||||
- ../../base/noderesourcetopologies-crd
|
||||
- ../../base/topologyupdater-daemonset
|
||||
- ../../base/topology-gc
|
||||
- ../../base/gc
|
||||
- namespace.yaml
|
||||
|
||||
components:
|
||||
|
|
Loading…
Reference in a new issue