añadido apolo
This commit is contained in:
48
apolo/deployments/deploy-rabbitmq.yaml
Normal file
48
apolo/deployments/deploy-rabbitmq.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: apolo-rabbitmq
|
||||
namespace: apolo
|
||||
labels:
|
||||
app.kubernetes.io/name: apolo-rabbitmq
|
||||
app.kubernetes.io/part-of: apolo
|
||||
app.kubernetes.io/component: rabbitmq
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: apolo-rabbitmq
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: apolo-rabbitmq
|
||||
app.kubernetes.io/part-of: apolo
|
||||
app.kubernetes.io/component: rabbitmq
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: harbor-cred
|
||||
containers:
|
||||
- name: rabbitmq
|
||||
image: harbor.c2et.com/xrf-ssl/xrf-rabbitmq:6.0
|
||||
imagePullPolicy: IfNotPresent
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: apolo-rabbitmq-secret
|
||||
ports:
|
||||
- { name: amqp, containerPort: 5672 }
|
||||
- { name: mgmt, containerPort: 15672 }
|
||||
readinessProbe:
|
||||
tcpSocket: { port: 5672 }
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
tcpSocket: { port: 5672 }
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /var/lib/rabbitmq
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: apolo-rabbitmq-data
|
||||
Reference in New Issue
Block a user