Difference between revisions of "Kubernetes.core.k8s Ansible module"
Jump to navigation
Jump to search
Line 2: | Line 2: | ||
* https://docs.ansible.com/ansible/latest/collections/kubernetes/core/k8s_module.html | * https://docs.ansible.com/ansible/latest/collections/kubernetes/core/k8s_module.html | ||
kubernetes.core.k8s | kubernetes.core.k8s | ||
+ | |||
+ | |||
+ | |||
+ | Create a [[namespace]]: | ||
+ | - name: Create a k8s namespace | ||
+ | kubernetes.core.k8s: | ||
+ | name: testing | ||
+ | api_version: v1 | ||
+ | kind: Namespace | ||
+ | state: present | ||
+ | |||
Revision as of 12:34, 12 October 2022
kubernetes.core.k8s
Create a namespace:
- name: Create a k8s namespace kubernetes.core.k8s: name: testing api_version: v1 kind: Namespace state: present
See also
- Ansible modules:
gather_facts, set_fact
,ansible.builtin.file
,lineinfile
,stat
,group
,mount
,git:
,package:
,command:
,shell:
,raw:
,template:
,register:
,user:
, Ansible playbooks examples,tasks:
,lineinfile, blockinfile:
,shell:
,command:
,raw:
,ansible.builtin.file, service:, aws.ecs_taskdefinition, aws.asg, docker_container, kubernetes.core.k8s
,community.
,include_tasks
Advertising: