22 lines
759 B
YAML
22 lines
759 B
YAML
|
|
# Patch: replace DOMAIN_SUFFIX placeholder with <LIMA_IP>.sslip.io
|
||
|
|
# in the Pingora ConfigMap's routing table.
|
||
|
|
#
|
||
|
|
# How to apply: the local-up.sh script calls:
|
||
|
|
# LIMA_IP=$(limactl shell sunbeam hostname -I | awk '{print $1}')
|
||
|
|
# sed "s/DOMAIN_SUFFIX/${LIMA_IP}.sslip.io/g" overlays/local/values-domain.yaml | kubectl apply -f -
|
||
|
|
#
|
||
|
|
# Or use kustomize's replacements feature if the IP is known at kustomize time.
|
||
|
|
#
|
||
|
|
# This is a strategic merge patch on the pingora-config ConfigMap.
|
||
|
|
|
||
|
|
apiVersion: v1
|
||
|
|
kind: ConfigMap
|
||
|
|
metadata:
|
||
|
|
name: pingora-config
|
||
|
|
namespace: ingress
|
||
|
|
data:
|
||
|
|
# DOMAIN_SUFFIX is substituted at deploy time by local-up.sh.
|
||
|
|
# The local overlay domain is: <LIMA_IP>.sslip.io
|
||
|
|
# Example: 192.168.5.2.sslip.io
|
||
|
|
domain-suffix: "LIMA_IP.sslip.io"
|