Installing the Intel® Distribution for Python* on IBM Cloud Pak for Data* using Kubernetes*

By Nathan G Greeneltch,

Published: 07/02/2019   Last Updated: 07/02/2019

The Intel® Distribution for Python* is now available on the IBM Cloud Pak for Data*. This article includes instructions to install the package as an add-on service for your IBM Cloud Pak for Data cluster using Kubernetes*.

Hardware Requirements

A system based on 64-bit architecture that supports Intel® Streaming SIMD Extensions 4.2 (Intel® SSE 4.2) instructions (or compatible non-Intel® processor). 2 GB of free disk space for all product features and all architectures.

Software Requirements

Kubectl 1.12, Cloudctl 3.12, Docker 18.06.1m Helm N/A

Kubernetes Setup

A Kubernetes environment should be pre-loaded with your IBM Cloud Pak for Data session. This environment should already meet the minimum software and hardware requirements.  

Launch with Kubectl

You can use kubectl to run commands against your Kubernetes cluster. Refer to the kubectl overview for details on syntax and operations. Once you have a working cluster on Kubernetes, use the following YAML script to start a pod with a simple shell script, and keep the pod open.

1. Copy this example.yaml script to your system:

apiVersion: v1
kind: Pod
metadata:
  name: example-pod
  labels:
    app: ex-pod
spec:
  containers:
  - name: ex-pod-container
    image: intelpython/intelpython3_full:latest
    command: ['/bin/bash', '-c', '--']
    args: [ "while true; do sleep 30; done" ]

2. Execute the script with kubectl:

kubectl apply -f <path-to-yaml-file>/example.yaml

This script opens a single pod. More robust solutions would create a deployment or inject a python script or larger shell script into the container.

You can check on the status of your pod launch with this command:

kubectl get pods

Once your pod is launched successfully, you can access the shell of the example-pod with this command: 

kubectl exec -it example-pod -- /bin/bash

At this point you have working with a conda environment which includes all of the contents of Intel's Distribution for Python. "conda list" will return a list of the included packages. 

conda list

Delete Kubectl Pod

kubectl delete pod example-pod

 

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.