añadido apolo
This commit is contained in:
54
apolo/deployments/deploy-php.yaml
Normal file
54
apolo/deployments/deploy-php.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: apolo-php
|
||||
namespace: apolo
|
||||
labels:
|
||||
app.kubernetes.io/name: apolo-php
|
||||
app.kubernetes.io/part-of: apolo
|
||||
app.kubernetes.io/component: php
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: apolo-php
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: apolo-php
|
||||
app.kubernetes.io/part-of: apolo
|
||||
app.kubernetes.io/component: php
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harbor-cred
|
||||
containers:
|
||||
- name: php-fpm
|
||||
image: harbor.c2et.com/xrf-ssl/xrf-php:6.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: php-fpm
|
||||
containerPort: 9000
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: apolo-backend-secret
|
||||
env:
|
||||
- name: DATABASE_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: apolo-db-url
|
||||
key: DATABASE_URL
|
||||
- name: MESSENGER_TRANSPORT_DSN
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: apolo-rabbit-dsn
|
||||
key: MESSENGER_TRANSPORT_DSN
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 9000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 9000
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 20
|
||||
Reference in New Issue
Block a user