Giter Club home page Giter Club logo

Comments (7)

AranVinkItility avatar AranVinkItility commented on August 14, 2024 2

Could you check your generated YAML file? It should contain the following keys:

kubernetes::kube_api_service_ip: <ip>
kubernetes::kube_dns_ip: <ip>

I ran into a similar issue when using an older version of the kubetool image.

from puppetlabs-kubernetes.

vrmerlin avatar vrmerlin commented on August 14, 2024

Hmmm, my YAML file does contain that information, but i'm wondering if it's not finding it? Here's what I have:

├── data
│   └── kubernetes.yaml
├── environment.conf
├── manifests
│   ├── dev_nodes.pp
│   └── nodes.pp
├── modules
│   ├── (MANYMODULES...)
├── Puppetfile
└── site
    ├── profiles
    │   └── manifests
    │       ├── base.pp
    │       ├── kubernetes
    │           └── master.pp
    └── roles
        └── manifests
            ├── kube_master.pp

The file site\profiles\manifests\kubernetes\master.pp contains the code you see in my first message. Given that, is my kubernetes.yaml file in the right location? I also tried site\profiles\files\kubernetes\kubernetes.yaml as well, but that didn't work either.

from puppetlabs-kubernetes.

AranVinkItility avatar AranVinkItility commented on August 14, 2024

I'm not that good at Hiera, but my guess is there should be a hiera.yaml in the root of your module. This tells Hiera where it can look for the configuration data. Not sure what the default folders are if you don't have a hiera.yaml. Maybe the docs can help:
https://puppet.com/docs/puppet/5.0/hiera_config_yaml_5.html

from puppetlabs-kubernetes.

vrmerlin avatar vrmerlin commented on August 14, 2024

Ok, i was able to get it to work. Two issues: 1) I needed to create the hiera.yaml file to point to the the kubernetes.yaml file, and 2) I was in a "development mode", using puppet apply..., so i needed to add the --hiera_config=hiera.yaml flag so it could find the configuration file.

Thanks for the help!

from puppetlabs-kubernetes.

hussainaphroj avatar hussainaphroj commented on August 14, 2024

Hi,
I am facing the similar issue for puppet 4.10:
parameter 'etcd_ca_key' expects a String value, got Undef
parameter 'etcd_ca_crt' expects a String value, got Undef
parameter 'etcdclient_key' expects a String value, got Undef
parameter 'etcdclient_crt' expects a String value, got Undef
parameter 'etcdserver_crt' expects a String value, got Undef
parameter 'etcdserver_key' expects a String value, got Undef
parameter 'etcdpeer_crt' expects a String value, got Undef
parameter 'etcdpeer_key' expects a String value, got Undef
parameter 'etcd_peers' expects an

any help would be appreciated!

Thanks
Afroz Hussain

from puppetlabs-kubernetes.

SimonHoenscheid avatar SimonHoenscheid commented on August 14, 2024

Have a look here: You missed this step: https://github.com/puppetlabs/puppetlabs-kubernetes#generating-the-module-configuration

from puppetlabs-kubernetes.

hussainaphroj avatar hussainaphroj commented on August 14, 2024

Thank you, Simon. I will try the mentioned step

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.