diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-27 09:59:55 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-27 09:59:55 +0300 |
| commit | e7eddc9a306e5d66451ef82efbeddc5196435703 (patch) | |
| tree | a221d82e6b87f953d94c8d190e114e18b2acc775 /f3s/example-apache-volume-claim/apache-deployment.yaml | |
| parent | 4eb23e409a376320a4c00fbf128604cb5f148e09 (diff) | |
persistent volume example
Diffstat (limited to 'f3s/example-apache-volume-claim/apache-deployment.yaml')
| -rw-r--r-- | f3s/example-apache-volume-claim/apache-deployment.yaml | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/f3s/example-apache-volume-claim/apache-deployment.yaml b/f3s/example-apache-volume-claim/apache-deployment.yaml new file mode 100644 index 0000000..3f16827 --- /dev/null +++ b/f3s/example-apache-volume-claim/apache-deployment.yaml @@ -0,0 +1,29 @@ +# Apache HTTP Server Deployment +apiVersion: apps/v1 +kind: Deployment +metadata: + name: apache-deployment + namespace: test +spec: + replicas: 1 + selector: + matchLabels: + app: apache + template: + metadata: + labels: + app: apache + spec: + containers: + - name: apache + image: httpd:latest + ports: + # Container port where Apache listens + - containerPort: 80 + volumeMounts: + - name: apache-htdocs + mountPath: /usr/local/apache2/htdocs/ + volumes: + - name: apache-htdocs + persistentVolumeClaim: + claimName: example-apache-pvc |
