Skip to content

Instantly share code, notes, and snippets.

@josejuansanchez
Created December 1, 2021 20:57
Show Gist options
  • Save josejuansanchez/d665eea6b833bd808b9634be264f792c to your computer and use it in GitHub Desktop.
Save josejuansanchez/d665eea6b833bd808b9634be264f792c to your computer and use it in GitHub Desktop.
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