-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
34 lines (33 loc) · 896 Bytes
/
deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: mobile-store
namespace: shamil
spec:
replicas: 1
selector:
matchLabels:
app: mobile-store
template:
metadata:
labels:
app: mobile-store
spec:
containers:
- name: nginx-php
image: harbor.strikerlulu.me/coding-strikerz/mobile-store:v3
imagePullPolicy: Always
ports:
- containerPort: 8080
# securityContext:
# runAsUser: 0
env:
- name: MYSQL_HOST
value: mysql
volumeMounts:
- name: mobile-store-upload-volume
mountPath: /var/www/html/uploads # Replace with the path where you want to mount the PV inside the container
volumes:
- name: mobile-store-upload-volume
persistentVolumeClaim:
claimName: mobile-store-uploads