Let's explore the concept of Canary deployment
Creating Deployments and Services
Creating deployment
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: deploymentCanary
name: deploymentcanary-v1
spec:
replicas: 10
selector:
matchLabels:
app: deploymentCanary
template:
metadata:
labels:
app: deploymentCanary
spec:
containers:
- image: httpd:alpine
name: httpdCreating Services
Testing the Deployment and Service
Reduce the replicas of the old deployment to 8
Create a new Deployment with the same label
Testing the Deployment and Service
Comparing Endpoint IPs with Pods
References
Last updated