You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add hostname annotation to set lb ingress hostname (#48)
This fixes problems with kube-proxy in ipvs mode considering the lb IP as local to the node
See kubernetes/kubernetes#66607
This can also be used to access PROXY proto service from the inside
// getStringFromServiceAnnotation searches a given v1.Service for a specific annotationKey and either returns the annotation's value or a specified defaultSetting
ifannotationValue, ok:=service.Annotations[annotationKey]; ok {
830
+
//if there is an annotation for this setting, set the "setting" var to it
831
+
// annotationValue can be empty, it is working as designed
832
+
// it makes possible for instance provisioning loadbalancer without floatingip
833
+
klog.V(4).Infof("Found a Service Annotation: %v = %v", annotationKey, annotationValue)
834
+
returnannotationValue
835
+
}
836
+
//if there is no annotation, set "settings" var to the value from cloud config
837
+
ifdefaultSetting!="" {
838
+
klog.V(4).Infof("Could not find a Service Annotation; falling back on cloud-config setting: %v = %v", annotationKey, defaultSetting)
839
+
}
840
+
returndefaultSetting
841
+
}
842
+
843
+
// getBoolFromServiceAnnotation searches a given v1.Service for a specific annotationKey and either returns the annotation's boolean value or a specified defaultSetting
0 commit comments