Get started with Kubernetes in 2 minutes

Kubernetes

What is Kubernetes

What can Kubernetes do?

Benefits of Kubernetes

Basic Kubernetes Components

Step 1: Install Minikube, Docker and Kubectl

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
sudo install minikube-linux-amd64 /usr/local/bin/minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64
sudo install minikube-darwin-amd64 /usr/local/bin/minikube

Step 2: Create a Cluster

Step 3: Create a Deployment

deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: kubernetes-php
spec:
selector:
matchLabels:
run: kubernetes-php
template:
metadata:
labels:
run: kubernetes-php
spec:
containers:
- name: demo
image: chiamakaobitube/docker-php-hello-world
ports:
- containerPort: 80

Step 4: Check if the application is running

Step 5: Expose the App

Step 6: Scale the App

Lawyer, Tech Lover, Writer, Enigma