Skip to content

Commit

Permalink
fix probes
Browse files Browse the repository at this point in the history
  • Loading branch information
aojea committed Jun 10, 2024
1 parent b20aa74 commit d4bdb17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmd/kindnet-controller/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func main() {
}

go func() {
klog.Infof("starting health server on %s", healthzBindAddress)
_ = healthzServer.ListenAndServe()
}()
defer healthzServer.Close()
Expand Down Expand Up @@ -154,6 +155,7 @@ func main() {
crd, err = extClientset.ApiextensionsV1().CustomResourceDefinitions().Get(ctx, "configurations.kindnet.io", metav1.GetOptions{})
if err != nil {
if apierrors.IsNotFound(err) {
klog.Info("CRD does not exist, creating it")
_, err = extClientset.ApiextensionsV1().CustomResourceDefinitions().Create(ctx, newCRD, metav1.CreateOptions{})
if err != nil {
klog.Infof("unexpected error trying to create CRD: %v", err)
Expand Down
2 changes: 1 addition & 1 deletion install-kindnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ spec:
readinessProbe:
httpGet:
path: /healthz
port: 9071
port: 9070
failureThreshold: 1
periodSeconds: 5
---

0 comments on commit d4bdb17

Please sign in to comment.