añadido apolo
This commit is contained in:
52
apolo/deployments/deploy-consumer.yaml
Normal file
52
apolo/deployments/deploy-consumer.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: apolo-consumer
|
||||
namespace: apolo
|
||||
labels:
|
||||
app.kubernetes.io/name: apolo-consumer
|
||||
app.kubernetes.io/part-of: apolo
|
||||
app.kubernetes.io/component: consumer
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: apolo-consumer
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: apolo-consumer
|
||||
app.kubernetes.io/part-of: apolo
|
||||
app.kubernetes.io/component: consumer
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harbor-cred
|
||||
containers:
|
||||
- name: consumer
|
||||
image: harbor.c2et.com/xrf-ssl/xrf-consumer:6.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
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
|
||||
resources:
|
||||
requests:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
limits:
|
||||
cpu: "500m"
|
||||
memory: "512Mi"
|
||||
# Si necesitas que este pod resuelva FQDN internos a 200.10 vía tu CoreDNS:
|
||||
# dnsPolicy: None
|
||||
# dnsConfig:
|
||||
# nameservers: [ "192.168.200.11" ]
|
||||
Reference in New Issue
Block a user