by madmulita · 8y ago · 0 comments
I've been trying to build a minimal kubernetes cluster in our lab to see what it would take to host this kind of infrastructure. It's not clear if we are allowed to use the public cloud yet. (We are a bank, yeah, I know)
I've tried, at least:
- kubeadm
- rancher
- canonical kubernetes
- canonical kubernetes core
- some random internet recipes
And for some IaaS: - cloudfoundry
- openstack
- cloudstack
- opennebula
- ganeti
Not one has worked out of the box in our environment. Every single one expects to have a direct connection to the internet. Any proxy in the middle creates havoc.
I've been able to hammer some of this solutions until the cluster started and had some pods or VMs running, but it feels like this are not ready for production or not for 'secure' on-premise deployment.
I'm busy deploying 1.6 at a financial institution, and thinking about the 2.1 upgrade to Kubernetes. The Rancher team have been great so far.
https://rancher.com/docs/rancher/v2.x/en/installation/air-ga...
http://v1.uncontained.io/playbooks/installation/#design-for-...
This could be used to deploy OpenShift Origin, the upstream of the enterprise version
I worked on buildpacks in 2014, part of my job was to ensure that it worked in disconnected environments. These days every single version of Pivotal Application Service and all of our other software products are tested together in public and private cloud configurations. For every single release[0].
We already have many large private installations at the largest banks, insurers, telcos, healthcare and automotive companies in the world. And we are able to connect you with your peers in the industry to get their views on whether to pick Cloud Foundry or an alternative.
I'm happy to put you in touch with our field folks (my email is jchester@pivotal.io) if you like.
[0] https://content.pivotal.io/blog/you-deserve-a-continuously-i...
It's because the kubelet is trying to downloading static pods (i.e. docker containers) from the internet. If you're using coreos, it's likely rkt is trying to download flannel (if you're using it) and the hyperkube container from the internet too.
Good news, all this is configurable. Bad news, it's no longer really a turnkey solution.
For the most part, bootstrapping kubernetes just from the hyperkube isn't that difficult. You just have to change the static manifests for the apiserver, controller, scheduler and the proxy to point to your private registry. You then need to change the kubelet(s) to use a private registry for the --pod-infra-container-image. This should probably be enough to get you up and running.
With kubeadm (1.8+) you can use imageRepository: <private-registry> in kubeadm config file.
What is trying to connect to the public internet?
(If you mean that they expect a direct connection between client machines and servers, then, yes, they probably do and that's not a scenario I've run into personally.)
Once the cluster started, again, you have to find which tool is trying to use the proxy and now can't connect with the rest of the cluster. Sorry I can't be more specific, I gave up with this some months ago. I don't think we have the scale for Openstack.
Same problems, maybe in different steps, occurred with the other tools.
To solve the `docker pull` problem, we are trying with Nexus to proxy the global registry. But given that some of the scripting/tools that deploy kubernetes do some magic starting things that we can't directly control, we can't configure docker to pull from a proxy (not that we have found how to tell the stupid thing how to avoid going to the global registry and only use our proxy/registry). Once again, when we finally managed to pull those images, we have to guess how to unconfigure proxies to be able to fully connect the cluster.
The connection between clients and servers is another concern we haven't yet got to, but we can see it won't be a simple solution.
I would expect some installer shell script not to work well, yes. If you can mirror repositories internally (or configure apt/yum/whatever to work with the proxy), that should be fine... we've deployed one OpenStack instance using (more or less) pip and one using Debian packages.
Nothing in our running infrastructure attempts to connect to the external internet.
> Not one has worked out of the box in our environment. Every single one expects to have a direct connection to the internet. Any proxy in the middle creates havoc.
Same. I had to go home and do half the setup disconnected from the VPN so I could download anything without the proxy screwing it up. Something about the google storage servers on IPv4 screws with connections. I'm still waiting for the god security team to fix it.
It just works...
Start the conversation now with your networking folks about a more transparent setup.
The deployment worked, I guess, because we had something similar to an `iso` locally to do the full install. After that, if you are not using a local registry, you get to some of the same problems I mentioned in another response.
Another problem we saw with Openshift was that it was not clear how we would be able to integrate the networking with our legacy infrastructure. If everything is working inside the cluster or, the rest of your infrastructure is kind of SOA, I guess it wouldn't be a problem, but as I mentioned... we are a bank :D