Difference between revisions of "Kind: ReplicaSet"

From wikieduonline
Jump to navigation Jump to search
Line 28: Line 28:
 
== Related ==
 
== Related ==
 
* <code>[[kind: Deployment]]</code>
 
* <code>[[kind: Deployment]]</code>
 +
* <code>[[kind: Pod]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 09:32, 16 December 2022


https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#example

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

Related

See also

Advertising: