New homepage and improved collaboration features for AI Hub

The AI ecosystem has been expanding at a rapid pace, and shows no signs of slowing down.  Customers told us about the challenges they faced managing their growing number of ML assets and preventing silos and redundant work and it  inspired us to develop AI Hub to help foster collaboration and reuse of assets like notebooks, trained models, and ML pipelines.In April, we announced the open beta of AI Hub, and we have been constantly working to improve it. Today, we’re happy to announce that we’re releasing a number of new and exciting features to make collaboration for data science and ML teams even easier, and to enable GCP users to build on each other’s work.“At Descartes Labs, we build models to predict how changes on the earth impact our customers, their supply chains, transportation, infrastructure and even the raw commodities feeding their businesses. With such a wide range of use cases and diverse customers, we have built a library of ML models, modeling pipelines and even tutorial notebooks for our team. We leverage AI Hub to make these modeling resources easily discoverable across various groups, business verticals and modeling techniques. Granular permissions allow us to lock down AI Hub assets to a small team or share publicly, as in the case of our geospatial ML platform tutorials. AI Hub provides discovery and security to meet the needs of a growing ML-focused organization.” – Tim Kelton, Co-Founder and Head of SRE, Security, and Cloud Operations at Descartes LabsNew AI Hub HomepageThe new AI Hub Homepage gives logged in users immediate access to the most popular and most recently shared private assets. It also features cutting-edge content to help you learn, build, and run ML even more quickly.Advanced sharing, permissions, and collaboration capabilitiesThis feature is no doubt near and dear to G Suite user’s hearts: AI Hub now lets you share notebooks, trained ML models, and Kubeflow pipelines in a flexible way with individual colleagues, entire groups, and even your entire company so they can learn from and build on your work.All it takes is simply adding individual collaborators or groups by their email addresses, and giving them editor or viewer permissions. ”Viewers” will still be able to fork the asset you share by downloading or opening a copy, but they won’t be able to edit or change the version shared on AI Hub.You can open this new sharing dialog by clicking on the “Share” button on the asset details page (below, first image) or the sharing icon next to your asset on the My Assets page (below, second image).Sharing public assets on AI Hub via social media Quickly copy and paste the URL of a public asset shared by Google or a Google partner so you can send it via mail or post it on social media to help others can discover the cutting edge AI you’re most interested in.New ML Taxonomy To help you find the right ML artifact for your project, you can now label and categorize assets during upload using a comprehensive list of Data Types, ML Techniques, and Use Cases.Asset favoritingAs the content on AI Hub grows and more users and organizations share their work, we want you to have more control over finding the assets that are relevant to you. You can now favorite the notebooks, models, and other assets you’re most passionate about, regardless of whether they are shared publicly by Google or privately with you by one of your peers.New contentWe also have new public content to discover and deploy, including content from partners and more than 70 new, cutting-edge assets from Google for you to build on. Here are some highlights:Partner ContentNVIDIA: Try the TensorRT-optimized BERT notebook. BERT is a popular model for natural language understanding, and this notebook demonstrates the Question Answering (QA) task. Pluto7: Try this Kubeflow Pipeline for time series forecasting for ubiquitous data using Tensorflow & conv1D. This fairly versatile asset can be used in business planning use-cases like inventory planning, revenue forecasting, and store traffic prediction. New ML assets from Google (20 Technical Guides/Solution Architectures)Energy Price Forecasting with AutoML Tables and Cloud AI Platform NotebooksTraining a XGBoost model using data from BigqueryOptical Character Recognition (OCR) data preparation using Cloud AutoML VisionThe What-If Tool Analyzing an Image ClassifierSemantic Similarity for Natural Language [AI Workshop Experiment]ConclusionSince releasing AI Hub, we’ve learned a lot about the challenges our first beta customers face bridging gaps and silos in ML projects. These new features are a direct result of these ongoing conversations and aim to make it easier to get started with any ML project by building on the great work of others.In the coming months we’ll continue this work, deepening the integration of AI Hub with existing ML development workflows, on and off GCP, to further improve collaboration within our growing field.To learn moreSign up for the AI Hub Newsletter to stay updated on the next exciting enhancements.Join the AI Hub User Community and ask any questions you have about new features, requirements and content asks.
Quelle: Google Cloud Platform

OpenShift 4.1 UPI environment deployment on Microsoft Azure Cloud

