Skip to main content

MarkLogic Server on Kubernetes

Deploy the mlcp pod to the Kubernetes cluster

The next step is to create a Kubernetes deployment YAML file named mlcp.yaml and persistentVolumeClaim for storage. A sample file is included below:

apiVersion: v1
kind: Pod
metadata:
  name: mlcp
spec:
  volumes:
    - name: mlcp-volume
      persistentVolumeClaim:
        claimName: mlcp-pvc
  containers:
  - name: mlcp
    image: mdweller5/theswamp:mlcp
    command:
      - bash
      - '-c'
      - |
        tail -f /dev/null
    volumeMounts:
      - mountPath: "/data"
        name: mlcp-volume
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: mlcp-pvc
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 20Gi