Introduction to Kubernetes

ZuZulfikar Achyar
July 05, 2024
Introduction to Kubernetes

Kubernetes (K8s) is an open-source system for automating deployment, scaling, and management of containerized applications.

Key Objects

  • Pod: The smallest deployable unit in Kubernetes, which can contain one or more containers.
  • Service: An abstract way to expose an application running on a set of Pods as a network service.
  • Deployment: Manages a set of replica Pods. It handles scaling and rollouts.

Running a Pod

Here's a simple Pod manifest (pod.yaml):

apiVersion: v1
kind: Pod
metadata:
  name: nginx-pod
spec:
  containers:
  - name: nginx
    image: nginx:latest
    ports:
    - containerPort: 80

To create this Pod, run:

kubectl apply -f pod.yaml

To see your running pod, run:

kubectl get pods

Let's build something together.

I'm currently available for freelance work and open to discussing new projects.

Contact Details

zulfikarachyar@gmail.com