File tree Expand file tree Collapse file tree 6 files changed +12
-39
lines changed
helm/node-feature-discovery/templates
overlays/samples/cert-manager Expand file tree Collapse file tree 6 files changed +12
-39
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,6 @@ ARG BASE_IMAGE_MINIMAL
5
5
# Build node feature discovery
6
6
FROM ${BUILDER_IMAGE} as builder
7
7
8
- # Build and install the grpc-health-probe binary
9
- RUN GRPC_HEALTH_PROBE_VERSION=v0.4.19 && \
10
- go install -tags osusergo,netgo -ldflags -extldflags=-static \
11
- github.com/grpc-ecosystem/grpc-health-probe@${GRPC_HEALTH_PROBE_VERSION} \
12
- # Rename it as it's referenced as grpc_health_probe in the deployment yamls
13
- # and in its own project https://github.com/grpc-ecosystem/grpc-health-probe
14
- && mv /go/bin/grpc-health-probe /go/bin/grpc_health_probe
15
-
16
8
# Get (cache) deps in a separate layer
17
9
COPY go.mod go.sum /go/node-feature-discovery/
18
10
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ spec:
21
21
image : gcr.io/k8s-staging-nfd/node-feature-discovery:master
22
22
imagePullPolicy : Always
23
23
livenessProbe :
24
- exec :
25
- command : ["/usr/bin/grpc_health_probe", "-addr=: 8080"]
24
+ grpc :
25
+ port : 8080
26
26
initialDelaySeconds : 10
27
27
periodSeconds : 10
28
28
readinessProbe :
29
- exec :
30
- command : ["/usr/bin/grpc_health_probe", "-addr=: 8080"]
29
+ grpc :
30
+ port : 8080
31
31
initialDelaySeconds : 5
32
32
periodSeconds : 10
33
33
failureThreshold : 10
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ spec:
22
22
image : gcr.io/k8s-staging-nfd/node-feature-discovery:master
23
23
imagePullPolicy : Always
24
24
livenessProbe :
25
- exec :
26
- command : ["/usr/bin/grpc_health_probe", "-addr=: 8080"]
25
+ grpc :
26
+ port : 8080
27
27
initialDelaySeconds : 10
28
28
periodSeconds : 10
29
29
readinessProbe :
30
- exec :
31
- command : ["/usr/bin/grpc_health_probe", "-addr=: 8080"]
30
+ grpc :
31
+ port : 8080
32
32
initialDelaySeconds : 5
33
33
periodSeconds : 10
34
34
failureThreshold : 10
Original file line number Diff line number Diff line change 17
17
# first one is configured for use by the worker; below are for completeness
18
18
- {{ include "node-feature-discovery.fullname" . }}-master.{{ include "node-feature-discovery.namespace" . }}.svc
19
19
- {{ include "node-feature-discovery.fullname" . }}-master.{{ include "node-feature-discovery.namespace" . }}.svc.cluster.local
20
- # localhost needed for grpc_health_probe
21
- - localhost
22
20
issuerRef :
23
21
name : nfd-ca-issuer
24
22
kind : Issuer
Original file line number Diff line number Diff line change @@ -41,29 +41,13 @@ spec:
41
41
image : " {{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
42
42
imagePullPolicy : {{ .Values.image.pullPolicy }}
43
43
livenessProbe :
44
- exec :
45
- command :
46
- - " /usr/bin/grpc_health_probe"
47
- - " -addr=:{{ .Values.master.port | default " 8080" }}"
48
- {{- if .Values.tls.enable }}
49
- - " -tls"
50
- - " -tls-ca-cert=/etc/kubernetes/node-feature-discovery/certs/ca.crt"
51
- - " -tls-client-key=/etc/kubernetes/node-feature-discovery/certs/tls.key"
52
- - " -tls-client-cert=/etc/kubernetes/node-feature-discovery/certs/tls.crt"
53
- {{- end }}
44
+ grpc :
45
+ port : 8080
54
46
initialDelaySeconds : 10
55
47
periodSeconds : 10
56
48
readinessProbe :
57
- exec :
58
- command :
59
- - " /usr/bin/grpc_health_probe"
60
- - " -addr=:{{ .Values.master.port | default " 8080" }}"
61
- {{- if .Values.tls.enable }}
62
- - " -tls"
63
- - " -tls-ca-cert=/etc/kubernetes/node-feature-discovery/certs/ca.crt"
64
- - " -tls-client-key=/etc/kubernetes/node-feature-discovery/certs/tls.key"
65
- - " -tls-client-cert=/etc/kubernetes/node-feature-discovery/certs/tls.crt"
66
- {{- end }}
49
+ grpc :
50
+ port : 8080
67
51
initialDelaySeconds : 5
68
52
periodSeconds : 10
69
53
failureThreshold : 10
Original file line number Diff line number Diff line change 13
13
- nfd-master.node-feature-discovery.svc
14
14
- nfd-master.node-feature-discovery.svc.cluster.local
15
15
- nfd-master
16
- - localhost # needed for grpc_health_probe
17
16
issuerRef :
18
17
name : nfd-ca-issuer
19
18
kind : Issuer
You can’t perform that action at this time.
0 commit comments