mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
79 lines
1.4 KiB
Text
79 lines
1.4 KiB
Text
|
apiVersion: v1
|
||
|
kind: ServiceAccount
|
||
|
metadata:
|
||
|
name: nfd-master
|
||
|
namespace: default
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRole
|
||
|
metadata:
|
||
|
name: nfd-master
|
||
|
rules:
|
||
|
- apiGroups:
|
||
|
- ""
|
||
|
resources:
|
||
|
- nodes
|
||
|
verbs:
|
||
|
- get
|
||
|
- patch
|
||
|
- update
|
||
|
---
|
||
|
apiVersion: rbac.authorization.k8s.io/v1
|
||
|
kind: ClusterRoleBinding
|
||
|
metadata:
|
||
|
name: nfd-master
|
||
|
roleRef:
|
||
|
apiGroup: rbac.authorization.k8s.io
|
||
|
kind: ClusterRole
|
||
|
name: nfd-master
|
||
|
subjects:
|
||
|
- kind: ServiceAccount
|
||
|
name: nfd-master
|
||
|
namespace: default
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: nfd-master
|
||
|
name: nfd-master
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: nfd-master
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: nfd-master
|
||
|
spec:
|
||
|
serviceAccount: node-feature-discovery
|
||
|
nodeSelector:
|
||
|
node-role.kubernetes.io/master: ""
|
||
|
tolerations:
|
||
|
- key: "node-role.kubernetes.io/master"
|
||
|
operator: "Equal"
|
||
|
value: ""
|
||
|
effect: "NoSchedule"
|
||
|
containers:
|
||
|
- env:
|
||
|
- name: NODE_NAME
|
||
|
valueFrom:
|
||
|
fieldRef:
|
||
|
fieldPath: spec.nodeName
|
||
|
image: quay.io/kubernetes_incubator/node-feature-discovery:v0.3.0
|
||
|
name: nfd-master
|
||
|
command:
|
||
|
- "nfd-master"
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: nfd-master
|
||
|
spec:
|
||
|
selector:
|
||
|
app: nfd-master
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 8080
|
||
|
type: ClusterIP
|