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

Publish a Romana manifest for custom network addressing ranges #180

Open
danderson opened this issue Mar 11, 2018 · 1 comment
Open

Publish a Romana manifest for custom network addressing ranges #180

danderson opened this issue Mar 11, 2018 · 1 comment

Comments

@danderson
Copy link

Currently, Romana only "just works" if the Kubernetes cluster is using the default service IP range. I naively assumed that just switching any mention of a service IP in the manifest to use the correct range would be enough to fix things, but looking at http://docs.romana.io/Content/components.html , there is significant extra reconfiguration needed (configmaps, volume mounts, more flags...).

This makes it hard to test Romana in non-basic environments. It would be nicer if Romana provided a manifest with a few symbols to find/replace (e.g. ROMANA_ETCD_IP, SERVICE_CIDR...).

The context is that I'm trying to set up e2e testing for MetalLB, and I want to test explicitly against Romana in the matrix to ensure that I remain compatible. Sadly, the complexity of setting up the cluster right now (and future complexity each time Romana updates) is a bit of a turnoff :(

@cgilmour
Copy link
Collaborator

Yes, the reason it works with defaults is because it makes a guess about a default config to use based on the KUBERNETES_SERVICE_HOST value, eg:
100.64.0.1 -> guessed as kops in AWS
10.96.0.1 -> guessed as kubeadm with default service CIDRs.
If it fails to guess correctly, you can still use a default config by setting the option on the daemon deployment, eg: adding this for kubeadm.

args:
- --initial-network=/var/lib/romana/initial-network/kubeadm-network.json

Similarly you can override the pod network CIDR using this option:
--network-cidr-overrides=romana-network=10.x.y.z/n
It basically overwrites the value here: https://github.com/romana/romana/blob/master/containerize/targets/daemon/kubeadm-network.json#L4-L5

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

No branches or pull requests

2 participants