Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

🌱 VN Agent Healthz Checks #87

Merged

Conversation

christopherhein
Copy link
Contributor

This add the ability to use vn-agent with a kubeconfig specified, which works for the Deployment style vs the DaemonSet mechanism as well this added a /healthz endpoint for better checking of it's availability.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 3, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: christopherhein

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 3, 2021
@christopherhein
Copy link
Contributor Author

/kind feature

@k8s-ci-robot k8s-ci-robot added the kind/feature Categorizes issue or PR as related to a new feature. label Jun 3, 2021
@christopherhein
Copy link
Contributor Author

/assign @charleszheng44 @Fei-Guo

@@ -103,6 +104,8 @@ func Run(c *config.Config, serverOption *options.ServerOption, stopCh <-chan str
},
}

fmt.Printf(serverOption.ClientCAFile)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we wanna print out the client CA file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh, debugging lol, I will remove that.

@Fei-Guo
Copy link

Fei-Guo commented Jun 3, 2021

The envTest fails. Looking at the log

2021-06-03T18:32:39.544Z INFO controllers.VirtualCluster.Native service already exist {"service": "apiserver-svc"}
STEP: Faking apiserver STS Status Updates
STEP: Creating Control Plane controller-manager StatefulSet
2021-06-03T18:32:45.550Z INFO controllers.VirtualCluster.Native creating secret {"name": "root-ca", "namespace": "default-137bf3-virtualcluster-samplevxjfk"}

There is a 6 seconds gap between service log and creating secret log which looks weird. I only see one Get call in between from code which can be slow.

We probably need to increase the timeout in envTest.

@charleszheng44
Copy link
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 3, 2021
@k8s-ci-robot k8s-ci-robot merged commit e1d52c6 into kubernetes-retired:main Jun 3, 2021
@christopherhein christopherhein deleted the vn-agent-health branch June 3, 2021 21:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants