Skip to content
Snippets Groups Projects
Commit 514857a7 authored by Michael Davis's avatar Michael Davis
Browse files

[ci] Get ip from client pod and pass it to MGM pod

parent 01df035f
No related branches found
No related tags found
No related merge requests found
......@@ -212,15 +212,10 @@ fi
# Configure gRPC interface:
#
# 1. Map requests to EOS virtual identities
CLIENT_IP=$(host client|sed 's/^.* //')
# 1. Map requests from the client to EOS virtual identities
CLIENT_IP=$(cat /etc/grpc_client_ip)
echo CLIENT_IP is $CLIENT_IP
eos -r 0 0 vid add gateway client grpc
#for i in {1..10}
#do
#ip_addr=10.254.75.$i
#eos -r 0 0 vid add gateway $ip_addr grpc
#done
eos -r 0 0 vid add gateway ${CLIENT_IP} grpc
# 2. Add authorisation key
#
# Note: EOS_AUTH_KEY must be the same as the one specified in client.sh
......
......@@ -301,6 +301,8 @@ kubectl --namespace=${instance} exec kdc cat /root/eos-server.keytab | kubectl -
kubectl --namespace=${instance} exec ctacli -- kinit -kt /root/ctaadmin1.keytab ctaadmin1@TEST.CTA
kubectl --namespace=${instance} exec client -- kinit -kt /root/user1.keytab user1@TEST.CTA
# Let EOS MGM pod know the address of the client pod, to configure the gRPC gateway
kubectl --namespace=${instance} exec client -- hostname -i | kubectl --namespace=${instance} exec -i ctaeos -- bash -c "cat > /etc/grpc_client_ip"
## THE FILE IS MOVED THERE MUCH LATER AND OVERWRITES THIS
# THIS HAS TO BE IMPROVED (DEFINITELY) SO THAT WE CAN ASYNCHRONOUSLY UPDATE THE CONFIGURATION FILES...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment