forked from hswaw/hscloud
Revert "cluster/kube/lib/nginx: use Local traffic policy"
This reverts commit 09a0f06d2a
.
Reason for revert: prevents registry from being accessible on nodes:
q3k@anathema ~/Software/hscloud $ curl registry.k0.hswaw.net
<html>
[..., ok]
[root@bc01n03:~]# curl registry.k0.hswaw.net
^C
Change-Id: I0da97aaf7a8791ea3f62c70b6c1502f4a48a300f
master
parent
09a0f06d2a
commit
92be486f39
|
@ -142,10 +142,6 @@ local kube = import "../../../kube/kube.libsonnet";
|
|||
target_pod:: env.deployment.spec.template,
|
||||
spec+: {
|
||||
type: "LoadBalancer",
|
||||
// The nginx ingress instrance is single-instance and metallb l2 (which we run)
|
||||
// does SNAT on 'Cluster', thereby losing the source IP address.
|
||||
// See: https://metallb.universe.tf/usage/#cluster-traffic-policy
|
||||
externalTrafficPolicy: "Local",
|
||||
ports: [
|
||||
{ name: "ssh", port: 22, targetPort: 22, protocol: "TCP" },
|
||||
{ name: "http", port: 80, targetPort: 80, protocol: "TCP" },
|
||||
|
|
Loading…
Reference in New Issue