Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
62 lines (62 sloc) 1.48 KB
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: phpfpm
namespace: production
spec:
replicas: 1
selector:
matchLabels:
app: phpfpm
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: phpfpm
roles: back
stages: production
spec:
containers:
- name: phpfpm
image: "wordpress:php7.2-fpm"
imagePullPolicy: IfNotPresent
env:
- name: TZ
value: "Europe/Madrid"
envFrom:
- configMapRef:
name: phpfpm-conf
- secretRef:
name: phpfpm-secrets
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "200m"
memory: "254Mi"
ports:
- name: phpfpm-port
containerPort: 9000
livenessProbe:
exec:
command: ["pidof", "php-fpm"]
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
readinessProbe:
tcpSocket:
port: phpfpm-port
initialDelaySeconds: 5
periodSeconds: 10
volumeMounts:
- name: wordpress-files
mountPath: /var/www/html
volumes:
- name: wordpress-files
persistentVolumeClaim:
claimName: wordpress-files
You can’t perform that action at this time.