Adding meta data to Service Definitions (K8 EKS Load Balancers)

JS
S
JSON

Example on how to tag Load Balancers via YAML templates on EKS

1# ------------------- Service ------------------- #
2
3apiVersion: v1
4kind: Service
5metadata:
6  name: client-google-svc
7  annotations:
8    service.beta.kubernetes.io/aws-load-balancer-additional-resource-tags: "whitelabel=google-portugal"
9spec:
10  type: LoadBalancer
11  ports:
12  - port: 80
13    name: http
14    targetPort: 8000
15  - port: 443
16    name: https
17    targetPort: 8000
18  selector:
19    app: client
20---

Created on 8/17/2018