Deploy Apache
1. Review PHP/Apache deployment YAML
Inspect the YAML file ~/workshop/k3s/php-apache.yaml and validate the contents using the following command:
This file contains the configuration for the PHP/Apache deployment and will create a new StatefulSet with a single replica of the PHP/Apache image.
A stateless application does not care which network it is using, and it does not need permanent storage. Examples of stateless apps may include web servers such as Apache, Nginx, or Tomcat.
2. Deploy PHP/Apache
Create an apache namespace then deploy the PHP/Apache application to the cluster.
Create the apache namespace:
Deploy the PHP/Apache application:
Ensure the deployment has been created:
Workshop Question
What metrics for your Apache instance are being reported in the Apache web servers (OTel) Navigator?
Workshop Question
Using Log Observer what is the issue with the PHP/Apache deployment?
Tip: Adjust your filters to use: k8s.namespace.name = apache and k8s.cluster.name = <your_cluster>.