Created
December 1, 2021 20:57
-
-
Save josejuansanchez/d665eea6b833bd808b9634be264f792c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: deployment-webserver | |
labels: | |
app: php-apache | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: php-apache | |
template: | |
metadata: | |
labels: | |
app: php-apache | |
spec: | |
volumes: | |
- name: volumen-webserver | |
persistentVolumeClaim: | |
claimName: pvc-webserver | |
containers: | |
- name: contenedor-php-apache | |
image: php:7.4-apache | |
ports: | |
- name: http-server | |
containerPort: 80 | |
volumeMounts: | |
- mountPath: "/var/www/html" | |
name: volumen-webserver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment