Difference between revisions of "Kind: ReplicaSet"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | |||
− | |||
https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#example | https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#example | ||
− | apiVersion: apps/v1 | + | [[apiVersion:]] apps/v1 |
kind: ReplicaSet | kind: ReplicaSet | ||
− | metadata: | + | [[metadata:]] |
name: frontend | name: frontend | ||
labels: | labels: | ||
app: guestbook | app: guestbook | ||
tier: frontend | tier: frontend | ||
− | spec: | + | [[spec:]] |
# modify replicas according to your case | # modify replicas according to your case | ||
replicas: 3 | replicas: 3 | ||
Line 28: | Line 26: | ||
== Related == | == Related == | ||
* <code>[[kind: Deployment]]</code> | * <code>[[kind: Deployment]]</code> | ||
+ | * <code>[[kind: Pod]]</code> | ||
== See also == | == See also == |
Latest revision as of 09:40, 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[edit]
See also[edit]
- 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: