Skip to content

Commit

Permalink
contrib/federation-experiment/federate: fix ingress bug
Browse files Browse the repository at this point in the history
This commit fixes an odd ingress bug that appears when the ingress
controller pod is killed and restarted. When that occurs, ingress for
the Tectonic Cluster is broken. The only way to get ingress working
again is to delete the `federation-apiserver` ingress resource created
by the federate tool. Once this is deleted, ingress works again. You can
re-run the federat tool and see ingress continues to work until the
ingress controller pod is restarted. This patch fixes this behavior.
  • Loading branch information
squat committed May 25, 2017
1 parent efc145b commit e532ec7
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions contrib/federation-experiment/federate
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ metadata:
annotations:
ingress.kubernetes.io/rewrite-target: /
ingress.kubernetes.io/secure-backends: "true"
ingress.kubernetes.io/ssl-passthrough: "true"
kubernetes.io/ingress.class: tectonic
name: federation-apiserver
namespace: federation
spec:
tls:
- hosts:
- $HOST_CONSOLE_DOMAIN
secretName: tectonic-ingress-tls-secret
rules:
- host: $HOST_CONSOLE_DOMAIN
http:
Expand All @@ -118,13 +121,6 @@ spec:
serviceName: federation-apiserver
servicePort: 443
path: /federation
- host: federation.$HOST_CONSOLE_DOMAIN
http:
paths:
- backend:
serviceName: federation-apiserver
servicePort: 443
path: /
EOF
$KUBECTL apply -f manifests/federation-apiserver-ingress.yaml

Expand Down

0 comments on commit e532ec7

Please sign in to comment.