feat(helm): add service annotations support #56

Closed
opened 2026-04-05 16:15:40 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @gogo199432 on 3/15/2026

Since I am using kube-vip in my cluster, I need to be able to annotate the frontend service with a specific IP address for it to get one. It should be backwards compatible since it will just leave out the annotations block if none are provided in the values.yaml

Usage (in values.yaml):

service:
  type: LoadBalancer
  annotations:
    kube-vip.io/loadbalancerIPs: "192.168.1.100"

Would generate:

kind: Service
metadata:
  name: databasus-service
  namespace: default
  labels:
    helm.sh/chart: databasus-0.0.0
    app.kubernetes.io/name: databasus
    app.kubernetes.io/instance: databasus
    app: databasus
    app.kubernetes.io/version: "latest"
    app.kubernetes.io/managed-by: Helm
  annotations:
    kube-vip.io/loadbalancerIPs: 192.168.1.100

...etc...
*Originally created by @gogo199432 on 3/15/2026* Since I am using kube-vip in my cluster, I need to be able to annotate the frontend service with a specific IP address for it to get one. It should be backwards compatible since it will just leave out the annotations block if none are provided in the values.yaml Usage (in values.yaml): ``` service: type: LoadBalancer annotations: kube-vip.io/loadbalancerIPs: "192.168.1.100" ``` Would generate: ``` kind: Service metadata: name: databasus-service namespace: default labels: helm.sh/chart: databasus-0.0.0 app.kubernetes.io/name: databasus app.kubernetes.io/instance: databasus app: databasus app.kubernetes.io/version: "latest" app.kubernetes.io/managed-by: Helm annotations: kube-vip.io/loadbalancerIPs: 192.168.1.100 ...etc... ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#56