mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-12 03:36:58 +00:00
Kubernetes 1.23 has introduced native health probes for gRPC which can replace grpc_health_probe utility. This commit removes baking in grpc_health_probe binary into the image and updates related health checks to use k8s native gRPC. Signed-off-by: Muyassarov, Feruzjon <feruzjon.muyassarov@intel.com>
41 lines
955 B
YAML
41 lines
955 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: nfd
|
|
name: nfd-master
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nfd-master
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nfd-master
|
|
spec:
|
|
serviceAccount: nfd-master
|
|
enableServiceLinks: false
|
|
tolerations: []
|
|
containers:
|
|
- name: nfd-master
|
|
image: gcr.io/k8s-staging-nfd/node-feature-discovery:master
|
|
imagePullPolicy: Always
|
|
livenessProbe:
|
|
grpc:
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
grpc:
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
failureThreshold: 10
|
|
command:
|
|
- "nfd-master"
|
|
ports:
|
|
- name: metrics
|
|
containerPort: 8081
|
|
- name: grpc
|
|
containerPort: 8080
|