---
title: Deploying WordPress on a Scaleway Kubernetes cluster with the Application Library
description: Learn how to deploy WordPress on Kubernetes using the Easy Deploy feature in a few clicks
tags: kubernetes wordpress docker
products:
  - kubernetes
dates:
  validation: 2025-03-27
  posted: 2022-04-07
  validation_frequency: 12
difficulty: beginner
usecase:
  - application-hosting
ecosystem:
  - scaleway-only
---
import image from './assets/scaleway-kubernetes-easy-deploy.webp'
import image2 from './assets/scaleway-kubernetes-deploy-app.webp'
import image3 from './assets/scaleway-kubernetes-yaml-editor.webp'
import image4 from './assets/scaleway-kubernetes-deploy-app-summary.webp'
import image5 from './assets/scaleway-kubernetes-deployed-apps-list.webp'
import image6 from './assets/scaleway-kubernetes-kubectl-all.webp'
import image7 from './assets/scaleway-kubernetes-wordpress.webp'

import Requirements from '@macros/iam/requirements.mdx'


WordPress is a well-known CMS (**C**ontent **M**anagement **S**ystem) allowing you to create evolving websites.

This tutorial teaches you how to install WordPress on a Scaleway Kubernetes Kapsule or Kosmos cluster by using the [Application Library in the Easy-Deploy feature](/kubernetes/how-to/enable-easy-deploy/).

You can perform most of these steps directly from the Scaleway console.

<Requirements />

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- A Scaleway [Kubernetes Kapsule or Kosmos cluster](/kubernetes/how-to/create-cluster/)
- Installed [kubectl](/kubernetes/how-to/connect-cluster-kubectl/) on your local computer

## Creating a Kubernetes Kapsule cluster and deploying WordPress

1. Go to the [Kubernetes dashboard](https://console.scaleway.com/kapsule/clusters) in the Scaleway console.
2. Select the cluster you want to deploy WordPress to.
3. Select the **Easy Deploy** tab.
    <Lightbox image={image} alt="" />

    The Application Library allows you to deploy a WordPress CMS application. You can use the search bar to locate the application.
4. Click **Deploy an application**.
5. Select **Application Library** as the application type.
    <Lightbox image={image2} alt="" />
6. Search for the application you want to deploy using the search bar.
    <Lightbox scr="scaleway-kubernetes-wordpress-app.webp" alt="" />

    The default configuration for the application is set automatically in a [YAML](https://yaml.org) format when you select it.
    You can edit the configuration to fit to your application deployment within the YAML editor displayed.

    <Lightbox image={image3} alt="" />
7. Enter a name for your application and the Kubernetes namespace you want to deploy it to.
    <Message type="important">
      If no namespace is chosen, your application will be deployed in your cluster's `default` namespace. Deploying in the `default` namespace is not a good practice and it is highly recommended to split your deployments, services, and applications in separate namespaces, thus allowing a more secure configuration of your cluster.
    </Message>
8. Once configured, click **Deploy an application** to deploy your application on your Kubernetes cluster.
    <Lightbox image={image4} alt="" />

    You are then redirected to the listing page of our deployed applications.

    <Lightbox image={image5} alt="" />
9. Check that the deployment is successful by running the command `kubectl get all -n cms-ns` in your terminal.
    <Lightbox image={image6} alt="" />

    You can see that your WordPress application is running, and has even created a [MariaDB](https://mariadb.org/) database within your cluster to store our data on [Scaleway Block Storage](https://www.scaleway.com/en/object-storage/).
    You also have access to the Load Balancer that was created to access your WordPress using the external IP displayed.
10. Access your WordPress application by entering the external IP provided in a web browser. The WordPress website displays in your browser.
    <Lightbox image={image7} alt="" />

    <Message type="note">
    * When updating the configuration of your application, you may run into some errors returned by the API. Read these errors carefully, as they contain the instructions you need to solve them.<br />
    * When you update your WordPress application setup, you will run into an error that asks you to use the correct password to update the application.<br /><br />

    This behavior is a security measure as the Application Library automatically creates the missing credentials that are not set at the deployment of the application and stores them into secrets within your Kubernetes cluster.<br />
    To retrieve these secrets, you might need to run command lines such as the following:<br />
    `kubectl get secret --namespace "cms-ns" wordpress-mariadb -o jsonpath="{.data.mariadb-password}" | base64 --decode`<br />
    All required instructions are given in the error message.
    </Message>