Difference between revisions of "Kubernetes.core.k8s Ansible module"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
     [[kind: Namespace]]
 
     [[kind: Namespace]]
 
     [[state: present]]
 
     [[state: present]]
 +
 +
Apply a manifest:
 +
- name: Apply metrics-server manifest to the cluster.
 +
  kubernetes.core.k8s:
 +
    state: present
 +
    src: ~/metrics-server.yaml
  
  
Line 18: Line 24:
  
 
== See also ==
 
== See also ==
 +
* {{Ansible K8s module}}
 
* {{Ansible modules}}
 
* {{Ansible modules}}
  
 
[[Category:Ansible]]
 
[[Category:Ansible]]
 
[[Category:K8s]]
 
[[Category:K8s]]

Latest revision as of 14:42, 24 November 2022

kubernetes.core.k8s


Create a namespace:

- name: Create a k8s namespace
  kubernetes.core.k8s:
    name: testing
    api_version: v1
    kind: Namespace
    state: present

Apply a manifest:

- name: Apply metrics-server manifest to the cluster.
  kubernetes.core.k8s:
    state: present
    src: ~/metrics-server.yaml



See also[edit]

Advertising: