Puppet Kubernetes KREAM Installation and usage

0 votes

While exploring integrations of kubernetes with puppet, I happened to discover that I could use "KREAM" to validate the kubernetes module instead of Puppet development kit (PDK).

Is it really on par with PDK, what exactly is its usage and how do I go about the installation process?

Aug 22, 2019 in Puppet by Karan
• 19,550 points
1,336 views

1 answer to this question.

0 votes

KREAM (Kubernetes Rules Everything Around Me) - A development environment for the Puppet/kubernetes module.

After instaling the puppetlabs/kubernetes module,deploy the clusterand then you can test your configuration using Kream, a virtual environment created specifically for testing the Puppet Kubernetes module. 

This lets you validate and test your configuration before deploying it to a live environment.

Kubernetes Development Environment:

Prerequisites:
- Vagrant
- Virtualbox v5.x
- Ruby v2.3.3

Install dependencies:

git clone to a new directory
gem install bundler
bundle install

If you're on a Mac you will need Homebrew Once brew is installed

brew install kubectl

On Linux

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.10.3/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

Note this will install version 1.10.3, if you want a different version change the version in the url.

For complete understanding of its installation and usage refer to: https://github.com/puppetlabs/kream 

answered Aug 22, 2019 by Sirajul
• 59,190 points