Comments (4)
@Bengrunt IP
is the public ip address for the cluster. This added that address to the SSL certificates for the cluster.
If you create the cluster configuration with the kubetool docker run -v $(pwd):/mnt -e OS=debian -e VERSION=1.9.1 -e CONTAINER_RUNTIME=docker -e FQDN=kubernetes -e IP=172.17.10.101 -e BOOTSTRAP_CONTROLLER_IP=172.17.10.101 -e ETCD_INITIAL_CLUSTER="etcd-kube-master=http://172.17.10.101:2380" -e ETCD_IP="%{::ipaddress_enp0s8}" -e KUBE_API_ADVERTISE_ADDRESS="%{::ipaddress_enp0s8}" -e INSTALL_DASHBOARD=true puppet/kubetool
It will automatically update both for you in hiera.
For example
kubernetes::kubernetes_version: 1.9.1
kubernetes::kubernetes_package_version: 1.9.1-00
from puppetlabs-kubernetes.
Hello @scotty-c. Thanks for the quick answer :)
OK for the ip
param, I guess I got mislead by an older version of the doc where it was mentioned -e IP=172.16.0.0/16
or something similar.
So I managed to get a little further in the deployment process but I'm still stuck. :/
I started looking at the code and found why I ended up with an empty kubernetes_package_version
. These lines of code suggest only two possibilities for the OS
parameter: redhat
and debian
.
if os.downcase.match('debian')
kubernetes_package_version = "#{version}-00"
elsif os.downcase.match('redhat')
kubernetes_package_version = version
end
Since I was using centos
it left the package version empty without any warning. I don't know if there is a need for support of additional values but I feel it would be helpful if the docs mentioned the possible options.
On an unrelated note, I'm still wondering if and how I could choose which version of docker to install? By default on centos7 I get docker v1.12.6 but I feel like I would rather have the latest docker-ce distribution for instance.
Moreover, my org requires me to use a specific IP range for the cluster internal network, there does not seem to be a place to set this info. I did find this line in params.pp
though, so I tried to set kubernetes::cni_network_provider: https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d "\n")\&env.IPALLOC_RANGE=172.20.0.0/16
in hiera, but I'm not sure it's the right way to go...
Sorry for all this bunch of questions. I felt like sharing these here since it might be useful for other beginners like me. Anyway, thanks a lot!
from puppetlabs-kubernetes.
@Bengrunt They are puppet OS family facts so CentOS would be in the RedHat family. We are supporting Docker 1.12 with this module or cri-containerd as the supported runtimes, not all version of Docker are compatible with Kubernetes. But both 1.12 and cri-containerd are heavily tested.
In regards to the ip range for Weave you can change the ip address range in hiera, in saying that if you are new to Kubernetes I would read about CNI and the weave documentation before doing so
from puppetlabs-kubernetes.
I am closing this issue due to inactivity, please reopen it if you are having issues
from puppetlabs-kubernetes.
Related Issues (20)
- Config version not set correctly
- Variable kubernetes::containerd_config_source is not honored HOT 2
- Support for RedHat derivatives version 8 and 9 HOT 2
- Invalid default docker version on Debian HOT 2
- Spec tests seem to be broken and are blocking PRs HOT 2
- Calico install doesn't work HOT 3
- Module not work HOT 31
- CNI commands aren't executed HOT 3
- Containerd won't bind GRPC endpoint HOT 2
- docker commands fail with errors HOT 2
- puppet/kubetool:7.0.0 - bad discovery_token_hash HOT 3
- Version bump for puppet/kubetool ? HOT 1
- deprecate this module in favour of puppet/k8s HOT 8
- Version bump for kubetool? HOT 2
- Minimum puppet version for puppetlabs-kubernetes 7.1.1 HOT 1
- The link to the contributing guidelines is dead
- "ensure CRDs are installed first" - no matches for kind "InitConfiguration" / "ClusterConfiguration" / "KubeProxyConfiguration"
- scheduler_extra_arguments not working on v1beta3 due to missing scheduler_merged_extra_arguments used in the template HOT 2
- Not able to generate certificates - undefined method `match' for nil:NilClass (NoMethodError) HOT 1
- Release new version HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppetlabs-kubernetes.