This post will show you how to create ReplicaSets on a Kubernetes Cluster running on Azure AKS.
ReplicaSets
Kubernetes, ReplicaSets allows us to deploy applications to a Kubernetes cluster and ensure a minimum number of pods are always running. ReplicaSet allows us to configure a desire state configuration to deployments.
Configuration
In the following configuration, I am deploying a replicaset called nginxreplicaset with 3 replicas pod.
apiVersion: apps/v1 kind: ReplicaSet metadata: name: nginxreplicaset labels: versionnumber: v1 spec: replicas: 3 selector: matchLabels: versionnumber: v1 template: metadata: labels: versionnumber: v1 spec: containers: - name: nginx image: nginx
Processing…
Success! You're on the list.
Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.