App Connect

 View Only
Expand all | Collapse all

Deployment of App Connect dashboard - IKS

  • 1.  Deployment of App Connect dashboard - IKS

    Posted Wed August 04, 2021 08:33 AM
    Edited by Karen Broughton-Mabbitt Thu August 05, 2021 03:51 AM
    Hello,

    My goal is to deploy App Connect in IBM IKS using App connect operator. So far, I have deployed subscription & app connect operator. Now, I'm struck with dashboard deployment. 

    In IBM Kubernetes cluster, there are no file-based storages classes available, not sure if this is ideal or not. So, then want to use PVC claim. Here are my yaml files. 

    PV : 
    apiVersion: v1
    kind: PersistentVolume
    metadata:
      name: ibm-appconn-pv
      namespace: ibm-appconn-ns
    spec:
      storageClassName: manual
      capacity:
        storage: 10Gi
      accessModes:
        - ReadWriteMany
      hostPath:
        path: "/mnt/data"
    ​


    PVC: 
    apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      name: ibm-appconn-pvc
      namespace: ibm-appconn-ns
    spec:
      storageClassName: manual
      accessModes:
        - ReadWriteMany
      resources:
        requests:
          storage: 5Gi​


    Dashboard: 

    apiVersion: appconnect.ibm.com/v1beta1
    kind: Dashboard
    metadata:
      name: ace-dashboard
      namespace: ibm-appconn-ns
    spec:
      license:
        accept: true
        license: L-KSBM-C37JH7
        use: AppConnectEnterpriseNonProduction
      pod:
        containers:
          content-server:
            resources:
              limits:
                cpu: 250m
                memory: 512Mi
              requests:
                cpu: 50m
                memory: 50Mi
          control-ui:
            resources:
              limits:
                cpu: 250m
                memory: 512Mi
              requests:
                cpu: 50m
                memory: 125Mi
      replicas: 3
      storage:
        size: 5Gi
        type: persistent-claim
        claimName: ibm-appconn-pvc
      useCommonServices: false
      version: 12.0.1.0-r1
    


    Error while deploying dashboard is : Error from server: error when creating "appconn-dashboard.yaml": admission webhook "validate.storage.appconnect.ibm.com" denied the request: [A storage class must be provided when using persistent storage - cp4i.runtime.
    check]

    According to the documentation about the dashboard resource, when spec.storage.type is set to persistent-claim, either spec.storage.claimName or spec.storage.class is required. So, logically the above dashboard resource definition should work.

    Any reply is appreciated.

    Thanks !



    ------------------------------
    Sujeeth Pakala
    ------------------------------


  • 2.  RE: Deployment of App Connect dashboard - IKS

    Posted Wed September 08, 2021 03:46 AM
    Hello,

    Apologies for the delay in getting back to you. You are correct in that the behaviour described in the docs should work. From looking at the YAML that you have provided I believe they are all valid and it is a bug you are running into. The fix has been implemented and will be available on our next release. This is scheduled to be included in our next CD release which is set for GA on September 25th 2021.

    

In your PV you specify a storageClassName with the value of "manual" did you create this storage class on your cluster and if so what does the yaml look like?

    Thank you and once again sorry for the delay,


    ------------------------------
    Cameron Roberts
    ------------------------------