pdbmux: order backends new-first and drop primary/prefer #452
@@ -6,14 +6,11 @@ metadata:
|
|||||||
namespace: pdbmux
|
namespace: pdbmux
|
||||||
data:
|
data:
|
||||||
PDBMUX_LISTEN: ":8080"
|
PDBMUX_LISTEN: ":8080"
|
||||||
# Two PuppetDB backends merged during the VM -> k8s migration:
|
# Two PuppetDB backends merged during the VM -> k8s migration, in precedence
|
||||||
|
# order (first wins ties / pass-through):
|
||||||
|
# new = the in-cluster k8s PuppetDB (plain HTTP on 8080; in-cluster address
|
||||||
|
# is preferred over the external gateway to avoid a hairpin)
|
||||||
# old = legacy Consul-registered puppetdbapi (reachable from pods via the
|
# old = legacy Consul-registered puppetdbapi (reachable from pods via the
|
||||||
# Consul DNS the puppet workloads already use)
|
# Consul DNS the puppet workloads already use)
|
||||||
# new = the in-cluster k8s PuppetDB (plain HTTP on 8080; in-cluster address
|
PDBMUX_BACKENDS: "new=http://puppetdb.puppet.svc.cluster.local:8080,old=http://puppetdbapi.service.consul:8080"
|
||||||
# is preferred over the external gateway to avoid a hairpin).
|
|
||||||
PDBMUX_BACKENDS: "old=http://puppetdbapi.service.consul:8080,new=http://puppetdb.puppet.svc.cluster.local:8080"
|
|
||||||
# "new" (the k8s PuppetDB) is the primary for non-merged pass-through and the
|
|
||||||
# preferred backend for ties / static-merge fallback.
|
|
||||||
PDBMUX_PRIMARY: "new"
|
|
||||||
PDBMUX_PREFER: "new"
|
|
||||||
PDBMUX_MERGE: "freshness"
|
PDBMUX_MERGE: "freshness"
|
||||||
|
|||||||
@@ -32,8 +32,7 @@ spec:
|
|||||||
name: http
|
name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
envFrom:
|
envFrom:
|
||||||
# PDBMUX_LISTEN / PDBMUX_BACKENDS / PDBMUX_PRIMARY / PDBMUX_PREFER /
|
# PDBMUX_LISTEN / PDBMUX_BACKENDS / PDBMUX_MERGE
|
||||||
# PDBMUX_MERGE
|
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: pdbmux-env
|
name: pdbmux-env
|
||||||
optional: false
|
optional: false
|
||||||
|
|||||||
Reference in New Issue
Block a user