Giter Club home page Giter Club logo

Comments (4)

scotty-c avatar scotty-c commented on August 14, 2024

@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.

Bengrunt avatar Bengrunt commented on August 14, 2024

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.

scotty-c avatar scotty-c commented on August 14, 2024

@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.

scotty-c avatar scotty-c commented on August 14, 2024

I am closing this issue due to inactivity, please reopen it if you are having issues

from puppetlabs-kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.