27 lines
498 B
YAML
27 lines
498 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: wordpress
|
||
|
labels:
|
||
|
app: wordpress
|
||
|
spec:
|
||
|
replicas: 1
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: wordpress
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: wordpress
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: wordpress
|
||
|
image: wordpress
|
||
|
imagePullPolicy: Never
|
||
|
livenessProbe:
|
||
|
exec:
|
||
|
command:
|
||
|
- /bin/sh
|
||
|
- -c
|
||
|
- 'pgrep telegraf && pgrep php-fpm7 && pgrep nginx'
|