Introduction to Kubernetes
Frank Heilmann
Platform Architect and Freelance Instructor
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 5
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.25.4
ports:
- containerPort: 80
kubectl
is a command line tool to interact with Kuberneteskubectl
comes with many commands and optionskubectl
reads your Manifest, sends them to Kubernetes via its API,
and Kubernetes will compute what to do to achieve the state you wantIntroduction to Kubernetes