|
@@ -1,5 +1,5 @@
|
|
kind: StatefulSet
|
|
kind: StatefulSet
|
|
-apiVersion: apps/v1beta1
|
|
|
|
|
|
+apiVersion: apps/v1
|
|
metadata:
|
|
metadata:
|
|
labels:
|
|
labels:
|
|
app: rmq-cluster
|
|
app: rmq-cluster
|
|
@@ -59,7 +59,7 @@ spec:
|
|
value: rabbit@$(POD_NAME).rmq-cluster.$(POD_NAMESPACE).svc.cluster.local
|
|
value: rabbit@$(POD_NAME).rmq-cluster.$(POD_NAMESPACE).svc.cluster.local
|
|
- name: RABBITMQ_CONFIG_FILE
|
|
- name: RABBITMQ_CONFIG_FILE
|
|
value: /var/lib/rabbitmq/rabbitmq.conf
|
|
value: /var/lib/rabbitmq/rabbitmq.conf
|
|
- image: rabbitmq:3.7-management
|
|
|
|
|
|
+ image: registry.cn-beijing.aliyuncs.com/dotbalo/rabbitmq:3.7-management
|
|
imagePullPolicy: IfNotPresent
|
|
imagePullPolicy: IfNotPresent
|
|
livenessProbe:
|
|
livenessProbe:
|
|
exec:
|
|
exec:
|
|
@@ -87,9 +87,9 @@ spec:
|
|
- mountPath: /etc/rabbitmq
|
|
- mountPath: /etc/rabbitmq
|
|
name: config-volume
|
|
name: config-volume
|
|
readOnly: false
|
|
readOnly: false
|
|
- - mountPath: /var/lib/rabbitmq
|
|
|
|
- name: rabbitmq-storage
|
|
|
|
- readOnly: false
|
|
|
|
|
|
+# - mountPath: /var/lib/rabbitmq
|
|
|
|
+# name: rabbitmq-storage
|
|
|
|
+# readOnly: false
|
|
serviceAccountName: rmq-cluster
|
|
serviceAccountName: rmq-cluster
|
|
terminationGracePeriodSeconds: 30
|
|
terminationGracePeriodSeconds: 30
|
|
volumes:
|
|
volumes:
|
|
@@ -101,13 +101,13 @@ spec:
|
|
path: enabled_plugins
|
|
path: enabled_plugins
|
|
name: rmq-cluster-config
|
|
name: rmq-cluster-config
|
|
name: config-volume
|
|
name: config-volume
|
|
- volumeClaimTemplates:
|
|
|
|
- - metadata:
|
|
|
|
- name: rabbitmq-storage
|
|
|
|
- spec:
|
|
|
|
- accessModes:
|
|
|
|
- - ReadWriteMany
|
|
|
|
- storageClassName: "rmq-storage-class"
|
|
|
|
- resources:
|
|
|
|
- requests:
|
|
|
|
- storage: 4Gi
|
|
|
|
|
|
+# volumeClaimTemplates:
|
|
|
|
+# - metadata:
|
|
|
|
+# name: rabbitmq-storage
|
|
|
|
+# spec:
|
|
|
|
+# accessModes:
|
|
|
|
+# - ReadWriteMany
|
|
|
|
+# storageClassName: "rmq-storage-class"
|
|
|
|
+# resources:
|
|
|
|
+# requests:
|
|
|
|
+# storage: 4Gi
|