Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to allow VROUTER_GATEWAY as its own IP #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

haji-haji-haji
Copy link

Updated to allow VROUTER_GATEWAY as its own IP as if it becomes server IP it will break.

Also I have updated the I file click as bellow including parenthesis for sed:

K8S_MASTER_IP=A.B.C.D; VROUTER_GATEWAY=W.X.Y.Z; CONTRAIL_REPO="docker.io/opencontrailnightly"; CONTRAIL_RELEASE="latest"; mkdir -pm 777 /var/lib/contrail/kafka-logs; curl https://raw.githubusercontent.com/Juniper/contrail-kubernetes-docs/master/install/kubernetes/templates/contrail-single-step-cni-install-centos.yaml | sed "s/{{ K8S_MASTER_IP }}/$K8S_MASTER_IP/g; s/{{ VROUTER_GATEWAY }}/$VROUTER_GATEWAY/g; s/{{ CONTRAIL_REPO }}/$CONTRAIL_REPO/g; s/{{ CONTRAIL_RELEASE }}/$CONTRAIL_RELEASE/g" | kubectl apply -f -

Haji

Updated to allow VROUTER_GATEWAY as its own IP as if it becomes server IP it will break.

Also I have updated the I file click as bellow including parenthesis for sed:

K8S_MASTER_IP=A.B.C.D; VROUTER_GATEWAY=W.X.Y.Z; CONTRAIL_REPO="docker.io\/opencontrailnightly"; CONTRAIL_RELEASE="latest"; mkdir -pm 777 /var/lib/contrail/kafka-logs; curl https://raw.githubusercontent.com/Juniper/contrail-kubernetes-docs/master/install/kubernetes/templates/contrail-single-step-cni-install-centos.yaml | sed "s/{{ K8S_MASTER_IP }}/$K8S_MASTER_IP/g; s/{{ VROUTER_GATEWAY }}/$VROUTER_GATEWAY/g; s/{{ CONTRAIL_REPO }}/$CONTRAIL_REPO/g; s/{{ CONTRAIL_RELEASE }}/$CONTRAIL_RELEASE/g" | kubectl apply -f -


Haji
@swill
Copy link

swill commented Jan 10, 2019

This is a required update as the existing documentation is wrong and this fixes it. I would recommend that you also do a pull request against the website instructions to make it clearer to the end user how to set the variables you defined in the body of this PR.

https://github.com/tungstenfabric/website/blob/master/Tungsten-Fabric-Ubuntu-one-line-install-on-k8s.md

Good work. Thanks for the contribution...

@swill
Copy link

swill commented Jan 10, 2019

@haji-haji-haji
Copy link
Author

@swill,

I have looked at the ubuntu file, and I have noticed there is no VROUTER option there, so I have tried to the centos one without the VROUTER option and it works! This also resolves another problem I had running TF on K8 in two separate subnets but the same physical location.

I will update my pull request, this will make the Centos file mirror the Ubuntu version.

Kind regards,

Haji

TF operates without it and this is to mirror the Ubuntu script, this will allow K8 clusters operating in separate subnets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants