Skip to content

saltstack-formulas/kubernetes-formula

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-formula

Extensible formula to install kubernetes on MacOS, Windows, and GNU/Linux. Support for:

The default kubernetes.sigs state includes the following:

The default kubernetes.devtools state includes the following:

The default kubernetes.operator state includes:

The default kubernetes.operators state [all OS] includes (from https://operatorhub.io):

The default kubernetes.devlibs state includes [all OS]:

The default kubernetes.crimgr state includes (linux):

Travis CI Build Status Semantic Release

A SaltStack formula for kubernetes on MacOS, GNU/Linux and Windows.

See the full SaltStack Formulas installation and usage instructions. If you are interested in writing or contributing to formulas, please pay attention to the Writing Formula Section. If you want to use this formula, please pay attention to the FORMULA file and/or git tag, which contains the currently released version. This formula is versioned according to Semantic Versioning. See Formula Versioning Section for more details.

Commit message formatting is significant!!

Please see How to contribute for more details.

Meta-state (This is a state that includes other states).

This state installs the kubernetes solution (see https://kubernetes.io)

Meta-state (This is a state that includes other states).

This state removes the kubernetes solution.

This state installs kubernetes package repository only (see https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-using-native-package-management)

This state removes kubernetes package repository only.

This state installs kubernetes cli and libraries only (see https://kubernetes.io/docs/reference/kubectl, (https://kubernetes.io/docs/setup/release/notes/#client-binaries, and https://kubernetes.io/docs/reference/using-api/client-libraries)

This state uninstalls kubernetes cli and libraries only.

This state installs kubernetes server GNU/Linux only (see https://kubernetes.io and https://kubernetes.io/docs/setup/release/notes/#server-binaries)

This state uninstalls kubernetes server GNU/Linux only.

This state installs kubernetes node on Windows/MacOS/Linux only (see https://kubernetes.io/docs/concepts/architecture/nodes)

This state uninstalls kubernetes node on Windows/MacOS/Linux only.

This state installs kubernetes sig archives only

This state uninstalls kubernetes sig archives only

This state installs operator archives only (Linux/MacOS)

This state uninstalls operator archives only (Linux/MacOS)

This state installs operator archives only

This state uninstalls operator archives only

This state installs selected kubernetes developer tools only

This state uninstalls selected kubernetes developer tools only

This state installs selected kubernetes developer libraries

This state uninstalls selected kubernetes developer libraries (i.e. kubernetes client libraries, kopf, etc).

This state installs kubernetes cri-resource-manager

This state uninstalls kubernetes cri-resource-manager

This list may be incomplete.

This state installs server packages from repo.

This state uninstalls server packages only

This state installs server archive only

This state uninstalls server archive only

This state installs node packages from repo.

This state uninstalls node packages only

This state installs node archive only

This state uninstalls node archive only

This state installs kubectl package only from repo.

This state installs kubernetes developer aliases to /etc/defaults.

This state uninstalls kubectl package only

This state installs kubectl archive only

This state uninstalls kubectl archive only

This state installs kubectl binary only

This state uninstalls kubectl binary only

This state installs k3s binary only

This state uninstalls k3s binary only

This state installs k3s script only

This state uninstalls k3s script only

Linux testing is done with kitchen-salt.

Requirements

  • Ruby
  • Docker
$ gem install bundler
$ bundle install
$ bin/kitchen test [platform]

Where [platform] is the platform name defined in kitchen.yml, e.g. debian-9-2019-2-py3.

bin/kitchen converge

Creates the docker instance and runs the kubernetes main state, ready for testing.

bin/kitchen verify

Runs the inspec tests on the actual instance.

bin/kitchen destroy

Removes the docker instance.

bin/kitchen test

Runs all of the stages above in one go: i.e. destroy + converge + verify + destroy.

bin/kitchen login

Gives you SSH access to the instance for manual testing.