Difference between revisions of "Kind: ReplicaSet"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | + | ||
+ | |||
+ | <pre> | ||
+ | apiVersion: apps/v1 | ||
+ | kind: ReplicaSet | ||
+ | metadata: | ||
+ | name: frontend | ||
+ | labels: | ||
+ | app: guestbook | ||
+ | tier: frontend | ||
+ | spec: | ||
+ | # modify replicas according to your case | ||
+ | replicas: 3 | ||
+ | selector: | ||
+ | matchLabels: | ||
+ | tier: frontend | ||
+ | template: | ||
+ | metadata: | ||
+ | labels: | ||
+ | tier: frontend | ||
+ | spec: | ||
+ | containers: | ||
+ | - name: php-redis | ||
+ | image: gcr.io/google_samples/gb-frontend:v3 | ||
+ | </pre> | ||
+ | |||
[[kind: Deployment]] | [[kind: Deployment]] |
Revision as of 09:25, 16 December 2022
apiVersion: apps/v1 kind: ReplicaSet metadata: name: frontend labels: app: guestbook tier: frontend spec: # modify replicas according to your case replicas: 3 selector: matchLabels: tier: frontend template: metadata: labels: tier: frontend spec: containers: - name: php-redis image: gcr.io/google_samples/gb-frontend:v3
kind: Deployment
See also
- ReplicaSet,
kubectl get replicaset, kubectl describe replicaset, kind: ReplicaSet, ScalingReplicaSet
, replicaset-controller - Kubernetes services,
kubectl get services, kubectl describe service
,kubectl create service
[loadbalancer
|nodeport
|clusterip
|externalname ], kubectl expose
,headless service, service.beta.kubernetes.io
- Kubernetes Workloads:
Deployment
,ReplicaSet, StatefulSet, DaemonSets, Job, CronJob
,.apps/
Advertising: