WordPress
- Canonical IS DevOps
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 87 | 07 Mar 2024 | |
latest/stable | 13 | 06 Mar 2023 | |
latest/edge | 118 | 08 Oct 2024 | |
latest/edge | 15 | 30 Mar 2023 |
juju deploy wordpress-k8s
Deploy Kubernetes operators easily with Juju, the Universal Operator Lifecycle Manager. Need a Kubernetes cluster? Install MicroK8s to create a full CNCF-certified Kubernetes system in under 60 seconds.
Platform:
Relations
Peer relations
When deploying multiple replications of the wordpress-k8s charm, peer relations are set up to
ensure synchronization of data among replications. Namely, secrets and admin credentials are shared
among peers. See more about the secrets in the rotate-wordpress-secrets
action of the
reference documentation.
database
The database relation is the standard database relation in accordance with the latest data platform
library. It is a required relation for wordpress-k8s charm to become active. It provides a
connection with mysql_client
interface, meaning that any charms supporting mysql client can
connect to the wordpress-k8s charm. It should be noted that the connection port on the database
side must be on 3306.
ingress
Ingress interface provides external http/https access to the WordPress application along with other
additional capabilities depending on the ingress charm. The wordpress-k8s charm’s ingress relation
is best enhanced with the nginx-ingress-integrator
charm, providing additional capabilities such as ModSecurity enabled
Web Application Firewall (WAF) through the wordpress-k8s charm
configuration parameter use_nginx_ingress_modsec
. The ingress relation interface is subject to
renaming due to additional ingress interface definition supported by the Traefik charm.
metrics-endpoint
This interface is a part of the COS integration to enhance metrics observability. The wordpress-k8s
charm satisfies the prometheus_scrape
interface as a provider by exposing Open Metrics compliant
/metrics
endpoint. Requires prometheus-k8s charm. Learn
more about COS here.
logging
Logging relation is a part of the COS integration to enhance logging observability. The wordpress-k8s charm satisfies the loki_push_api by integrating promtail that pushes apache logs to Loki. Requires loki-k8s charm. Learn more about COS here.
grafana-dashboard
Grafana-dashboard is a part of the COS integration to enhance observability. This relation provides
a pre-made dashboard used for monitoring Apache server hosting WordPress. The wordpress-k8s charm
satisfies the grafana_dashboard
interface by providing the pre-made dashboard template to the
Grafana relation data bag under the “dashboards” key. Requires Prometheus datasource to be already
integrated with Grafana.