-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwordpress-deployment.yaml
More file actions
40 lines (37 loc) · 930 Bytes
/
wordpress-deployment.yaml
File metadata and controls
40 lines (37 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
spec:
replicas: 1
selector:
matchLabels:
app: wordpress
template:
metadata:
labels:
app: wordpress
spec:
containers:
- name: wordpress-app
image: quay.io/stril_60/ubi-wp@sha256:54d4e9817ae68b734c5a9cadd2bbc44d7ad77644b746590a10abbc95e18b25de
imagePullPolicy: Always
ports:
- containerPort: 8080
volumeMounts:
- name: wordpress-data
mountPath: /opt/app-root/src
- name: wp-config-file
mountPath: /opt/app-root/src/wp-config.php
subPath: wp-config.php
volumes:
- name: wp-config-file
configMap:
name: wp-config-php
items:
- key: wp-config.php
path: wp-config.php
- name: wordpress-data
persistentVolumeClaim:
claimName: sei-wordpress-pvc