forked from sebastian-colomar/phpinfo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkube-static-po.yaml
43 lines (43 loc) · 940 Bytes
/
kube-static-po.yaml
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
38
39
40
41
42
43
apiVersion: v1
kind: Pod
metadata:
name: phpinfo-po-echo-static
labels:
app: phpinfo-po-echo-static
spec:
containers:
- name: phpinfo-container
args:
- -f
- index.php
- -S
- 0.0.0.0:8080
command:
- php
image: docker.io/library/php:alpine
securityContext:
runAsGroup: 65534
runAsUser: 65534
volumeMounts:
- name: phpinfo-volume
mountPath: /src/
readOnly: true
workingDir: /src/
initContainers:
- name: phpinfo-init-container
args:
- echo '<?php phpinfo();?>' 1> index.php
command:
- sh
- -c
image: docker.io/library/busybox:latest
volumeMounts:
- name: phpinfo-volume
mountPath: /src/
readOnly: false
workingDir: /src/
volumes:
- name: phpinfo-volume
emptyDir:
medium: Memory
sizeLimit: 1Mi