Add comments for magic 31234 port

Also delete hack/lib/kind-config/multi-node.yaml since we don't think we will
use it...

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Ryan Richard 2020-10-22 17:53:40 -04:00 committed by Andrew Keesler
parent 8772a00824
commit 8ae04605ca
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413
3 changed files with 9 additions and 15 deletions

View File

@ -1,15 +0,0 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
extraPortMappings:
- protocol: TCP
containerPort: 31234
hostPort: 12345
listenAddress: 127.0.0.1
- protocol: TCP
containerPort: 31235
hostPort: 12346
listenAddress: 127.0.0.1

View File

@ -4,10 +4,16 @@ nodes:
- role: control-plane - role: control-plane
extraPortMappings: extraPortMappings:
- protocol: TCP - protocol: TCP
# This same port number is hardcoded in the integration test setup
# when creating a Service on a kind cluster. It is used to talk to
# the supervisor app.
containerPort: 31234 containerPort: 31234
hostPort: 12345 hostPort: 12345
listenAddress: 127.0.0.1 listenAddress: 127.0.0.1
- protocol: TCP - protocol: TCP
# This same port number is hardcoded in the integration test setup
# when creating a Service on a kind cluster. It is used to talk to
# the Dex app.
containerPort: 31235 containerPort: 31235
hostPort: 12346 hostPort: 12346
listenAddress: 127.0.0.1 listenAddress: 127.0.0.1

View File

@ -85,6 +85,9 @@ docker_build_with_restart('image/supervisor', '.',
) )
# Render the supervisor installation manifest using ytt. # Render the supervisor installation manifest using ytt.
#
# 31234 is the same port number hardcoded in the port forwarding of our kind configuration.
# Don't think that you can just change this!
k8s_yaml(local([ k8s_yaml(local([
'ytt', 'ytt',
'--file', '../../../deploy/supervisor', '--file', '../../../deploy/supervisor',