mirror of
https://github.com/ansible-collections/kubernetes.core.git
synced 2026-04-11 19:30:56 +00:00
k8s: Add example for download and apply manifest from URL (#359)
Fixes: #352 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -209,6 +209,18 @@ EXAMPLES = r'''
|
||||
validate:
|
||||
fail_on_error: no
|
||||
strict: yes
|
||||
|
||||
# Download and apply manifest
|
||||
- name: Download metrics-server manifest to the cluster.
|
||||
ansible.builtin.get_url:
|
||||
url: https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
|
||||
dest: ~/metrics-server.yaml
|
||||
mode: '0664'
|
||||
|
||||
- name: Apply metrics-server manifest to the cluster.
|
||||
community.kubernetes.k8s:
|
||||
state: present
|
||||
src: ~/metrics-server.yaml
|
||||
'''
|
||||
|
||||
RETURN = r'''
|
||||
|
||||
Reference in New Issue
Block a user