Red Hat released Red Hat OpenShift Container Platform 4.1 (OCP4) earlier this year, introducing installer provisioned infrastructure and user provisioned infrastructure approaches on Amazon Web Services (AWS). The Installer provisioned infrastructure method is quick and only requires you to have AWS credentials, access to Red Hat telemetry and domain name. Red Hat also released a user provisioned approach where OCP4 can be deployed by leveraging CloudFormation, templates and using the same installer to generate ignition configuration files.
Since Microsoft Azure is getting more and more business attention, natural question would be: when is OCP4 going to be released on Azure Cloud? At the time of the writing OCP4 on Azure using installer is in developer preview. 
One of the main challenges with running OCP4 on Azure with the installer provisioned infrastructure method is setting upcustom Ingress infrastructure (e.g. custom Network Security Groups or custom Load Balancer for routers), because the Cluster Ingress Operator creates a Public facing Azure Load Balancer to serve routers by default, and once the cluster is deployed, the Ingress Controller type cannot be changed.
If it is deleted, or the OpenShift router Service type is changed, the Cluster Ingress Operator will reconcile and recreate the default controller object.
Trying to alter Network Security Groups by whitelisting allowed IP ranges will cause Kubernetes to reconcile the configuration to it’s desired state.
One of the ways is to deploy OCP4 on Azure Cloud by creating the objects manually with the user provisioned infrastructure approach, and then recreating the default ingress controller object just after control plane is deployed.
Openshift Container Platform 4.1 components
Our cluster consists of 3 master and 2 compute nodes. Master nodes are fronted with 2 Load Balancers, 1 Public facing for external API calls, and 1 Private for internal cluster communication. Compute nodes are using the same Public facing Load Balancer as the masters, but if needed they can each have their own Load Balancer.

Figure 1. OCP 4.1 design diagram with user provisioned infrastructure on Azure Cloud
Instances sizes
The OpenShift Container Platform 4.1 environment has some minimum hardware requirements.

Instance type
Bootstrap
Control plane
Compute nodes

D2s_v3
–
–
X

D4s_v3
X
X
X

Above VM sizes might change once Openshift Container Platform 4.1 is officially released for Azure.
Azure Cloud preparation for OCP 4.1 installation
The preparation steps here are the same as for Installer Provisioned Infrastructure. You need to complete these steps:

DNS Zone.
Credentials.
Cluster Installation (Follow the guide until cluster deployment section).

NOTE: The free Trial account is not enough and Pay As You Go is recommended with increased quota for vCPU
 
User Provisioned Infrastructure based OCP 4.1 installation
When using this method, you can:

Specify the number of masters and workers you want to provision
Change Network Security Group rules in order to lock down the ingress access to the cluster 
Change Infrastructure component names
Add tags

This Terraform based approach will split VMs across 3 Azure Availability Zones and will use 2 Zone Redundant Load Balancers (1 Public facing to serve OCP routers and api and 1 Private to serve api- int)
Deployment can be split into 4 steps:

Create the Control Plane (masters) and Surrounding Infrastructure (LB,DNS,VNET etc.) 
Set the default Ingress controller to type “HostNetwork”
Destroy Bootstrap VM
Create Compute (worker) nodes

This method uses the following tools:

terraform >= 0.12 • openshift-cli
git
jq (optional)

Prerequisites
We will deploy Red Hat Openshift Container Platform v4.1 on Microsoft Azure Cloud by using Terraform, since it is one of the most popular Infrastructure-as-Code tools.
Download Git repository content containing terraform scripts:
git clone https://github.com/JuozasA/ocp4-azure-upi.git
cd ocp4-azure-upi
Download the openshift-install binary and get the pull-secret. The OpenShift Installer binary and pull secret can be downloaded following this link.
 
Copy openshift-install binary to /usr/local/bin directory:
 cp openshift-install /usr/local/bin/
 
Generate install config files:
./openshift-install create install-config –dir=ignition-files
? SSH Public Key /home/user_id/.ssh/id_rsa.pub
? Platform azure
? azure subscription id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
? azure tenant id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
? azure service principal client id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
? azure service principal client secret xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
? Region <Azure region>
? Base Domain example.com
? Cluster Name <cluster name. this will be used to create subdomain, e.g. test.example.com>
? Pull Secret [? for help]
Edit the install-config.yaml file to set the number of compute, or worker, replicas to 0:
 compute:
  – hyperthreading: Enabled
   name: worker
   platform: {}
   replicas: 0
Generate Kubernetes manifests which defines the objects bootstrap nodes will have to create initially:
 openshift-install create manifests –dir=ignition-files
Remove the files that define the control plane machines and worker machinesets:
rm -f ignition-files/openshift/99_openshift-cluster-api_master-machines-*
rm -f ignition-files/openshift/99_openshift-cluster-api_worker-machineset-*
Because you create and manage the worker machines yourself, you do not need to initialize these machines.
Obtain the Ignition config files. More about Ignition utility here. 
openshift-install create ignition-configs –dir=ignition-files
Extract the infrastructure name from the Ignition config file metadata:
 jq -r .infraID ignition-files/metadata.json

