Sign in

Orthanc is a dicom server and let’s see how to spin it up inside the Kubernetes cluster. And I’m using jodogne/orthanc docker image.

Let’ create the persistent volume claim, here the storage class aws-efs is nothing but the Elastic File System.

> kubectl apply -f orthanc_pvc.yaml

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
module: orthanc
name: orthanc-pvc
namespace: model
annotations:
volume.beta.kubernetes.io/storage-class: "aws-efs"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi

Let’s create the service module where I’m exposing two ports 8042 and 4242.

> kubectl apply -f orthanc_svc.yaml

apiVersion: v1
kind: Service
metadata:
name: orthanc
labels:
app.kubernetes.io/name: orthanc…

I thought this would be simple task, but I didn’t get a reference how to write .zip file instead of .gz file

Everyone might not have 7-Zip installed, hence I have to create a .zip file. Also I don’t want to save the compressed file in temp memory which incurs a lot of memory incase of large pandas dataframe.

import pandas as pd
from zipfile import ZipFile
from io import BytesIO
import boto3
my_dict = { 'name' : ["a", "b", "c", "d", "e","f", "g"],
'age' : [20,27, 35, 55…

Rajashree

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store