在带有ibmcom / ace-mq映像的ACE-MQ的kubernetes部署中,/ var / mqm文件夹正被PV覆盖

时间:2019-08-15 08:41:24

标签: kubernetes ibm-mq

尝试在带有EFS的AWS云中将带有AppConnect的MQ部署为HA解决方案的持久性存储。尝试在安装路径中保留/ var / mqm(也尝试使用mnt / mqm)进行部署时,它被空白的持久性存储数据覆盖。因此,当pod启动时,我看不到/ var / mqm中的队列管理器或其他文件。

这是使用的deployment.yml


apiVersion: apps/v1beta1
kind: Deployment
metadata: 
  generation: 1
  labels: 
    run: acemq01
  name: acemq01
  namespace: default
spec: 
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 2
  selector: 
    matchLabels: 
      run: acemq01
  strategy: 
    rollingUpdate: 
      maxSurge: 25%
      maxUnavailable: 25%
    type: RollingUpdate
  template: 
    metadata: 
      creationTimestamp: ~
      labels: 
        run: acemq01
    spec: 
      containers: 
        - 
          env: 
            - 
              name: LICENSE
              value: accept
            - 
              name: DOMAIN
              value: cluster
            - 
              name: MQ_QMGR_NAME
              value: MQAWS
          image: ibmcom/ace-mq
          imagePullPolicy: IfNotPresent
          name: acemq01
          resources: {}
          terminationMessagePath: /dev/termination-log
          terminationMessagePolicy: File
          volumeMounts: 
            - 
              mountPath: /var/mqm
              name: pv-volumeef
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
      volumes: 
        - 
          name: pv-volumeef
          persistentVolumeClaim: 
            claimName: efs
status: {}

0 个答案:

没有答案