Open terraform.tfvars file and fill in the variables:
azure_subscription_id = “”
azure_client_id = “”
azure_client_secret = “”
azure_tenant_id = “”
azure_bootstrap_vm_type = “Standard_D4s_v3″ <- Size of the bootstrap VM
azure_master_vm_type = “Standard_D4s_v3″ <- Size of the Master VMs
azure_master_root_volume_size = 64 <- Disk size for Master VMs
azure_image_id = “/resourceGroups/rhcos_images/providers/Microsoft.Compute/images/rhcostestimage” <- Location of coreos image
azure_region = “uksouth” <- Azure region (the one you’ve selected when creating install-config)
azure_base_domain_resource_group_name = “ocp-cluster” <- Resource group for base domain and rhcos vhd blob.
cluster_id = “openshift-lnkh2″ <- infraID parameter extracted from metadata.json
base_domain = “example.com”
machine_cidr = “10.0.0.0/16″ <- Address range which will be used for VMs
master_count = 3 <- number of masters
Open worker/terraform.tfvars and fill in information there as well. 
Start OCP v4.1 Deployment
Initialize Terraform directory:
terraform init
Run Terraform Plan and check what resources will be provisioned:
terraform plan
Once ready, run Terraform apply to provision Control plane resources:
terraform apply
Once the Terraform job is finished, run openshift-install. It will check when the bootstrapping is finished:
openshift-install wait-for bootstrap-complete –dir=ignition-files
Once the bootstrapping is finished, export the kubeconfig environment variable and replace the default Ingress Controller object with the one with the endpointPublishingStrategy of type HostNetwork. This will disable the creation of the Public facing Azure Load Balancer and will allow you to have custom Network Security Rules which won’t be overwritten by Kubernetes.
export KUBECONFIG=$(pwd)/ignition-files/auth/kubeconfig

oc delete ingresscontroller default -n openshift-ingress-operator

oc create -f ingresscontroller-default.yaml
Since we don’t need the bootstrap VM anymore, we can remove it:
terraform destroy -target=module.bootstrap
Now we can continue with provisioning the Compute nodes:
cd worker
terraform init
terraform plan
terraform apply
cd ../
Since we are provisioning Compute nodes manually, we need to approve kubelet CSRs:
worker_count=`cat worker/terraform.tfvars | grep worker_count | awk ‘{print $3}’`
while [ $(oc get csr | grep worker | grep Approved | wc -l) != $worker_count ]; do
 oc get csr -o json | jq -r ‘.items[] | select(.status == {} ) | .metadata.name’ | xargs oc adm certificate approve
 sleep 3
done
Check openshift-ingress service type (it should be type: ClusterIP):
oc get svc -n openshift-ingress
NAME                    TYPE CLUSTER-IP EXTERNAL-IP          PORT(S) AGE               
router-internal-default   ClusterIP 172.30.72.53   <none> 80/TCP,443/TCP,1936/TCP   37m
Wait for installation to be completed. Run the openshift-install command: 
openshift-install wait-for install-complete –dir=ignition-files
Last command will output the cluster console url and kubeadmin username/password.
Scale Up
In order to add additional worker nodes, we use terraform scripts in the scaleup directory. Fill in other information in terraform vars:
azure_subscription_id = “”
azure_client_id = “”
azure_client_secret = “”
azure_tenant_id = “”
azure_worker_vm_type = “Standard_D2s_v3″
azure_worker_root_volume_size = 64
azure_image_id = “/resourceGroups/rhcos_images/providers/Microsoft.Compute/images/rhcostestimage”
azure_region = “uksouth”
cluster_id = “openshift-lnkh2″
Run terraform init and the script:
cd scaleup
terraform init
terraform apply
It will ask you to provide the Azure Availability Zone number where you would like to deploy new node and to provide the worker node number (if it is 4th node, then the number is 3 [indexing starts from 0 rather than 1])
Approving server certificates for nodes
To allow API server to communicate with the kubelet running on nodes, you need to approve the CSR generated by each kubelet.
You can approve all Pending CSR requests using:
oc get csr -o json | jq -r ‘.items[] | select(.status == {} ) | .metadata.name’ | xargs oc adm certificate approve
Conclusion
OpenShift Container Platform 4.1 Internet ingress access can be restricted by changing Network Security Groups on Azure Cloud if we inform the Ingress controller not to create a public facing Load balancer. Since we are using Terraform to provision infrastructure, multiple infrastructure elements are changeable and the whole OpenShift Container Platform 4.1 infrastructure provisioning can be added to the wider infrastructure provisioning pipeline, e.g. Azure DevOps.
It is worth mentioning that at the time of writing, Red Hat OpenShift Container Platform 4.1 deployed on user provisioned infrastructure is not yet supported on Microsoft Azure Cloud and some of the features might not work as you expect, e.g. Internal Image Registry is ephemeral and all images will be gone if the image registry pod get restarted. 
 
The post OpenShift 4.1 UPI environment deployment on Microsoft Azure Cloud appeared first on Red Hat OpenShift Blog.
Quelle: OpenShift