-
Notifications
You must be signed in to change notification settings - Fork 30
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
Expose bind9 endpoints #253
base: main
Are you sure you want to change the base?
Expose bind9 endpoints #253
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: omersch381 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 |
note: it looks like the services are created with a metalLB ip, but I am not sure if we want an endpoint as well ~ > oc get endpoints | grep designate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's a couple of things we need to sort out with names, but this looks like an excellent start.
pkg/designatebackendbind9/service.go
Outdated
Namespace: m.Namespace, | ||
Labels: labels, | ||
Annotations: map[string]string{ | ||
"metallb.universe.tf/address-pool": "internalapi", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The address pool will need to be configurable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, I will upload another version.
services := make([]*corev1.Service, replicas) | ||
|
||
for i := int32(0); i < replicas; i++ { | ||
podName := fmt.Sprintf("%s-%d", m.Name, i) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might not be correct for a mapping. We'll need to figure that out.
bcd079d
to
34fa11f
Compare
/retest |
@@ -78,6 +78,11 @@ type DesignateBackendbind9SpecBase struct { | |||
// +kubebuilder:validation:Optional | |||
// StorageRequest | |||
StorageRequest string `json:"storageRequest"` | |||
|
|||
// +kubebuilder:default="internalapi" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In retrospect, I don't think this is a good default. It may not be possible to to have a default really. What are your thoughts on leaving it empty and only creating the services if a pool is provided? For testing we might want to try using the ctlplane address pool and see if we can reach the binds that way.
This patch creates series of services and map them to the statefulset members using the podname. Each service has an IP from a metallb pool.
34fa11f
to
239491c
Compare
@omersch381: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This patch creates series of services and map them to the statefulset members using the podname.
Each service has an IP from a metallb pool.