{"id":382,"date":"2026-12-03T12:00:00","date_gmt":"2026-12-03T12:00:00","guid":{"rendered":"https:\/\/rezachegini.com\/?p=382"},"modified":"2026-12-03T19:22:42","modified_gmt":"2026-12-03T19:22:42","slug":"ckad-prep-part-3-a-replicaset-only-counts","status":"publish","type":"post","link":"https:\/\/rezachegini.com\/?p=382","title":{"rendered":"CKAD Prep, Part 3: A ReplicaSet Only Counts"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Where we are<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Hi, I&#8217;m Reza. I&#8217;m sharing my preparation for the CKAD exam, practiced on a <a href=\"https:\/\/k3s.io\/\">K3s<\/a> cluster in my home lab. I am a junior engineer looking for my first SRE, DevOps or Cloud job, and that is why I learn in public. You can see how I think, what breaks, and how I fix it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Parts 1 and 2, I worked with bare pods. They&#8217;re disposable: when a pod dies, nothing brings it back. This part is the first controller that does: the ReplicaSet. It keeps a number of pods running.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Four scenarios, all on one ReplicaSet called <code>rs-broken<\/code>:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>B1: fix a ReplicaSet that the API server rejects.<\/li><li>B2: scale it two ways, and see which pods get deleted.<\/li><li>B3: create a stray pod, and watch the ReplicaSet take it over.<\/li><li>B4: change the image, and see that nothing happens to the running pods.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">All four make sense once you see what a ReplicaSet actually does. It&#8217;s one loop:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1402\" height=\"499\" src=\"https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/12\/ckad-prep-part-3-diagram.png\" alt=\"A ReplicaSet counts pods by label and fixes only the number\" class=\"wp-image-381\" srcset=\"https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/12\/ckad-prep-part-3-diagram.png 1402w, https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/12\/ckad-prep-part-3-diagram-300x107.png 300w, https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/12\/ckad-prep-part-3-diagram-1024x364.png 1024w, https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/12\/ckad-prep-part-3-diagram-768x273.png 768w\" sizes=\"auto, (max-width: 1402px) 100vw, 1402px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s the spec vs status idea from <a href=\"https:\/\/rezachegini.com\/ckad-prep-part-1-building-pods-the-yaml-way\/\">Part 1<\/a>, automated: <code>replicas<\/code> is the desired state, and the number of matching pods is the actual state.<\/p>\n\n\n<h2 class=\"wp-block-heading\">B1: fix a broken ReplicaSet<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">My first file was wrong:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: apps\/v1\nkind: ReplicaSet\nmetadata:\n  name: rs-broken\n  namespace: core<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Two things were wrong:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The version was <code>apps\/v2<\/code>, and v2 does not exist for a ReplicaSet.<\/li><li>The namespace was <code>backend<\/code>, and there is no namespace called backend. Only <code>core<\/code> exists.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The API server rejected it with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>error: error validating \"04-rs-broken.yaml\": error validating data: ValidationError(ReplicaSet.spec.template.spec.containers[0]): unknown field \"imageURL\" in io.k8s.api.core.v1.Container; if you choose to ignore these errors, turn validation off with --validate=false<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This told me three things:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The API server checked my YAML against the schema for the version I asked for.<\/li><li>The field name had to be <code>image<\/code>, not <code>imageURL<\/code>.<\/li><li>It was a schema error, not a runtime error. Nothing was created and nothing was running.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">I made these fixes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>spec:\n  replicas: 3\n  selector:\n    matchLabels:\n      app: api<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>template:\n  metadata:\n    labels:\n      app: api        # was: app: backend\n  spec:\n    containers:\n    - name: c\n      image: nginx:1.27<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The template has to match the selector, and the containers have to match the image my cluster can pull.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Two valid fixes, but only one fits<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I also tried two quick fixes:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Change <code>apps\/v2<\/code> to <code>apps\/v1<\/code>, keep everything else. The API server would accept it.<\/li><li>Change <code>apps\/v2<\/code> to <code>apps\/v1beta2<\/code>. I tried this in my head and discarded it \u2014 v1beta2 was removed long ago, so the API server would reject it again.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">And since I wanted replicas 3 in the core namespace, I also wrote the label correctly the first time.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I also wrote the file name correctly the first time: <code>04-rs-broken.yaml<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Result<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I applied it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME DESIRED CURRENT READY AGE\nrs-broken 3 3 3 10s\nNAME READY STATUS RESTARTS AGE LABELS\nrs-broken-blzb2 1\/1 Running 0 30s app=api\nrs-broken-jq4vt 1\/1 Running 0 30s app=api\nrs-broken-lqqp2 1\/1 Running 0 30s app=api<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">That&#8217;s 3 replicas, 3 ready, and the pods all carry the label <code>app=api<\/code>. The fix was a schema fix, not a runtime fix.<\/p>\n\n\n<h2 class=\"wp-block-heading\">B2: scale two ways<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The task: scale <code>rs-broken<\/code> up to 5, then down to 2, in two different ways, and watch which pods get deleted.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Up to 5, imperatively<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Up is easy, and the command is an exam favorite:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl scale rs rs-broken --replicas=5<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Nothing in the file changed. The ReplicaSet controller saw a new desired count and created pods:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>rs-broken-blzb2<\/code> was already running.<\/li><li><code>rs-broken-jq4vt<\/code> was already running.<\/li><li><code>rs-broken-lqqp2<\/code> was already running.<\/li><li><code>rs-broken-xczv6<\/code> and <code>rs-broken-m9w4d<\/code> were created.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So the count went 3 to 5, but the file still says 3. If I applied the file again, the count would drift back to 3. That is drift, and it is the reason imperative commands are fine for practice, but dangerous in a real cluster.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Down to 2, declaratively<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I edited the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>spec:\n  replicas: 2        # was 3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">and applied it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl apply -f 04-rs-broken.yaml<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This time the file and the cluster agree. There is no drift, because the desired state lives in the file, and the file is the source of truth.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I checked:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep replicas 04-rs-broken.yaml\nkubectl get rs rs-broken -o jsonpath='{.spec.replicas}{\"\\n\"}'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Both printed 2. The ReplicaSet controller then deleted pods to get from 5 to 2.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The lesson for the exam: if the question says &#8220;edit the file and apply it&#8221;, use the declarative way. If it says &#8220;scale it now&#8221;, use <code>kubectl scale<\/code>. Both work, but they leave the cluster in different states.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Which pods get deleted?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When a ReplicaSet has to delete pods, it deletes the cheapest first. The cheapest pods are the ones that are:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Not ready.<\/li><li>Have been running the shortest time.<\/li><li>Have the lowest priority.<\/li><li>Have the fewest restarts.<\/li><li>Have the fewest resources requested.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">What happened to my pods? All five were ready, running for about the same time, same priority, no restarts, and the same resources. So the tie-breaker was the pod name.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code>rs-broken-xczv6<\/code> and <code>rs-broken-m9w4d<\/code> were created last, and they were deleted first.<\/li><li><code>rs-broken-blzb2<\/code>, <code>rs-broken-jq4vt<\/code> and <code>rs-broken-lqqp2<\/code> were created first, and they survived.<\/li><li>The ReplicaSet kept the three oldest pods.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">My prediction was wrong<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I predicted the ReplicaSet would delete the two oldest pods, because I thought it would keep the newest ones. I was wrong. It kept the oldest pods and deleted the newest ones.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME DESIRED CURRENT READY AGE\nrs-broken 2 2 2 25m<\/code><\/pre>\n\n\n<h2 class=\"wp-block-heading\">B3: the pod that disappeared<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The task: create a pod that matches the selector, and watch the ReplicaSet take it over.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: v1\nkind: Pod\nmetadata:\n  name: stray\n  labels:\n    app: api\nspec:\n  containers:\n  - name: c\n    image: nginx:1.27<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This pod was not created by the ReplicaSet, but it has the same label the ReplicaSet selects on. So the ReplicaSet counts it.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The ReplicaSet saw 3 pods for a desired count of 2.<\/li><li>It deleted one pod to get back to 2.<\/li><li>The pod it deleted was <code>stray<\/code>, the one it did not create.<\/li><li>It deleted <code>stray<\/code> because <code>stray<\/code> was the newest pod, and the cheapest to delete.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">I applied the file, and kubectl said:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl apply -f 05-stray-pod.yaml\npod\/stray created<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Watching it happen<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I asked <a href=\"https:\/\/kubernetes.io\/docs\/reference\/kubectl\/generated\/kubectl_events\/\">kubectl events<\/a> what had happened:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl events --for rs\/rs-broken | tail -3<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output was:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>7m27s Normal SuccessfulDelete replicaset\/rs-broken Deleted pod: stray\n7m28s Normal SuccessfulCreate replicaset\/rs-broken Created pod: rs-broken-xczv6\n7m29s Normal SuccessfulDelete replicaset\/rs-broken Deleted pod: rs-broken-m9w4d<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">What happened, step by step:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>I created <code>stray<\/code>, and the ReplicaSet counted 3 pods.<\/li><li>It deleted <code>stray<\/code> to get back to 2.<\/li><li>Then I scaled the ReplicaSet back up to 5, and it created <code>rs-broken-xczv6<\/code>.<\/li><li>Then I scaled it back down to 2, and it deleted <code>rs-broken-m9w4d<\/code>.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">I predicted it would adopt <code>stray<\/code> and keep it. It did the opposite: it deleted <code>stray<\/code>, because <code>stray<\/code> was the newest pod, and the cheapest to delete.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Writing the answer<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I wrote the count and the reason to a file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pods -l app=api --no-headers | wc -l &gt; \/opt\/ckad\/00\/adopt.txt\necho \"The ReplicaSet adopted stray because ...\" &gt;&gt; \/opt\/ckad\/00\/adopt.txt<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The file now says:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2\nThe ReplicaSet adopted stray because it matches selector app=api, saw 3 pods for replicas 2, and deleted one to get back to 2.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">My first try was wrong, because I thought the ReplicaSet would adopt <code>stray<\/code> and keep it. The answer file says the opposite, and the events prove it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why this matters in real clusters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This is the same idea as a Deployment that adopts a pod it did not create. If a pod has the right label, the controller counts it. That is why labels are not decoration: they are how controllers find their pods. And that is why a stray pod in the wrong namespace, or with the wrong label, can be adopted, counted, or deleted by a controller you did not expect.<\/p>\n\n\n<h2 class=\"wp-block-heading\">B4: an image change that changes nothing<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The task: change the image in the template from <code>nginx:1.27<\/code> to <code>nginx:1.26<\/code>, and see what happens to the running pods.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>template:\n  ...\n  spec:\n    containers:\n    - name: c\n      image: nginx:1.26      # was nginx:1.27<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">I applied it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl apply -f 04-rs-broken.yaml<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output was &#8220;replicaset.apps\/rs-broken configured&#8221;. The template now says 1.26. But the running pods still say 1.27.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Template vs running pods<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The ReplicaSet says 1.26:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get rs rs-broken -o jsonpath='{.spec.template.spec.containers[0].image}{\"\\n\"}'<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">There are two specs in a ReplicaSet: the spec of the ReplicaSet, and the spec of the pods it creates. The template is the spec of the pods it will create. The running pods are the pods it already created.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The pods say 1.27:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl get pods -l app=api -o custom-columns=NAME:.metadata.name,IMAGE:.spec.containers[0].image<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output was:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>NAME IMAGE\nrs-broken-blzb2 nginx:1.27\nrs-broken-jq4vt nginx:1.27<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is confusing at first. The template says 1.26, and the pods say 1.27. But the ReplicaSet only uses its template when it creates new pods. It never updates existing pods. So the running pods keep their old image, and the new image only appears when a new pod is created.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I wrote the answer to a file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"Running pods use nginx:1.27. A ReplicaSet only uses its template when it creates new pods; it never updates existing ones.\" &gt; \/opt\/ckad\/00\/rs-image.txt<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Forcing the new image<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If I want the new image on the running pods, I have to delete them. The ReplicaSet will create new pods from the template, and the new pods will use <code>nginx:1.26<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl delete pod -l app=api<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The ReplicaSet created two new pods, and they use <code>nginx:1.26<\/code>. The old pods are gone, and the new pods are the ones the template describes.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Deleting a pod is not the same as updating it. The ReplicaSet creates a new pod, it does not change the old one.<\/li><li>The new pod is created from the template, so it uses the new image.<\/li><li>The old pod is gone, and its image is gone with it.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">I also typed <code>delete pod -l app=api<\/code> once, and the ReplicaSet created two new pods. The pods were deleted, and the ReplicaSet created new ones.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">This is why Deployments exist<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A ReplicaSet only fixes the count. It never updates a running pod. That is why Deployments exist: a Deployment owns a ReplicaSet, and when you change the image, the Deployment creates a new ReplicaSet, and the new ReplicaSet creates new pods.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Change the image in the Deployment.<\/li><li>The Deployment creates a new ReplicaSet.<\/li><li>The new ReplicaSet creates new pods.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">So, side by side:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>A ReplicaSet fixes the count.<\/li><li>A Deployment fixes the count and the image.<\/li><li>A ReplicaSet never updates a running pod.<\/li><li>A Deployment never updates a running pod either. It creates new pods, and deletes the old ones.<\/li><\/ul>\n\n\n<h2 class=\"wp-block-heading\">What I learned<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>The API server validates my YAML against the schema for the version I asked for. If the version does not exist, or the field name is wrong, it rejects the file before anything is created.<\/li><li>A ReplicaSet counts pods by label, not by name. If a pod has the right label, it is counted, even if the ReplicaSet did not create it.<\/li><li>A ReplicaSet only fixes the count. It never updates a running pod, and it never changes a pod&#8217;s image.<\/li><li><code>kubectl scale<\/code> is imperative, and it leaves the file and the cluster out of sync. Editing the file and applying it is declarative, and it keeps them in sync.<\/li><li>When a ReplicaSet has to delete pods, it deletes the cheapest first: not ready, shortest running time, lowest priority, fewest restarts, fewest resources requested.<\/li><li>A stray pod with the right label is counted, and the newest pod is the cheapest to delete.<\/li><li>The template is the spec of the pods the ReplicaSet will create. The running pods are the pods it already created.<\/li><li>A Deployment owns a ReplicaSet, and when you change the image, the Deployment creates a new ReplicaSet, and the new ReplicaSet creates new pods.<\/li><li>I predicted the ReplicaSet would delete the oldest pods, and adopt <code>stray<\/code>. I was wrong on both counts. The ReplicaSet kept the oldest pods, and deleted <code>stray<\/code>.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What is next<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Part 4 will cover Deployments.<\/li><li>The Job Board API series will continue after the CKAD series.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Where we are Hi, I&#8217;m Reza. I&#8217;m sharing my preparation for the CKAD exam, practiced on a K3s cluster in my home&hellip;<\/p>\n","protected":false},"author":2,"featured_media":380,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_rezaops_part":"3","_rezaops_linkedin_url":"https:\/\/www.linkedin.com\/pulse\/ckad-prep-part-3-replicaset-only-counts-reza-chegini-nfnse\/","footnotes":""},"categories":[10,62,9,74],"tags":[224,68,5,3,227,6],"series":[226],"class_list":["post-382","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops","category-home-lab","category-kubernetes","category-linux","tag-ckad","tag-k3s","tag-kubectl","tag-kubernetes","tag-replicaset","tag-yaml","series-ckad-prep"],"jetpack_featured_media_url":"https:\/\/rezachegini.com\/wp-content\/uploads\/2026\/12\/ckad-prep-part-3-cover.png","_links":{"self":[{"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/posts\/382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=382"}],"version-history":[{"count":1,"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/posts\/382\/revisions"}],"predecessor-version":[{"id":383,"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/posts\/382\/revisions\/383"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=\/wp\/v2\/media\/380"}],"wp:attachment":[{"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=382"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/rezachegini.com\/index.php?rest_route=%2Fwp%2Fv2%2Fseries&post=382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}