<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kubectl :: Tag :: Kubernetes training</title><link>https://k8s-school.fr/labs/k8s/en/tags/kubectl/index.html</link><description/><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2025 Fabrice Jammes - Licensed under CC BY-SA 4.0</copyright><lastBuildDate>Wed, 26 Feb 2025 14:15:26 +1000</lastBuildDate><atom:link href="https://k8s-school.fr/labs/k8s/en/tags/kubectl/index.xml" rel="self" type="application/rss+xml"/><item><title>Essential kubectl Commands</title><link>https://k8s-school.fr/labs/k8s/en/articles/kubectl-essential/index.html</link><pubDate>Tue, 11 Jun 2024 14:15:26 +1000</pubDate><guid>https://k8s-school.fr/labs/k8s/en/articles/kubectl-essential/index.html</guid><description>Duration: 5 min read
Official documentation for kubectl kubectl quick reference
List a Resource from the API Server To retrieve details of a specific resource in Kubernetes, use the following command:
kubectl get &lt;resource-name&gt; &lt;obj-name&gt; [-o yaml/json] Describe a Resource from the API Server To get a detailed description of a specific resource, use:</description></item><item><title>Alternatives for deprecated 'kubectl run' commands</title><link>https://k8s-school.fr/labs/k8s/en/articles/kubectl-run-deprecated/index.html</link><pubDate>Mon, 30 Sep 2019 00:00:00 +0000</pubDate><guid>https://k8s-school.fr/labs/k8s/en/articles/kubectl-run-deprecated/index.html</guid><description>Written by: Karim AMMOUS (LinkedIn). Date: Sept 30, 2019 · 5 min read
kubectl run command is a convenient and useful way to quickly create kubernetes resources without dealing with yaml files. Since kubernetes v1.12, creation acknowledgment (“object created”) is preceded by a message noting that this creation command is deprecated and will no longer be available in future kubectl releases.
Indeed, we can create some “runnable” resources like Pods and Deployments (the complete list) using kubectl run command by setting the --generator flag with the appropriate value. However, those generators have been deprecated since v1.12 except ‘run-pod/v1’ generator.</description></item><item><title>Kubernetes easy install with Kubeadm</title><link>https://k8s-school.fr/labs/k8s/en/1_labs/kubeadm/index.html</link><pubDate>Mon, 27 Jan 2020 14:15:26 +1000</pubDate><guid>https://k8s-school.fr/labs/k8s/en/1_labs/kubeadm/index.html</guid><description>Auteur: Fabrice JAMMES (LinkedIn). Date: Jan 27, 2020 · 10 min read
This article explains how to install Kubernetes with kubeadm, the official Kubernetes installer. It is inspired by the official documentation, while declining it for Ubuntu and simplifying it.
It has been successfully tested with Kubernetes 1.31.0
Pre-requisites: Infrastructure One or more machines running Ubuntu LTS, with administrator access ( sudo) 2 GB or more of RAM per machine 2 or more processors on the master node Full network connectivity between all machines in the cluster The ‘size-of-master-and-master-components’ documentation define some guidelines on how to size your masters nodes depending on the total number of your Kubernetes nodes.</description></item><item><title>RBAC</title><link>https://k8s-school.fr/labs/k8s/en/1_labs/rbac/index.html</link><pubDate>Wed, 26 Feb 2025 14:15:26 +1000</pubDate><guid>https://k8s-school.fr/labs/k8s/en/1_labs/rbac/index.html</guid><description>Author: Fabrice JAMMES (LinkedIn).
1. Create Namespaces Create two namespaces:
foo-&lt;ID&gt; bar-&lt;ID&gt; Answer kubectl create namespace foo-&lt;ID&gt; kubectl create namespace bar-&lt;ID&gt; 2. Deploy curl-custom-sa Pod Create a curl-custom-sa pod inside the foo-&lt;ID&gt; namespace, using the service account foo-&lt;ID&gt;:default (the default service account of foo-&lt;ID&gt;).</description></item><item><title>Kubectl proxy and curl</title><link>https://k8s-school.fr/labs/k8s/en/1_labs/kubectl-proxy/index.html</link><pubDate>Wed, 26 Feb 2025 14:15:26 +1000</pubDate><guid>https://k8s-school.fr/labs/k8s/en/1_labs/kubectl-proxy/index.html</guid><description>Author: Fabrice JAMMES (LinkedIn).
Objective Learn how to use kubectl proxy and curl to list services in a specified Kubernetes namespace.
Prerequisites A running Kubernetes cluster kubectl installed and configured curl installed Steps Step 1: Start kubectl proxy Run the following command to start the kubectl proxy:</description></item></channel></rss>