<commit_before>= Kubernetes Getting Started
:icons:
:linkcss:
:imagesdir: ../images

== Kubernetes Basic Commands (part 2 of 4)

In this part we will familiarize ourselves with the kubectl cli tool and basic Kubernetes commands. We will first deploy a basic nginx pod and execute some commands to help developers gain comfort with the Kubernetes environment from an end-user perspective. This helps gets developers up and running taking advantage of the Kubernetes application deployment capabilities without having to worry about the infrastructure related complexities.

== Basic kubectl commands:
Now that we have a local cluster up and running we can start issuing some basic commands and deploy some simple resources.

=== This command will show all of the nodes available in your kubernetes cluster:

    kubectl get nodes

=== This command shows all of the pods that are deployed into your cluster (into the default namespace), initially this will not show anything:

    kubectl get pods

=== This command, similar to the one above will show all of the pods in the kube-system namespace:

    kubectl get pods --namespace kube-system

=== Create your first pod:

This command creates an nginx pod into your cluster:

    kubectl run nginx --image=nginx

Check for running pods in your cluster:

    kubectl get pods
<commit_msg>documentation<commit_after>= Kubernetes Getting Started
:icons:
:linkcss:
:imagesdir: ../images

== Kubernetes Basic Commands (part 2 of 4)

In this part we will familiarize ourselves with the kubectl cli tool and basic Kubernetes commands. We will first deploy a basic nginx pod and execute some commands to help developers gain comfort with the Kubernetes environment from an end-user perspective. This helps gets developers up and running taking advantage of the Kubernetes application deployment capabilities without having to worry about the infrastructure related complexities.

== Basic kubectl commands:
Now that we have a local cluster up and running we can start issuing some basic commands and deploy some simple resources.

=== Display nodes
This command will show all of the nodes available in your kubernetes cluster:

    kubectl get nodes

=== Display pods
This command shows all of the pods that are deployed into your cluster (into the default namespace), initially this will not show anything:
    kubectl get pods

=== Display pods in a particular namespace
This command, similar to the one above will show all of the pods in the kube-system namespace:

    kubectl get pods --namespace kube-system

=== Create your first pod:

This command creates an nginx pod into your cluster:

    kubectl run nginx --image=nginx

Check for running pods in your cluster:

    kubectl get pods

{'fraction_non_alphanumeric': 0.03945926196565583, 'fraction_numerical': 0.0014614541468761417, 'mean_word_length': 4.368627450980392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1273026', 'n_tokens_mistral': 682, 'n_tokens_neox': 631, 'n_words': 402}