-
Notifications
You must be signed in to change notification settings - Fork 112
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
Added name to service spec #58
Conversation
Signed-off-by: Krithika Vijayakumar <krithika_vijayakumar@intuit.com>
@@ -81,6 +81,14 @@ func (v Vertex) GetServiceObjs() []*corev1.Service { | |||
} | |||
|
|||
func (v Vertex) getServiceObj(name string, headless bool, port int) *corev1.Service { | |||
var servicePortName string |
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.
Pass the port name as a parameter.
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.
Signed-off-by: Krithika Vijayakumar <krithika_vijayakumar@intuit.com>
Signed-off-by: Krithika Vijayakumar <krithika_vijayakumar@intuit.com>
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.
LGTM
* Added name to service spec Signed-off-by: Krithika Vijayakumar <krithika_vijayakumar@intuit.com> * Added vertexHTTPSPortName Signed-off-by: Krithika Vijayakumar <krithika_vijayakumar@intuit.com>
* Added name to service spec Signed-off-by: Krithika Vijayakumar <krithika_vijayakumar@intuit.com> * Added vertexHTTPSPortName Signed-off-by: Krithika Vijayakumar <krithika_vijayakumar@intuit.com> Signed-off-by: Yashash H L <yashash_hl@intuit.com>
I was working on a document for metrics and there was an ask to figure out how to scrape the metrics using the prometheus operator. As part of the exercise I had created some k8s serviceMonitors to monitor services(based on labels) and scrape the corresponding metric. While doing so I figured that the serviceMonitor expected a
name
field on the service spec Port object. Added the same.This has been tested by running a sample pipeline in my local k3d cluster