 Hello everyone, my name is David Martigny from Red Hat. I am a specialization architect and today we will demonstrate to you how to deploy OpenShift on a Nutanix stack. And for that I am with my colleague from Nutanix, Fabrice. Hello everyone, Fabrice Krebs. I'm working for Nutanix for five years now and I'm an EME DevOps and Automation Specialist. Okay so before going further in the presentation let's just summarize what are the key partnership benefits. So the first one is that now Red Hat OpenShift is the preferred choice for deploying full stack Kubernetes on top of Nutanix Cloud Platform. And the opposite way as well is that now Nutanix Cloud Platform is the preferred choice for any HCI deployment with Red Hat OpenShift. And now we have a joint engineering one map that will provide a better and robust interoperability and it will help as well to have a better and seamless super experience for the end customer. If we have a look on the different products within this partnership we have real and smart management are now fully supported on Nutanix and HHV app. How about on Sible Automation Platform we have a new certified collection and valuable on console.radat.com to configure and consume everything you want on Nutanix stack. And finally OpenShift is of course fully supported with a dedicated certified CSI operator and since all the last OpenShift release you have the IPI method to automatically deploy an OpenShift cluster on Nutanix. Okay so now based on this diagram we can see on the left side what we call a pre-central. So pre-central is a portal that we use to manage all the services that you will enable or consume on top of Nutanix. We can see on the bottom of the image that we are running on physical server and it will form the HCI stack that will be managed by Nutanix. On top of this HCI stack for HCI is called for a hyperconverged infrastructure. We will run a virtualization layer that can be our own virtualization solution which is called HHV. In OpenShift use case it's important to have this HHV layer because it's where the work on the master will be deployed. And we can additionally create and manage Nutanix storage services which can be block storage, file storage or object storage. And finally we provide database service solution that will help the customer to deploy database engine automatically from the single pane of management and we are able to deploy the more major database solution on market which will be for example PostgreSQL, Madibi SQL Server or Hackerl or whatever. And so this is the important stack that will be consumed by the OpenShift cluster. And now I will let's explain to David for the OpenShift layer. Thank you Fabrice. So if we focus on the OpenShift deployment on the next stack, so we are using VAM Bastion. So on this Bastion we installed the OpenShift install CLI. So this CLI communicates directly with PrimsFontral API to deploy automatically the OpenShift cluster. So it deploys the control plane and the data plane automatically. With different VAMs. And in D2 operation we can send the number 4. We will deploy from the operator the certified CSI operator from Nutanix to consume directly and transparently from the OpenShift cluster the storage provided by the Nutanix stack. So you can consume volume, so block storage, pie storage, but you can also consume object storage directly from the application with S-Rebrocade. The last thing we can mention is the future interaction with Nutanix NDB. So Nutanix works on a NDB operator from OpenShift to deploy from a manifest, a Kubernetes manifest in OpenShift to ask to the Nutanix stack to deploy NDB database like Oracle or SQL Server to store all stateful data in this database managed by Nutanix NDB and to have to the stateless application manage on the OpenShift cluster to benefit to all the LSTCT and all the dynamicity provided by OpenShift cluster. Before to deploy your first OpenShift cluster on Nutanix stack you have some prerequisites. The first one is to book two IPs for virtual IPs needed for OpenShift. The first one for the OpenShift API endpoint and the second one for OpenShift ingressin point. You have also to create the corresponding DNS record for this bit and an important thing you have to enable IPAM features on the Nutanix part on the subnet where you plan to deploy your OpenShift cluster. And finally of course you need to have the different tools to deploy your cluster. Okay so now we are connected to pre-central. So as I said pre-central it's the management plane that we use to manage all Nutanix clusters and services deployed on top of Nutanix. So we can see here that we have actually one Nutanix cluster for this demo which is the M3 POC024 and on the left side we can see all the services that we can manage. So as David said as a prerequisite we need to have a subnet which has an IPAM setup. So it's what we did for this demonstration. We've created OpenShift subnet here and as you can see if I just update it I can see that I set IP address pose here and it's where the OpenShift worker master will be deployed. Once it will be deployed we will see it under the VM section here. So as you can see for now we only have 4 VM running on this cluster which one with one which is Bastion VM and it's the one that David will use for deploying the demo of OpenShift. And now I will let David continue for the demo. Thank you Fabrice. So now we will deploy our first cluster. So for that I am connected to my Bastion VM and I installed the OpenShift install CLI. So I have the last one the 4.11 and I created also a directory where I will put all my config file. I have a ML file, Nutella basic code where I put all the information about the prism central account used by my OpenShift cluster. So let's go. We will create the OpenShift config file with this command. OpenShift install create install config with my directory. The CLI asked me some questions of the SSH public key on which platform I want to deploy my cluster. The prism central URL the port the prism central user password. So the CLI connect directly to the prism central API and detects the different clusters. I have only one and the subnet where I want to deploy my cluster. He asked me the virtual IP for the OpenShift API endpoint and the virtual IP for the ingress endpoint. The base domain and the OpenShift cluster name. And finally I have to put my pull secret and it's done. So I have now my config file. I can review it and I can change some value. So for example by default is three workers. I can have six or nine and I can modify here the number of workers. I can also modify the subnet for the pod network or for the service network. After to obtain the config file we have some extra steps to configure the machine API for Nutanix. So for that I need to get my OpenShift release and to extract the manifest file for the machine set API. I have extracted the manifest file and we need to obtain the secret for this machine file with the command ccotl. So for that I used the manifest I just extract and the nutabasic.aut.yml file with my OpenShift my prism central user. I obtain a secret. So this is a secret from OpenShift machine API with the encrypted credentials of my prism central user. This secret will be used when my cluster will be deployed to scale automatically my OpenShift cluster if needed. After I have the config file and the secret for machine API I can continue the install. I can create the manifest file so everything is documented in the official documentation and finally I can deploy my cluster with all config files in my directory. So the CLI will create everything on Nutanix so we start with the infrastructure part. If I come back on Nutanix I can see the different steps so for the moment the color as image is created and after all the virtual machine for OpenShift will be deployed. It's done. My OpenShift cluster is not totally deployed. It takes a bit more of 25 minutes to deploy and I have the OpenShift console url so if I copy this url and paste in the new tab and can connect with the temporary Cuban mean user and the generated password I can see my cluster is up and running and I can have a look on the different node corresponding to virtual machine deployed on the Nutanix stack. I have three masters and three workers. I can also have a look on the machine set so the machine set is already configured and permit me to scale my cluster with the ability to add new worker nodes so to do that I edit this machine set and I add new worker. I just click save and my OpenShift will ask directly to the Nutanix cluster to extend a new virtual machine to have more worker nodes and have six worker nodes so if I come back to the prim central and the VM section I can see in the operation a new task to request new worker to scale my new OpenShift cluster. So now we have our OpenShift cluster up and running. We have to configure the storage part so for that we have dedicated and certified operator so we have just to go on the operator hub the marketplace of OpenShift and I let Fabrice describe this part. Okay thank you Martin. So now I will just search for the Nutanix keyword and then I will see the Nutanix CSI operator. I just need to click on install and I keep the default parameter and I click install. After a couple of seconds I will see the operator which will be deployed and then I will be able to configure it. Okay so now we can see that the operator is installed so before going further we will need to create the secrets which will be used to configure the CSI driver so I go under the workload secret section and then I will create a new one by clicking on the plus icon on the top. I paste the clarification that I have already defined so we can see here that we define the correct namespace that the secret will be placed and then the IP address the ports the username and password of the Prisma cluster of the Nutanix cluster. I click on create. Okay so the secret is now defined so now I will install a new CSI instance so to do that I go under the operator that we just installed before and I define to create a new instance here I keep the default password that's it. So now the instance is deployed. The last thing that I have to do is to create a new storage class to be able to consume the storage from the Kubernetes environment so I go under the storage class section then I go I have already created a demo file so I use this demo file here so what we can see here is that we define the secrets that we we just created the namespace that I said before that we use the storage type Nutanix volume and an important one is that we define the storage container so if I go back to the please central I can see under the storage container section that we define an open shift container for the cluster the demo cluster that we have and it's where the persistent volume so the volume will be created by the CSI driver so if I go back here and I click on creates I will see the storage class there defined now and then David will be able to use this this pvc not this this storage class now so no storage class is defined we can create persistent volume claim test to validate this part so I go to the pvc claim I create a new one I choose define new storage class I define a name for that and the size I can choose the volume mode file system or block and click on create so I can see the new pvc is now bound and if I come back on the print central interface and then go to the volume groups I can see this new pvc so to conclude this part we have installed the operator the CSI operator directly to open shift and we can see the interaction between open shift and Nutanix to provide transparently the storage part okay as David said at the beginning of the presentation we have the alpha release of our Nutanix database operator that is published on github so I will demonstrate you today how we can deploy it again keep in mind that it's alpha release so first of all what is NDP Nutanix NDP it's our solution that we developed which will help you to deploy database and shine that you can see here and we can now do the link between Kubernetes and Nutanix database so you can claim the database from the Nutanix from the Kubernetes manifest to do that I will deploy the Nutanix operator which is available this address and I will just follow the the step by step guide through the installation so I switch back the bastion VM and the first thing I will do is to install the operator so it will take a couple of seconds to do that and the second step will will be to create the required secrets that we will use to connect from open shift to the NDP platform so I will launch this manifest file so we can see here that we set the username and password to connect to the platform and the second thing I will do it's to apply the manifest file to claim the database that I will require so inside the database manifest file I can see the name of the database I want to be deployed the Nutanix cluster where I want to deploy and the type of database for this example I will do and that we will create two database inside of the database server so I apply this manifest and now we should see a CRD which was created and we can see that the database is in provisioning states so if I switch now to the interface I should see a new task which is running you can see here and you can see that it's the latest task is here is the database instance 02 and then the system will deploy it for you and once it will be finished then you will see it here as ready and just for your information if I do a QCTL get CRD no sorry we can see the CRD database and the Nutanix which was created and it's the one that we are managing okay so now that you've seen how easy it is to deploy OpenShift cluster on top of Nutanix and if you're curious or want to to learn more about the Nutanix ecosystem be free to just connect to NutanixUniversity.com websites to enjoy all search civil learning solution you have the same on the reddit site with reddit developer website you can access to different OpenShift labs so directly from your browser if you want to learn more about OpenShift so thank you for watching and see you thank you guys