Kubernetes: what's the difference between Deployment and Replica set?
Both replica set and deployment have the attribute replica: 3 , what's the difference between deployment and replica set? Does deployment work via replica set under the hood? configuration of deployment apiVersion: apps/v1 kind: Deployment metadata: name: my-deployment labels: my-label: my-value spec: replicas: 3 selector: matchLabels: my-label: my-value tem