{"id":71200,"date":"2025-02-06T09:29:32","date_gmt":"2025-02-06T09:29:32","guid":{"rendered":"https:\/\/peraltafinancing.com\/business\/internet-business\/scaling-wordpress-with-kubernetes-a-cloud-native-approach\/"},"modified":"2025-02-06T09:29:32","modified_gmt":"2025-02-06T09:29:32","slug":"scaling-wordpress-with-kubernetes-a-cloud-native-approach","status":"publish","type":"post","link":"https:\/\/fivemor.com\/?p=71200","title":{"rendered":"Scaling WordPress with Kubernetes: A cloud-native approach"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p>For developers and engineers alike, WordPress is an excellent solution for building a versatile website that end-users can easily operate, maintain, and manage.<\/p>\n<p>At Hostinger, we also build our pages and manage content using WordPress. However, our big concern was: Is WordPress reliable enough to handle up to millions of visitors?<\/p>\n<p>Turns out, with the right scaling strategy, we can use WordPress as a basis for a resilient, agile, and highly available website, even during a traffic spike. Read on to learn how we do it.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-the-main-blueprint\">The main blueprint<\/h2>\n<p>Our scaling strategy mainly centers around two technologies that are widely used in cloud infrastructure \u2013 <strong>Docker <\/strong>and <strong>Kubernetes<\/strong>.<\/p>\n<p>Docker packages WordPress into containers. Meanwhile, we use Kubernetes to \u2018orchestrate\u2019 these containers, which automatically manage their load and lifecycles.<\/p>\n<p>Let\u2019s explore each of these technologies and their benefits for improving the scalability of our WordPress instance.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-containerization-with-docker\">Containerization with Docker<\/h2>\n<p>Docker packages your WordPress into isolated environments called containers, each running independently from the others.<\/p>\n<p>There are two ways to create a WordPress container \u2013 by manually writing a Dockerfile and downloading the <a href=\"https:\/\/github.com\/docker-library\/wordpress\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">official WordPress Docker image<\/a>.<\/p>\n<p>Using the official WordPress Docker image helps streamline the deployment process since you only need to simply build it into a container. If you use a Dockerfile, the basic content might look like this:<\/p>\n<pre class=\"wp-block-preformatted has-small-font-size\"># Start with official Docker image of wordpress<p>FROM wordpress:6.6.1-apache<\/p><p># FROM wordpress:php8.1-fpm<\/p><p># if we want to use php-fpm instead<\/p><p># apt update and then install packages we might need<\/p><p>RUN apt update &amp; \\<\/p><p>apt install -y \\<\/p><p>wget<\/p><p># Replace php.ini<\/p><p>COPY php.ini \/usr\/local\/etc\/php<\/p><\/pre>\n<p>Here\u2019s the role of Docker containerization in WordPress scaling strategy:<\/p>\n<p><strong>Portability<\/strong><\/p>\n<p>You can deploy containers on multiple platforms easily, including the development, staging, and production environments.<\/p>\n<p>Since each container ships WordPress with the same packages, add-ons, and configurations, we can maintain consistent performance and compatibility when redeploying it on another machine.<\/p>\n<p><strong>Customization<\/strong><\/p>\n<p>You can modify the Dockerfile to add custom themes, plugins, and packages tailored to your website needs. Then, you can install them automatically as you build the container.<\/p>\n<p>Without Docker, you must set up these themes, plugins, and packages individually after deploying a new WordPress instance. This takes a long time and is more prone to human error.<\/p>\n<p><strong>Configuration<\/strong><\/p>\n<p>Leverage the <strong>WORDPRESS_*<\/strong> environment variables to simplify configuration without directly modifying <strong>wp-config.php<\/strong>. This enables a consistent configuration across containers and makes customization safer since you don\u2019t hard code the setting into the PHP file.<\/p>\n<p><strong>Reliability<\/strong><\/p>\n<p>Docker lets you create multiple identical instances of your WordPress website, which is the core of our horizontal scaling strategy.<\/p>\n<p>Having multiple WordPress containers improves reliability since an instance can take over the operation when the main one crashes. A setup with several containers also enables you to distribute traffic more evenly for load balancing.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-deployment-with-kubernetes\">Deployment with Kubernetes<\/h2>\n<p>The key to making your WordPress instance highly scalable and resilient is utilizing Kubernetes\u2019 container orchestration capabilities.<\/p>\n<p>In Kubernetes, you deploy WordPress containers in <strong>pods<\/strong> \u2013 the smallest deployable units that can easily be scaled up and down to meet changing user demands.<\/p>\n<p>We use pods to deploy and manage multiple identical WordPress instances with the same core files, configuration, and extensions. As explained before, this will be the basis of our horizontal scaling.<\/p>\n<p>Our Kubernetes setup consists of the following:<\/p>\n<p><strong>Horizontal Pod Autoscaler (HPA)<\/strong><\/p>\n<p>We implement HPA to dynamically scale the pods according to traffic. When many users access our website, HPA allocates more pods to distribute the load more evenly and shuts down idle ones.<\/p>\n<div class=\"wp-block-image\">\n<figure data-wp-context=\"{&quot;uploadedSrc&quot;:&quot;https:\\\/\\\/www.hostinger.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/4\\\/2025\\\/01\\\/memory-usage-of-multiple-wordpress-replicas.png&quot;,&quot;figureClassNames&quot;:&quot;aligncenter size-large&quot;,&quot;figureStyles&quot;:null,&quot;imgClassNames&quot;:&quot;wp-image-7248&quot;,&quot;imgStyles&quot;:null,&quot;targetWidth&quot;:1248,&quot;targetHeight&quot;:254,&quot;scaleAttr&quot;:false,&quot;ariaLabel&quot;:&quot;Enlarge image: Memory usage of multiple WordPress replicas&quot;,&quot;alt&quot;:&quot;Memory usage of multiple WordPress replicas&quot;}\" data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"208\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" alt=\"Memory usage of multiple WordPress replicas\" class=\"wp-image-7248\" srcset=\"https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas-1024x208.webp 1024w,https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas-300x61.webp 300w,https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas-768x156.webp 768w,https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas.webp 1248w\" data-lazy-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas-1024x208.webp\"\/><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"208\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas-1024x208.webp\" alt=\"Memory usage of multiple WordPress replicas\" class=\"wp-image-7248\" srcset=\"https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas-1024x208.webp 1024w,https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas-300x61.webp 300w,https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas-768x156.webp 768w,https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/01\/memory-usage-of-multiple-wordpress-replicas.webp 1248w\" sizes=\"(max-width: 1024px) 100vw, 1024px\"\/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge image: Memory usage of multiple WordPress replicas\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"context.imageButtonRight\" data-wp-style--top=\"context.imageButtonTop\"><br \/>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"\/>\n\t\t\t<\/svg><br \/>\n\t\t<\/button><\/figure>\n<\/div>\n<p>In the traditional WordPress setup, only a single instance handles all the traffic. Despite the higher resource pool, this is more unreliable since service limitation and latency can cause bottlenecks.<\/p>\n<p>HPA works by tracking specific metrics on your server, which can be:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Built-in metrics<\/strong> \u2013 resources utilization of the pod, which can be CPU usage or memory consumption. You can set a certain threshold that will trigger HPA to scale your application when the load meets that limit. For example, when the CPU usage exceeds 80%, HPA will run new pods to distribute the load or shut down pods when the usage falls under 50%.<\/li>\n<li><strong>Custom metrics<\/strong> \u2013 HPA also supports custom metrics like Apache server data (for example, the number of active connections, request rate, or response times) or PHP FPM as a trigger for scaling. To integrate custom metrics into Kubernetes, you can use tools like Kubernetes Metrics Server or custom metrics adapters.<\/li>\n<\/ul>\n<p>For a more specific tracking and scaling rule, you can also combine multiple metrics and set a specific number of pods to be activated for each of them.<\/p>\n<p>HPA is useful not only for defining rules to scale your pods but also for predicting regular traffic patterns. This insight enables Kubernetes to scale the WordPress instance ahead of time to anticipate load surges.<\/p>\n<p><strong>Kubernetes Ingress<\/strong><\/p>\n<p>Ingress is a resource that manages external connections to your Kubernetes service clusters. It has several functions that are helpful for scaling WordPress:<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Load balancing<\/strong> \u2013 by default, all user requests are directed to a single back-end service. This can cause unreliability during traffic surges since only a single endpoint handles it. Ingress can act as a load balancer that will route requests directly to the appropriate service, making them more evenly distributed.<\/li>\n<li><strong>SSL\/TLS termination<\/strong> \u2013 Kubernetes ingress controllers can take care of the SSL\/TLS encryption and decryption, which can be resource-intensive. This offloads the workload from the main WordPress application service so it can focus on the operational logic.<\/li>\n<\/ul>\n<p><strong>Environment variables and secrets<\/strong><\/p>\n<p>Saving sensitive information like access credentials in virtual environments is a security best practice. Since you don\u2019t hardcode such information directly into your WordPress files, it is less likely to get leaked.<\/p>\n<p>In Kubernetes, you can also store data in a small object called a <strong>secret<\/strong>, which you can then pass as environment variables in the pod through a volume. The YAML configuration might look as follows:<\/p>\n<pre class=\"wp-block-preformatted has-small-font-size\">spec:<p>\u00a0\u00a0containers:<\/p><p>\u00a0\u00a0\u00a0\u00a0env:<\/p><p>\u00a0\u00a0\u00a0\u00a0- name: WORDPRESS_DB_USER<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0valueFrom:<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0secretKeyRef:<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0name: db-user<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0key: db-username<\/p><\/pre>\n<p>By default, storing data in secrets is more secure than using environment variables since it is independent of the pods. This means secrets and their data are less likely to be exposed when managing pods.<\/p>\n<p>Data in secret is encoded into <strong>base64<\/strong> strings and can be encrypted at rest. You can also make <strong>secrets<\/strong> immutable to prevent unauthorized modifications that can cause incidents.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-challenges-and-solutions\">Challenges and solutions<\/h2>\n<p>While Docker and Kubernetes are excellent solutions for scaling our WordPress deployment, we encountered several challenges when using these technologies. Here are some of the difficulties and how we managed to navigate through them:<\/p>\n<p><strong>Using Apache metrics with HPA<\/strong><\/p>\n<p>Kubernetes\u2019 HPA works well when using built-in metrics like CPU or RAM usage. However, we found out that integrating a more specific external parameter (like the number of busy Apache workers or detailed PHP-FPM metrics) is quite challenging.<\/p>\n<p>Using specific metrics to trigger the scaling requires setting up a custom exporter and exposing the data for Kubernetes to read.<\/p>\n<p>A simpler solution for this problem is to use a third-party program that offers a tool for importing the metrics. One example is the <a href=\"https:\/\/github.com\/bitnami\/charts\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Bitnami helm chart<\/a>, which could enable Apache metric tracking on HPA out of the box.<\/p>\n<p><strong>Maintaining consistency between pods<\/strong><\/p>\n<p>When deploying WordPress on Kubernetes pods, you must ensure that each instance is identical. Each pod must have the same core files, plugins, media files, and other data.<\/p>\n<p>In production, maintaining consistency across pods can be tedious since you can\u2019t use a Docker image as you would during deployment.<\/p>\n<p>To make things simpler, our solution was to set up a Network File System (NFS) storage for the plugins that each pod can read and write. This storage houses data that will update over time, like <strong>\/var\/www\/html\/wp-content\/plugins<\/strong>.<\/p>\n<p>For the NFS storage, you should use a cloud solution that can be bound to multiple pods, like AWS EFS or GCP Filestore.<\/p>\n<p>To connect pods to your NFS storage, use the <strong>PersistentVolumeClaim<\/strong> request to specify the data endpoint. Then, assign the RWX (ReadWriteMany) permission to ensure your pods can access the data.<\/p>\n<p>Your pods\u2019 PersistentVolumeClaim and Deployment configuration might look as follows:<\/p>\n<pre class=\"wp-block-preformatted has-small-font-size\">apiVersion: v1<p>kind: PersistentVolumeClaim<\/p><p>metadata:<\/p><p>\u00a0\u00a0name: plugins<\/p><p>spec:<\/p><p>\u00a0\u00a0accessModes:<\/p><p>\u00a0\u00a0- ReadWriteMany<\/p><p>\u00a0\u00a0storageClassName: nfs-client<\/p><p>\u00a0\u00a0resources:<\/p><p>\u00a0\u00a0\u00a0\u00a0requests:<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0storage: 20G<\/p><p>---<\/p><p>apiVersion: apps\/v1<\/p><p>kind: Deployment<\/p><p>metadata:<\/p><p>\u00a0\u00a0name: wordpress<\/p><p>spec:<\/p><p>...<\/p><p>\u00a0\u00a0\u00a0\u00a0volumeMounts:<\/p><p>\u00a0\u00a0\u00a0\u00a0- name: wordpress-plugins<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0mountPath: \/var\/www\/html\/wp-content\/plugins<\/p><p>\u00a0\u00a0volumes:<\/p><p>\u00a0\u00a0- name: wordpress-plugins<\/p><p>\u00a0\u00a0\u00a0\u00a0persistentVolumeClaim:<\/p><p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0claimName: plugins<\/p><\/pre>\n<p><strong>Using a reliable database<\/strong><\/p>\n<p>Along with the WordPress instance, optimizing your database is important to prevent bottlenecks and data loss. The database must also be able to maintain its performance and uptime during high-traffic times.<\/p>\n<p>We can achieve this using a robust database setup (preferably managed) with reliable safety features. For example, it should have automatic failover and built-in replication.<\/p>\n<p>This configuration ensures data integrity and service availability even during failures or heavy loads.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-key-takeaway\">Key takeaway<\/h2>\n<p>As our WordPress deployment grows, our main concern is how to scale it to handle millions of visitors. We found out that by using Docker and Kubernetes, we can create a scalable website that is agile and reliable, even under high load.<\/p>\n<p>The main idea is to deploy multiple WordPress containers as pods, which we scale dynamically using Kubernetes\u2019 HPA. This allows our setup to automatically distribute load evenly across pods to optimize resource usage.<\/p>\n<p>Like us, you can optimize your own WordPress deployment even further by leveraging Kubernetes\u2019 built-in features like ingress and custom HPA metrics. Paired with a robust cloud infrastructure for the database and dynamic data storage, you can set up a powerhouse to unleash WordPress\u2019s full potential.<\/p>\n<div id=\"the-author-section\" class=\"col-12 bg-ghost-white\">\n<div class=\"d-flex flex-column flex-sm-row ml-0 justify-content-center justify-content-sm-start\">\n<div class=\"author-avatar\">\n                          <img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" bad-src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" http:=\"\" class=\"border-radius-50p\" alt=\"Author\" src=\"https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/02\/2025-02-05_08-27-150x150.webp\"\/><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.hostinger.com\/blog\/wp-content\/uploads\/sites\/4\/2025\/02\/2025-02-05_08-27-150x150.webp\" class=\"border-radius-50p\" alt=\"Author\"\/>\n                    <\/div>\n<div class=\"author-info align-items-sm-start pl-20-sm\">\n            <span class=\"author\">The author<\/span><\/p>\n<p class=\"author-name\">Dominykas Norkus<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"description mt-15 mt-30-md\">\n<p class=\"text-center text-sm-left\">\n            Dominykas, a Senior System Engineer at Hostinger, ensures the efficiency, scalability, and reliability of our systems. With a passion for solving complex problems, he thrives on tackling technical challenges and finding creative solutions. In his free time, Dominykas enjoys experimenting with new technologies, exploring AI abilities, and discovering innovative ideas.        <\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div id=\"the-author-section\" class=\"col-12 bg-ghost-white\">\n<div class=\"d-flex flex-column flex-sm-row ml-0 justify-content-center justify-content-sm-start\">\n<div class=\"author-avatar\">\n                          <img decoding=\"async\" bad-src=\"data:image\/svg+xml,%3Csvg%20xmlns=\" http:=\"\" class=\"border-radius-50p\" alt=\"Author\" src=\"https:\/\/secure.gravatar.com\/avatar\/959b33c75a85c9aab800fa4231751fa3?s=96&amp;d=mm&amp;r=g\"\/><img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/959b33c75a85c9aab800fa4231751fa3?s=96&amp;d=mm&amp;r=g\" class=\"border-radius-50p\" alt=\"Author\"\/>\n                    <\/div>\n<div class=\"author-info align-items-sm-start pl-20-sm\">\n            <span class=\"author\">The Co-author<\/span><\/p>\n<p class=\"author-name\">Aris Sentika<\/p>\n<\/p><\/div>\n<\/p><\/div>\n<div class=\"description mt-15 mt-30-md\">\n<p class=\"text-center text-sm-left\">\n            Aris is a Content Writer specializing in Linux and WordPress development. He has a passion for networking, front-end web development, and server administration. By combining his IT and writing experience, Aris creates content that helps people easily understand complex technical topics to start their online journey. Follow him on <a href=\"https:\/\/www.linkedin.com\/in\/aris-sentika\" data-wpel-link=\"external\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">LinkedIn<\/a>.        <\/p>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>For developers and engineers alike, WordPress is an excellent solution for building a versatile website that end-users can easily operate, maintain, and manage. At Hostinger, we also build our pages and manage content using WordPress. However, our big concern was: Is WordPress reliable enough to handle up to millions of visitors? Turns out, with the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":71201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[95],"tags":[11240,37327,37326,15462,18117],"dealstore":[],"offerexpiration":[],"class_list":["post-71200","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-internet-business","tag-approach","tag-cloudnative","tag-kubernetes","tag-scaling","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Scaling WordPress with Kubernetes: A cloud-native approach - Som2ny Network<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fivemor.com\/?p=71200\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Scaling WordPress with Kubernetes: A cloud-native approach - Som2ny Network\" \/>\n<meta property=\"og:description\" content=\"For developers and engineers alike, WordPress is an excellent solution for building a versatile website that end-users can easily operate, maintain, and manage. At Hostinger, we also build our pages and manage content using WordPress. However, our big concern was: Is WordPress reliable enough to handle up to millions of visitors? Turns out, with the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fivemor.com\/?p=71200\" \/>\n<meta property=\"og:site_name\" content=\"Som2ny Network\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-06T09:29:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"208\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fivemor.com\/?p=71200#article\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/?p=71200\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\"},\"headline\":\"Scaling WordPress with Kubernetes: A cloud-native approach\",\"datePublished\":\"2025-02-06T09:29:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=71200\"},\"wordCount\":1615,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=71200#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png\",\"keywords\":[\"Approach\",\"cloudnative\",\"Kubernetes\",\"scaling\",\"wordpress\"],\"articleSection\":[\"Internet Business\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fivemor.com\/?p=71200#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fivemor.com\/?p=71200\",\"url\":\"https:\/\/fivemor.com\/?p=71200\",\"name\":\"Scaling WordPress with Kubernetes: A cloud-native approach - Som2ny Network\",\"isPartOf\":{\"@id\":\"https:\/\/fivemor.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/fivemor.com\/?p=71200#primaryimage\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/?p=71200#primaryimage\"},\"thumbnailUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png\",\"datePublished\":\"2025-02-06T09:29:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/fivemor.com\/?p=71200#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fivemor.com\/?p=71200\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/?p=71200#primaryimage\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png\",\"width\":1024,\"height\":208},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fivemor.com\/?p=71200#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/fivemor.com\/?bp_activities=1\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scaling WordPress with Kubernetes: A cloud-native approach\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fivemor.com\/#website\",\"url\":\"https:\/\/fivemor.com\/\",\"name\":\"Som2ny Network\",\"description\":\"Daily Deals\",\"publisher\":{\"@id\":\"https:\/\/fivemor.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fivemor.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/fivemor.com\/#organization\",\"name\":\"Som2ny Network\",\"url\":\"https:\/\/fivemor.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"contentUrl\":\"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png\",\"width\":300,\"height\":86,\"caption\":\"Som2ny Network\"},\"image\":{\"@id\":\"https:\/\/fivemor.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/fivemor.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/fivemor.com\"],\"url\":\"https:\/\/fivemor.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Scaling WordPress with Kubernetes: A cloud-native approach - Som2ny Network","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fivemor.com\/?p=71200","og_locale":"en_US","og_type":"article","og_title":"Scaling WordPress with Kubernetes: A cloud-native approach - Som2ny Network","og_description":"For developers and engineers alike, WordPress is an excellent solution for building a versatile website that end-users can easily operate, maintain, and manage. At Hostinger, we also build our pages and manage content using WordPress. However, our big concern was: Is WordPress reliable enough to handle up to millions of visitors? Turns out, with the [&hellip;]","og_url":"https:\/\/fivemor.com\/?p=71200","og_site_name":"Som2ny Network","article_published_time":"2025-02-06T09:29:32+00:00","og_image":[{"width":1024,"height":208,"url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fivemor.com\/?p=71200#article","isPartOf":{"@id":"https:\/\/fivemor.com\/?p=71200"},"author":{"name":"admin","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371"},"headline":"Scaling WordPress with Kubernetes: A cloud-native approach","datePublished":"2025-02-06T09:29:32+00:00","mainEntityOfPage":{"@id":"https:\/\/fivemor.com\/?p=71200"},"wordCount":1615,"commentCount":0,"publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"image":{"@id":"https:\/\/fivemor.com\/?p=71200#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png","keywords":["Approach","cloudnative","Kubernetes","scaling","wordpress"],"articleSection":["Internet Business"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fivemor.com\/?p=71200#respond"]}]},{"@type":"WebPage","@id":"https:\/\/fivemor.com\/?p=71200","url":"https:\/\/fivemor.com\/?p=71200","name":"Scaling WordPress with Kubernetes: A cloud-native approach - Som2ny Network","isPartOf":{"@id":"https:\/\/fivemor.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/fivemor.com\/?p=71200#primaryimage"},"image":{"@id":"https:\/\/fivemor.com\/?p=71200#primaryimage"},"thumbnailUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png","datePublished":"2025-02-06T09:29:32+00:00","breadcrumb":{"@id":"https:\/\/fivemor.com\/?p=71200#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fivemor.com\/?p=71200"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/?p=71200#primaryimage","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2025\/02\/memory-usage-of-multiple-wordpress-replicas-1024x208.png","width":1024,"height":208},{"@type":"BreadcrumbList","@id":"https:\/\/fivemor.com\/?p=71200#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/fivemor.com\/?bp_activities=1"},{"@type":"ListItem","position":2,"name":"Scaling WordPress with Kubernetes: A cloud-native approach"}]},{"@type":"WebSite","@id":"https:\/\/fivemor.com\/#website","url":"https:\/\/fivemor.com\/","name":"Som2ny Network","description":"Daily Deals","publisher":{"@id":"https:\/\/fivemor.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fivemor.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/fivemor.com\/#organization","name":"Som2ny Network","url":"https:\/\/fivemor.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/","url":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","contentUrl":"https:\/\/fivemor.com\/wp-content\/uploads\/2026\/07\/4a0953c4-logo-300x86-1.png","width":300,"height":86,"caption":"Som2ny Network"},"image":{"@id":"https:\/\/fivemor.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/fivemor.com\/#\/schema\/person\/b85e3c3dc0e1daea076524dc8810c371","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/fivemor.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/729ae85bf62b9917e93538db2f2688ca?s=96&r=g&default=https%3A%2F%2Ffivemor.com%2Fwp-content%2Fplugins%2Fbuddypress-first-letter-avatar%2Fimages%2Fdefault%2F96%2Flatin_a.png","caption":"admin"},"sameAs":["https:\/\/fivemor.com"],"url":"https:\/\/fivemor.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/71200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71200"}],"version-history":[{"count":0,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/posts\/71200\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=\/wp\/v2\/media\/71201"}],"wp:attachment":[{"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71200"},{"taxonomy":"dealstore","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdealstore&post=71200"},{"taxonomy":"offerexpiration","embeddable":true,"href":"https:\/\/fivemor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fofferexpiration&post=71200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}