kubernetes tutorial | Kubernetes Namespace | Demo

Описание к видео kubernetes tutorial | Kubernetes Namespace | Demo

CERTIFIED KUBERNETES ADMINISTRATOR
-------------------------------------------------------------------------
kubernetes tutorial | Kubernetes Namespace | Demo

Description
----------------------

In this video, you are going to learn the concepts of kubernetes namespaces.
we are also going to see a demo on the namespaces as well.

Kubernetes Namespace
-------------------------------------------

1. What is a Kubernetes Namespace ?
2. Why & When to use Kubernetes Namespace ?
3. Not all the objects are in the namespace !
4. Default Namespaces
5. How can pods communicate across Kubernetes namespaces?
6. DEMO
7. Thank you


For suggestions/feedback/doubts contact
email: [email protected]

Happy Learning !!!

============================================================

USEFUL LINKS
----------------------------

API References:

https://kubernetes.io/docs/reference/...

Kubectl Command Reference:

https://kubernetes.io/docs/reference/...


Kubernetes Namespaces

https://kubernetes.io/docs/concepts/o...

https://kubernetes.io/docs/tasks/admi...



============================================================
#vsparkz #kubernetes #k8s #containers


DEMO STEPS
-------------------------

Step 1: Access & Inspect the Kubernetes Cluster

$ kubectl cluster-info

$ kubectl get nodes

$ kubectl get pods -n kube-system

Step 2: Inspect the default namespaces

$ kubectl get namespace

Step 3: Create Namespaces - development, production

$ kubectl create namespace development
$ kubectl create namespace production

Step 4: Deploy and Inspect pods in development namespace

$ kubectl run nginx --image=nginx --namespace=development

$ kubectl get pods --namespace=development


Step 5: Deploy and Inspect pods in "production" namespace

$ kubectl run nginx --image=nginx --namespace=production --dry-run=client -o yaml

Copy the content and create a file: pod_ns_prod.yaml


$ vim pod_ns_prod.yaml

_========================================
apiVersion: v1
kind: Pod
metadata:
labels:
run: nginx
name: nginx
namespace: production
spec:
containers:
- image: nginx
name: nginx
========================================_

$ kubectl apply -f pod_ns_prod.yaml


THE END

Комментарии

Информация по комментариям в разработке