You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/openshift-azure-stack.md
+31-23Lines changed: 31 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,35 @@
1
1
---
2
-
title: Deploy OpenShift in Azure Stack
3
-
description: Deploy OpenShift in Azure Stack.
4
-
author: haroldwongms
5
-
manager: joraio
2
+
title: Deploy OpenShift to Azure Stack Hub
3
+
description: Deploy OpenShift to Azure Stack Hub.
4
+
author: mattbriggs
5
+
manager: femila
6
+
ms.author: mabrigg
6
7
ms.service: virtual-machines
7
8
ms.subservice: openshift
8
9
ms.collection: linux
9
-
ms.topic: how-to
10
+
ms.topic: conceptual
10
11
ms.workload: infrastructure
11
-
ms.date: 10/14/2019
12
-
ms.author: haroldw
12
+
ms.date: 11/19/2021
13
+
13
14
---
14
15
15
-
# Deploy OpenShift Container Platform or OKD in Azure Stack
16
+
# Deploy OpenShift Container Platform or OKD to Azure Stack Hub
16
17
17
18
**Applies to:**:heavy_check_mark: Linux VMs :heavy_check_mark: Flexible scale sets
18
19
19
-
OpenShift can be deployed in Azure Stack. There are some key differences between Azure and Azure Stack so deployment will differ slightly and capabilities will also differ slightly.
20
+
[OpenShift](openshift-get-started.md) can be deployed in Azure Stack Hub. There are some key differences between Azure and Azure Stack Hub so deployment will differ slightly and capabilities will also differ slightly.
21
+
22
+
Currently, the Azure Cloud Provider doesn't work in Azure Stack Hub. You won't be able to use disk attach for persistent storage in Azure Stack Hub. Instead, you can configure other storage options such as NFS, iSCSI, and GlusterFS. Or, you can enable CNS and use GlusterFS for persistent storage. If CNS is enabled, three more nodes will be deployed with storage for GlusterFS usage.
20
23
21
-
Currently, the Azure Cloud Provider doesn't work in Azure Stack. For this reason, you won't be able to use disk attach for persistent storage in Azure Stack. Instead, you can configure other storage options such as NFS, iSCSI, GlusterFS, etc. As an alternative, you can enable CNS and use GlusterFS for persistent storage. If CNS is enabled, three additional nodes will be deployed with additional storage for GlusterFS usage.
24
+
## Deploy OpenShift 3.x On Azure Stack Hub
22
25
23
-
You can use one of several methods to deploy OpenShift Container Platform or OKD in Azure Stack:
26
+
You can use one of several methods to deploy OpenShift Container Platform or OKD in Azure Stack Hub:
24
27
25
28
- You can manually deploy the necessary Azure infrastructure components and then follow the [OpenShift Container Platform documentation](https://docs.openshift.com/container-platform) or [OKD documentation](https://docs.okd.io).
26
-
- You can also use an existing [Resource Manager template](https://github.com/Microsoft/openshift-container-platform/) that simplifies the deployment of the OpenShift Container Platform cluster.
27
-
- You can also use an existing [Resource Manager template](https://github.com/Microsoft/openshift-origin) that simplifies the deployment of the OKD cluster.
29
+
- You can also use an existing [Azure Resource Manager template](https://github.com/Microsoft/openshift-container-platform/) that simplifies the deployment of the OpenShift Container Platform cluster.
30
+
- You can also use an existing [Azure Resource Manager template](https://github.com/Microsoft/openshift-origin) that simplifies the deployment of the OKD cluster.
28
31
29
-
If using the Resource Manager template, select the proper branch (azurestack-release-3.x). The templates for Azure won't work as the API versions are different between Azure and Azure Stack. The RHEL image reference is currently hard-coded as a variable in the azuredeploy.json file and will need to be changed to match your image.
32
+
If using the Azure Resource Manager template, select the proper branch (azurestack-release-3.x). The templates for Azure won't work as the API versions are different between Azure and Azure Stack Hub. The RHEL image reference is currently hard-coded as a variable in the azuredeploy.json file and will need to be changed to match your image.
30
33
31
34
```json
32
35
"imageReference": {
@@ -38,28 +41,33 @@ If using the Resource Manager template, select the proper branch (azurestack-rel
38
41
```
39
42
40
43
For all options, a Red Hat subscription is required. During the deployment, the Red Hat Enterprise Linux instance is registered to the Red Hat subscription and attached to the Pool ID that contains the entitlements for OpenShift Container Platform.
41
-
Make sure you have a valid Red Hat Subscription Manager (RHSM) username, password, and Pool ID. Alternatively, you can use an Activation Key, Org ID, and Pool ID. You can verify this information by signing in tohttps://access.redhat.com.
44
+
Make sure you have a valid Red Hat Subscription Manager (RHSM) username, password, and Pool ID. Alternatively, you can use an Activation Key, Org ID, and Pool ID. You can verify this information athttps://access.redhat.com.
42
45
43
-
## Azure Stack prerequisites
46
+
###Azure Stack Hub prerequisites
44
47
45
-
A RHEL image (OpenShift Container Platform) or CentOS image (OKD) needs to be added to your Azure Stack environment to deploy an OpenShift cluster. Contact your Azure Stack administrator to add these images. Instructions can be found here:
48
+
An RHEL image (OpenShift Container Platform) or CentOS image (OKD) needs to be added to your Azure Stack Hub environment to deploy an OpenShift cluster. Contact your Azure Stack Hub cloud operator to add these images. Instructions can be found here:
46
49
47
50
-[Add and remove a custom VM image to Azure Stack Hub](/azure-stack/operator/azure-stack-add-vm-image)
48
51
-[Azure Marketplace items available for Azure Stack Hub](/azure-stack/operator/azure-stack-marketplace-azure-items)
49
52
-[Offer a Red Hat-based virtual machine for Azure Stack Hub](/azure-stack/operator/azure-stack-redhat-create-upload-vhd)
50
53
51
-
## Deploy by using the OpenShift Container Platform or OKD Resource Manager template
54
+
###Deploy by using the OpenShift Container Platform or OKD Azure Resource Manager template
52
55
53
-
To deploy by using the Resource Manager template, you use a parameters file to supply the input parameters. To further customize the deployment, fork the GitHub repo and change the appropriate items.
56
+
To deploy by using the Azure Resource Manager template, you use a parameters file to supply the input parameters. To further customize the deployment, fork the GitHub repo and change the appropriate items.
54
57
55
58
Some common customization options include, but aren't limited to:
56
59
57
-
- Bastion VM size (variable in azuredeploy.json)
58
-
- Naming conventions (variables in azuredeploy.json)
59
-
- OpenShift cluster specifics, modified via hosts file (deployOpenShift.sh)
60
-
- RHEL image reference (variable in azuredeploy.json)
60
+
- Bastion VM size (variable in `azuredeploy.json`)
- OpenShift cluster specifics, modified via hosts file (`deployOpenShift.sh`)
63
+
- RHEL image reference (variable in `azuredeploy.json`)
61
64
62
65
For the steps to deploy using the Azure CLI, follow the appropriate section in the [OpenShift Container Platform](./openshift-container-platform-3x.md) section or the [OKD](./openshift-okd.md) section.
66
+
## Deploy OpenShift 4.x On Azure Stack Hub
67
+
68
+
Red Hat manages the Red Hat Enterprise Linux CoreOS (RHCOS) image for OpenShift 4.x. The deployment process gets the image from a Red Hat endpoint. As a result, the user (tenant) doesn't need to get an image from the Azure Stack hub Marketplace.
69
+
70
+
You can follow the steps in the Open Shift documentation at [Installing a cluster on Azure Stack Hub using ARM templates](https://docs.openshift.com/container-platform/4.9/installing/installing_azure_stack_hub/installing-azure-stack-hub-user-infra.html).
0 commit comments