Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌱 VN Agent Healthz Checks #87

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

christopherhein
Copy link
Member

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
Member 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
Member 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
Member 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-sigs:main Jun 3, 2021
@christopherhein christopherhein deleted the vn-agent-health branch June 3, 2021 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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