Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

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

11 Oct 2019 1  
This article includes instructions to install the package as an add-on service for your IBM Cloud Pak for Data cluster using Kubernetes.

This article is in the Product Showcase section for our sponsors at CodeProject. These articles are intended to provide you with information on products and services that we consider useful and of value to developers.

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

Get the software

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here