Skip to content

Commit

Permalink
fix config checker error. (#199)
Browse files Browse the repository at this point in the history
Signed-off-by: xuezhaojun <zxue@redhat.com>
  • Loading branch information
xuezhaojun committed Jun 12, 2024
1 parent 44993c8 commit 9d69259
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ cluster-proxy-*.tgz
/testbin

join.sh

vendor/*
1 change: 1 addition & 0 deletions cmd/addon-agent/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func main() {
if err != nil {
klog.Fatalf("failed create certificates checker: %v", err)
}
cc.SetReload(true)

go serveHealthProbes(ctx.Done(), ":8888", map[string]healthz.Checker{
"certificates": cc.Check,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ spec:
privileged: false
runAsNonRoot: true
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /healthz
scheme: HTTP
port: 8888
initialDelaySeconds: 10
failureThreshold: 1
periodSeconds: 10
env:
{{- if .Values.proxyConfig.HTTP_PROXY }}
- name: HTTP_PROXY
Expand Down Expand Up @@ -101,14 +109,6 @@ spec:
privileged: false
runAsNonRoot: true
readOnlyRootFilesystem: true
livenessProbe:
httpGet:
path: /healthz
scheme: HTTP
port: 8888
initialDelaySeconds: 10
failureThreshold: 3
periodSeconds: 10
volumeMounts:
- name: hub-kubeconfig
mountPath: /etc/kubeconfig/
Expand Down

0 comments on commit 9d69259

Please sign in to comment.