Tike container platform

Last modified by ttuura@helsinki_fi on 2024/02/07 06:35


University of Helsinki(henceforth UoH or university) has a centralized, shared container platform, Red Hat OpenShift. There are two shared clusters, testing and production. Each project gains access to both clusters.

Using the container platform requires registering the project to platform support. All project members belonging to the IAM-group receive login access to OpenShift and gain admin privileges for the project.


Productionhttps://console-openshift-console.apps.ocp-prod-0.k8s.it.helsinki.fi/

Testing:: https://console-openshift-console.apps.ocp-test-0.k8s.it.helsinki.fi/

Oc client:


  • oc login -u <username> https://api.ocp-test-0.k8s.it.helsinki.fi:6443 or
  • oc login -u <username> https://api.ocp-prod-0.k8s.it.helsinki.fi:6443
  • Example: oc login -u username https://api.ocp-prod-0.k8s.it.helsinki.fi:6443

Image repository

UoH offers an Image repository on https://quay.io/


In addtition, OpenShift can build images inside an internal image repository.

OpenShift client

Programs running in OpenShift can be accessed with the OpenShift client: https://docs.openshift.com/container-platform/4.12/cli_reference/openshift_cli/getting-started-cli.html

Download the client from: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/ (choose client for your operating system, the installer won't help you)


Place the program binary oc in your path, so that your terminal client can find it.

(echo $PATH command).


-- make sure you are in the university internal/perimeter network, for example helsinki-fi-only VPN

Logging in after installing the oc client:

oc login -u <username> https://api.ocp-test-0.k8s.it.helsinki.fi:6443 

After this the client will connect to the right OpenShift. Login using the username that is part of the iam-group used when ordering the project.

Oc terminal client is an expanded version of Kubernetes' kubectl -client. All kubectl function should work 'as is' if you change kubectl → oc.

The package downloaded from Red Hat's url actually contains both the kubectl and oc binaries. In actuality they are both the same program, but after testing it seems like when launching with kubectl the terminal client tries to behave as original kubectl and oc specific functions no longer work.


In addition to OpenShift client, there are other terminal programs,

of these, the OpenShift web-console recommends using Helm or odo.

Instructions


General instructions for developers:  3 - Instructions


OpenShift documentation: 

After logging inside the oc client in your terminal you can check the underlying Kubernetes version in OpenShift with the command:

oc version



The recommended contact for questions is:

https://helsinkifi.slack.com #kontit 

All changes related to resources for the project/namespace should be emailed to:

grp-openshift-owner@helsinki.fi (platform administration and development)tike-ohjelmistotuotanto@helsinki.fi (program development)