Skip to content

Instantly share code, notes, and snippets.

@x95castle1
Last active May 3, 2024 14:00
Show Gist options
  • Save x95castle1/5fa385caaeb3a5276a0ebbc0b7512bfd to your computer and use it in GitHub Desktop.
Save x95castle1/5fa385caaeb3a5276a0ebbc0b7512bfd to your computer and use it in GitHub Desktop.
Updated TAP GUI HTTPProxy to handle Session Affinity
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.subset({"kind":"HTTPProxy","metadata":{"name":"tap-gui"}})
---
spec:
routes:
#@overlay/match by=overlay.subset({"services": [{"name": "server"}]})
- services: []
#@overlay/match missing_ok=True
loadBalancerPolicy:
strategy: Cookie
apiVersion: projectcontour.io/v1
kind: HTTPProxy
metadata:
name: tap-gui
namespace: tap-gui
spec:
routes:
- services:
- name: server
port: 7000
virtualhost:
fqdn: tap-gui.view.upgrade.tapsme.org
tls:
secretName: tap-gui-cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment