kubernetes.core.k8s Ansible module

From wikieduonline
Revision as of 14:42, 24 November 2022 by Ant (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

Advertising: