无法在Azure Kubernetes中获取IBM Websphere MQ映像的Web UI

时间:2019-05-30 19:21:30

标签: ibm-mq kubernetes-helm azure-kubernetes azure-files

我们正在尝试使用Azure文件系统启动一个有状态的MQ管理器,将其作为永久存储安装到Azure Kubernetes群集中的数据上。为此,在Azure中创建文件共享,并在Azure Kubernetes中使用文件共享帐户名和帐户密钥创建秘密,如下所示。

kubectl create secret generic mq-secret --from-literal=azurestorageaccountname=**** --from-literal=azurestorageaccountkey=*********************

之后,我们使用此Azure文件共享创建了用于持久性存储的PVC和PV。这是我的PVC,PV和部署配置文件。

---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: mqfilesharepv
  labels:
    usage: mqfilesharepv
spec:
  capacity:
    storage: 2Gi
  accessModes:
    - ReadWriteMany
  persistentVolumeReclaimPolicy: Retain
  azureFile:
    # Replace with your secret name
    secretName: mq-secret
    # Replace with correct storage share name
    shareName: mqfileshare
    # In case the secret is stored in a different namespace
    #shareNamespace: default
    readOnly: false
  mountOptions:
  - dir_mode=0755
  - file_mode=0755
  - uid=999
  - gid=999
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: mqfilesharepvc
  annotations:
    volume.beta.kubernetes.io/storage-class: ""
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 2Gi
  selector:
    matchLabels:
      usage: mqfilesharepv
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: ibmmq-deployment1
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: ibmmq1
        version: v4
    spec:
      securityContext:
        fsGroup: 999
        #runAsGroup: 999
        runAsUser: 0
      containers:
      - name: ibmmq1
        #image: miraclelabsregistry008.azurecr.io/ibmmq:9.1.1.0
        image: ibmcom/mq:9.1.2.0
        env:
         - name: LICENSE
           value: accept
         - name: MQ_QMGR_NAME
           value: QM1
        imagePullPolicy: IfNotPresent
        ports:
        - name: port1414
          containerPort: 1414
        - name: port9443
          containerPort: 9443
        volumeMounts:
        - mountPath: "/mnt/mqm"
          name: test-storage
      volumes:
      - name: test-storage
        persistentVolumeClaim:
        claimName: mqfilesharepvc
---
apiVersion: v1
kind: Service
metadata:
  name: qm
  labels:
    app: ibmmq1
    version: v4
spec:
  type:LoadBalancer
  ports:
  - name: port1414
  port: 1414
  - name: port9443
  port: 9443
  selector:
    app: ibmmq1
    version: v4

现在,我们能够在Azure Kubernetes中部署MQ映像,但是pod多次重新启动并生成日志,如下所示,并且无法获取IBM Websphere MQ的UI。

  

2019-05-30T16:56:48.340Z启动Web服务器   2019-05-30T16:56:53.650Z错误22启动Web服务器:   启动服务器mqweb。   服务器mqweb启动失败。检查服务器日志以获取详细信息。

     

2019-05-30T16:57:07.113Z crtmqm返回71   2019-05-30T16:57:07.113Z AMQ8101S:发生IBM MQ错误(893)。

     

2019-05-30T16:57:07.114Z / usr / bin / crtmqm:退出状态71

那么,可能是什么问题?有人可以帮助我解决此错误吗?

0 个答案:

没有答案