# Apache HTTP Server Deployment apiVersion: apps/v1 kind: Deployment metadata: name: apache-deployment namespace: test spec: replicas: 2 selector: matchLabels: app: apache template: metadata: labels: app: apache spec: containers: - name: apache image: httpd:latest ports: # Container port where Apache listens - containerPort: 80 readinessProbe: httpGet: path: / port: 80 initialDelaySeconds: 5 periodSeconds: 10 livenessProbe: httpGet: path: / port: 80 initialDelaySeconds: 15 periodSeconds: 10 volumeMounts: - name: apache-htdocs mountPath: /usr/local/apache2/htdocs/ volumes: - name: apache-htdocs persistentVolumeClaim: claimName: example-apache-pvc