Created
October 7, 2021 14:36
-
-
Save bharathirajatut/1f6a78a2b7f2f98b89faed9243a7bd97 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: php | |
labels: | |
app: php | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: php | |
template: | |
metadata: | |
labels: | |
app: php | |
spec: | |
containers: | |
- name: php | |
image: php:8-apache | |
ports: | |
- containerPort: 80 | |
volumeMounts: | |
- name: test-volume | |
mountPath: /var/www/html | |
volumes: | |
- name: test-volume | |
hostPath: | |
path: /php-app-data | |
type: Directory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment