title: Deploying bluespice-free in Kubernetes
body: <p>According to <a href="https://hub.docker.com/r/bluespice/bluespice-free" rel="nofollow noreferrer">this source</a>, I can store to <code>my/data/folder</code> by following:</p>
  <pre><code>docker run -d -p 80:80 -v {/my/data/folder}:/data bluespice/bluespice-free
  </code></pre>
  <p>I have created following deployment but not sure how to use persistent volume.</p>
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: bluespice
    namespace: default
    labels:
      app: bluespice
  spec:
    replicas: 1
    selector:
      matchLabels:
        app: bluespice
    template:
      metadata:
        labels:
          app: bluespice
      spec:
        containers:
        - name: bluespice
          image: bluespice/bluespice-free
          ports:
          - containerPort: 80
          env:
          - name: bs_url
            value: &quot;https://bluespice.mycompany.local&quot;
  </code></pre>
  <p>My persistent volume claim name is <code>bluespice-pvc</code>.</p>
  <p>Also I have deployed the pod without persistent volume. Can I attach persistent volume on the fly to keep data?</p>