Customizing Ingress Extension for TKG

Updating TKG Extensions using YTT

TKG Extension install here

Add the following configuration to the countour config map. name of the file doesn't matter just use the yaml extension.

The kapp controller will reconcile the app approximately every 5 minutes.

Update the ingress class

 1#@ load("@ytt:overlay", "overlay")
 2
 3#@overlay/match by=overlay.subset({"kind": "Deployment","metadata": {"name": "contour"}})
 4---
 5spec:
 6  template:
 7    spec:
 8      containers:
 9      #@overlay/match by=overlay.subset({"name": "contour"})
10      - args:
11        #@overlay/append
12        - --ingress-class-name=myingress

Tell AWS to make this an internal load balancer

1#@ load("@ytt:overlay", "overlay")
2#@overlay/match by=overlay.subset({"kind": "Service", "metadata":{"name": "envoy"}})
3---
4metadata:
5  annotations:
6    #@overlay/match missing_ok=True
7    service.beta.kubernetes.io/aws-load-balancer-internal: "true"
comments powered by Disqus