Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 703 Bytes

README.md

File metadata and controls

25 lines (19 loc) · 703 Bytes

ansible-kubernetes-module

Module for ansible to setup kubernetes objects

Instalation

Alternatively you can put it in library directory with your playbook

|- playbook.yml
|- library
   |- kube_setup.py

Usage

- name: create k8s objects from file
  kube_setup:
    file: "object.yml"
    state: "present" # default = "present" [present|absent]
    strategy: "default" # default = default, means - use the most suitable [create_or_replace|create_or_apply|create_or_nothing]
    kubectl_opts: "--context=live" # default = ""