From db78d3a505986bd21c9dc72c930eb43d443a3f18 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Tue, 8 Mar 2022 10:06:10 -0600 Subject: [PATCH] Docs: Small fix for k8s example (#397) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docs: Small fix for k8s example SUMMARY Update the k8s example to use kubernetes.core.k8s instead of the bare k8s and fix the indentation. ISSUE TYPE Docs Pull Request COMPONENT NAME kubernetes.core ADDITIONAL INFORMATION Just a small documentation fix. 😉 Reviewed-by: Mike Graves --- .../kubernetes_scenarios/scenario_k8s_object.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/docsite/rst/kubernetes_scenarios/scenario_k8s_object.rst b/docs/docsite/rst/kubernetes_scenarios/scenario_k8s_object.rst index 6475245c..90029e77 100644 --- a/docs/docsite/rst/kubernetes_scenarios/scenario_k8s_object.rst +++ b/docs/docsite/rst/kubernetes_scenarios/scenario_k8s_object.rst @@ -54,20 +54,20 @@ In this use case / example, we will create a Pod in the given Kubernetes Cluster - kubernetes.core tasks: - name: Create a pod - k8s: + kubernetes.core.k8s: state: present definition: - apiVersion: v1 - kind: Pod - metadata: + apiVersion: v1 + kind: Pod + metadata: name: "utilitypod-1" namespace: default labels: - app: galaxy - spec: + app: galaxy + spec: containers: - - name: utilitypod - image: busybox + - name: utilitypod + image: busybox Since Ansible utilizes the Kubernetes API to perform actions, in this use case we will be connecting directly to the Kubernetes cluster.