<p>I'm trying to install SAP HANA Express docker image in a Kubernete node in Google Cloud Platform as per guide <a href="https://developers.sap.com/tutorials/hxe-k8s-advanced-analytics.html#7f5c99da-d511-479b-8745-caebfe996164" rel="nofollow noreferrer">https://developers.sap.com/tutorials/hxe-k8s-advanced-analytics.html#7f5c99da-d511-479b-8745-caebfe996164</a> however, during execution of step 7 &quot;Deploy your containers and connect to them&quot; I'm not getting the expected result.</p>
<p>I'm executing command <code>kubectl create -f hxe.yaml</code> and here is the yaml file I'm using it:</p>
<pre><code>kind: ConfigMap
apiVersion: v1
metadata:
  creationTimestamp: 2018-01-18T19:14:38Z
  name: hxe-pass
data:
  password.json: |+
    {&quot;master_password&quot; : &quot;HXEHana1&quot;}
---
kind: PersistentVolume
apiVersion: v1
metadata:
  name: persistent-vol-hxe
  labels:
    type: local
spec:
  storageClassName: manual
  capacity:
    storage: 150Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: &quot;/data/hxe_pv&quot;
---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: hxe-pvc
spec:
  storageClassName: manual
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 50Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: hxe
  labels:
    name: hxe
spec:
  selector:
    matchLabels:
      run: hxe
      app: hxe
      role: master
      tier: backend
  replicas: 1
  template:
    metadata:
      labels:
        run: hxe
        app: hxe
        role: master
        tier: backend
    spec:
      initContainers:
        - name: install
          image: busybox
          command: [ 'sh', '-c', 'chown 12000:79 /hana/mounts' ]
          volumeMounts:
            - name: hxe-data
              mountPath: /hana/mounts
      volumes:
        - name: hxe-data
          persistentVolumeClaim:
             claimName: hxe-pvc
        - name: hxe-config
          configMap:
             name: hxe-pass
      imagePullSecrets:
      - name: docker-secret
      containers:
      - name: hxe-container
        image: &quot;store/saplabs/hanaexpress:2.00.045.00.20200121.1&quot;
        ports:
          - containerPort: 39013
            name: port1
          - containerPort: 39015
            name: port2
          - containerPort: 39017
            name: port3
          - containerPort: 8090
            name: port4
          - containerPort: 39041
            name: port5
          - containerPort: 59013
            name: port6
        args: [ &quot;--agree-to-sap-license&quot;, &quot;--dont-check-system&quot;, &quot;--passwords-url&quot;, &quot;file:///hana/hxeconfig/password.json&quot; ]
        volumeMounts:
          - name: hxe-data
            mountPath: /hana/mounts
          - name: hxe-config
            mountPath: /hana/hxeconfig
      - name: sqlpad-container
        image: &quot;sqlpad/sqlpad&quot;
        ports:
        - containerPort: 3000

---
apiVersion: v1
kind: Service
metadata:
  name: hxe-connect
  labels:
    app: hxe
spec:
  type: LoadBalancer
  ports:
  - port: 39013
    targetPort: 39013
    name: port1
  - port: 39015
    targetPort: 39015
    name: port2
  - port: 39017
    targetPort: 39017
    name: port3
  - port: 39041
    targetPort: 39041
    name: port5
  selector:
    app: hxe
---
apiVersion: v1
kind: Service
metadata:
  name: sqlpad
  labels:
    app: hxe
spec:
  type: LoadBalancer
  ports:
  - port: 3000
    targetPort: 3000
    protocol: TCP
    name: sqlpad
  selector:
    app: hxe
</code></pre>
<p>I'm also using the last version of HANA Express Edition docker image: <code>store/saplabs/hanaexpress:2.00.045.00.20200121.1</code> that you can see available here: <a href="https://hub.docker.com/_/sap-hana-express-edition/plans/f2dc436a-d851-4c22-a2ba-9de07db7a9ac?tab=instructions" rel="nofollow noreferrer">https://hub.docker.com/_/sap-hana-express-edition/plans/f2dc436a-d851-4c22-a2ba-9de07db7a9ac?tab=instructions</a></p>
<p>The error I'm getting is the following:</p>
<p><a href="https://i.stack.imgur.com/kAx3k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kAx3k.png" alt="Error: failed to start container &quot;install&quot;: Error response from daemon: error while creating mount source path '/data/hxe_pv': mk
dir /data: read-only file system" /></a></p>
<p>Any thought on what could be wrong?</p>
<p>Best regards and happy new year for everybody.</p>

andres_chacon
<p>Thanks to the Mahboob suggestion now I can start the pods (partially) and the issue is not poppin up in the &quot;busybox&quot; container starting stage. The problem was that I was using an Container-Optimized image for the node pool and the required one is Ubuntu. If you are facing a similar issue double check the image flavor you are choosing at the moment of node pool creation.</p>
<p>However, I have now a different issue, the pods are starting (both the hanaxs and the other for sqlpad), nevertheless one of them, the sqlpad container, is crashing at some point after starting and the pod gets stuck in CrashLoopBackOff state. As you can see in picture below, the pods are in CrashLoopBackOff state and only 1/2 started and suddenly both are running.</p>
<p><a href="https://i.stack.imgur.com/aTq3O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aTq3O.png" alt="kubectl get pods command" /></a></p>
<p>I'm not hitting the right spot to solve this problem since I'm a newcomer to the kubernetes and docker world. Hope some of you can bring some light to me.</p>
<p>Best regards.</p>
