Skip to content

Instantly share code, notes, and snippets.

View romeokienzler's full-sized avatar

Romeo Kienzler romeokienzler

  • Senior Scientific Software Engineer - STSM - AI for Climate Impact (ACT), IBM Research Europe
  • Switzerland
View GitHub Profile
@romeokienzler
romeokienzler / lets-encrypt-free-iks.md
Created August 16, 2021 08:01 — forked from timroster/lets-encrypt-free-iks.md
Creating Let's Encrypt certificates for IBM free Kubernetes clusters

Creating Let's Encrypt certificates for IBM free Kubernetes clusters

The IBM Kubernetes service free clusters consist of a single worker node with 2 CPU and 4 GB of memory for experimenting with Kubernetes. Unlike the fee-based service, these clusters do not include capabilities for application load balancing using ingress out-of-the-box. However, if you manage a DNS domain (any provider will suffice) and can add an A record, it's possible for you to configure your own ingress that can provide http and https session termination for your containerized applications. Getting a TLS-enabled website or simply an external REST API couldn't be easier!

Prerequisites

  • Free IBM Kubernetes Cluster (IKS) - upgrade your account from Lite plan to create one. In the example commands, we'll assume that this cluster is named mycluster
  • kubectl - match your cluster API version (as of 12/5/20 - this is ~1.18.12)
  • helm v3
  • DNS domain that you can edit to configure
from pyspark.sql import SparkSession
spark = SparkSession\
.builder\
.appName("PythonPi")\
.getOrCreate()
df = spark.createDataFrame(
[
(1, "foo"), # create your data here, be consistent in the types.
(2, "bar"),
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

  • I am romeokienzler on github.
  • I am romeokienzler (https://keybase.io/romeokienzler) on keybase.
  • I have a public key ASCIe9UOcVrE40I6t0U__zZykv3S5WhmNUT6k-a-hF9Z7Qo

To claim this, I am signing this object:

@romeokienzler
romeokienzler / spark-nlp-install.ipynb
Created October 4, 2018 13:11
How to install Spark-NLP in IBM Watson Studio
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/*
Not putting any comments, just follow this excellent tutorial
https://www.pagedon.com/rsa-explained-simply/programming
Some more credits:
https://gist.github.com/krzkaczor/0bdba0ee9555659ae5fe
https://www.pagedon.com/modular-exponentiation/programming
*/