Docs: Small fix for k8s example (#397)

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 <mgraves@redhat.com>
This commit is contained in:
Major Hayden
2022-03-08 10:06:10 -06:00
committed by GitHub
parent 73499d9a09
commit db78d3a505

View File

@@ -54,20 +54,20 @@ In this use case / example, we will create a Pod in the given Kubernetes Cluster
- kubernetes.core - kubernetes.core
tasks: tasks:
- name: Create a pod - name: Create a pod
k8s: kubernetes.core.k8s:
state: present state: present
definition: definition:
apiVersion: v1 apiVersion: v1
kind: Pod kind: Pod
metadata: metadata:
name: "utilitypod-1" name: "utilitypod-1"
namespace: default namespace: default
labels: labels:
app: galaxy app: galaxy
spec: spec:
containers: containers:
- name: utilitypod - name: utilitypod
image: busybox image: busybox
Since Ansible utilizes the Kubernetes API to perform actions, in this use case we will be connecting directly to the Kubernetes cluster. Since Ansible utilizes the Kubernetes API to perform actions, in this use case we will be connecting directly to the Kubernetes cluster.