Core Kubernetes Concepts
Understanding Pods, Services, and Deployments is essential for working with Kubernetes on your Breeze. These three resources form the foundation of every Kubernetes workload.
Pods
A Pod is the smallest deployable unit in Kubernetes. It wraps one or more containers that share networking and storage.
apiVersion: v1
kind: Pod
metadata:
name: my-app
spec:
containers:
- name: app
image: nginx:alpine
ports:
- containerPort: 80kubectl apply -f pod.yaml
kubectl get pods
kubectl logs my-appDeployments
A Deployment manages a set of identical Pods and handles rolling updates and rollbacks.
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
spec:
replicas: 3
selector:
matchLabels:
app: my-app
template:
metadata:
labels:
app: my-app
spec:
containers:
- name: app
image: nginx:alpine
ports:
- containerPort: 80kubectl apply -f deployment.yaml
kubectl get deployments
kubectl rollout status deployment/my-appServices
A Service provides stable networking to a set of Pods selected by labels.
apiVersion: v1
kind: Service
metadata:
name: my-app-svc
spec:
selector:
app: my-app
ports:
- port: 80
targetPort: 80
type: ClusterIPService Types
- ClusterIP — internal access only (default)
- NodePort — exposes on a static port on each node
- LoadBalancer — provisions an external load balancer
These three building blocks let you run, scale, and expose applications on your Breeze.