You are looking at the documentation of a prior release. To read the documentation of the latest release, please
visit here.
New to Voyager? Please start here.
Service Annotations
You can specify annotations applied to HAProxy services through ingress annotation ingress.appscode.com/annotations-service
. You have to provide it as a json formatted string to string map.
Ingress Example
apiVersion: voyager.appscode.com/v1beta1
kind: Ingress
metadata:
name: test-ingress
namespace: default
annotations:
ingress.appscode.com/annotations-service: '{"foo": "bar", "bar":"foo"}'
spec:
rules:
- host: voyager.appscode.test
http:
paths:
- path: /foo
backend:
serviceName: test-server
servicePort: 80
It will add following annotations to HAProxy pods:
annotations:
bar: foo
foo: bar
ingress.appscode.com/last-applied-annotation-keys: bar,foo
$ kubectl get svc voyager-test-ingress -o=jsonpath='{.metadata.annotations}' | tr " " "\n"
map[foo:bar
bar:foo
ingress.appscode.com/last-applied-annotation-keys:foo,bar
ingress.appscode.com/origin-api-schema:voyager.appscode.com/v1beta1
ingress.appscode.com/origin-name:test-ingress]