Ellin.com
Not Very Interesting
Customizing Ingress Extension for TKG
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
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
#@ load("@ytt:overlay", "overlay")

#@overlay/match by=overlay.subset({"kind": "Deployment","metadata": {"name": "contour"}})
---
spec:
  template:
    spec:
      containers:
      #@overlay/match by=overlay.subset({"name": "contour"})
      - args:
        #@overlay/append
        - --ingress-class-name=myingress

Tell AWS to make this an internal load balancer

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


Last modified on 2021-04-14

comments powered by Disqus