-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Azure automated deployment for OPEA applications - Infosys #629
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR.
I did not try out the instructions but leaving comments based upon reading.
@@ -0,0 +1,85 @@ | |||
# OPEA applications Azure ASK deployment guide | |||
|
|||
This guide shows how to deploy OPEA applications on Azure Kubernetes Service (ASK) using Terraform. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ASK
-> AKS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-commit bot has changed "AKS" -> "ASK" amd "aks" -> "ask".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered about that consistent error!!
|
||
## Prerequisites | ||
|
||
- Access to Azure ASK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AKS
|
||
## Setup | ||
|
||
The setup uses Terraform to create ASK cluster with the following properties: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AKS - this is a global search and replace through out this doc
The setup uses Terraform to create ASK cluster with the following properties: | ||
|
||
- 1-node ASK cluster with 50 GB disk and `Standard_D32d_v5` SPOT instance (16 vCPU and 32 GB memory) | ||
- Cluster autoscaling up to 10 nodes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this autoscaling to 10 nodes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is reasonable number.
|
||
The setup uses Terraform to create ASK cluster with the following properties: | ||
|
||
- 1-node ASK cluster with 50 GB disk and `Standard_D32d_v5` SPOT instance (16 vCPU and 32 GB memory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need a SPOT instance? Can this be a standard virtual machine?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To support cost optimization, we have mentioned SPOT. Since instance is a variable, we will mention standard/SPOT in the readme file and mention about cost optimization in the variable file.
- Cluster autoscaling up to 10 nodes | ||
- Storage Class (SC) `azfs-sc` and Persistent Volume Claim (PVC) `model-volume` for storing the model data | ||
- `LoadBalancer` address type for the service for external consumption | ||
- Updates the kubeconfig file for `kubectl` access |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what needs to be done here?
|
||
```bash | ||
kubectl get pod -n chatqna | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be useful to state that "ensure all pods are running or show 1/1 or something similar"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure Will add the statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just change the cluster name from opea-chatqna to opea.
@@ -0,0 +1,6 @@ | |||
cluster_name = "opea-chatqna" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's use cluster name opea
. The AWS/EKS cluster will change to use that name as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated cluster name to opea
Hello @poussa , |
I have already approved. We need a 2nd approver. I'll work on that now. |
@kkrishTa can you also fix the DCO. That is, add signed-off-by line to the commit (-s). |
Hello @poussa / @lianhao , But I see that ".md files not in toc tree" is ignored as per https://github.com/opea-project/docs/blob/main/.known-issues/sphinx.conf. Though this is a warning, the pipeline step has failed. Could you please advise fix on this? |
@poussa will create another PR to add the doc link to those exiting md files under cloud-service-provider directory, then you can add the link follow his convention. It's a newly added doc CI check complaining. |
Signed-off-by: Lianhao Lu <[email protected]> Signed-off-by: kkrishTa <[email protected]>
Signed-off-by: kkrishTa <[email protected]>
for more information, see https://pre-commit.ci Signed-off-by: kkrishTa <[email protected]>
Signed-off-by: kkrishTa <[email protected]>
Signed-off-by: kkrishTa <[email protected]>
for more information, see https://pre-commit.ci Signed-off-by: kkrishTa <[email protected]>
Signed-off-by: kkrishTa <[email protected]>
Signed-off-by: kkrishTa <[email protected]>
* helm: Add service account support in common services 1. Add service account creation support, disabled by default. 2. Add support of sharing the same service account by setting global.sharedSAName, disabled by default. Signed-off-by: Lianhao Lu <[email protected]> * helm: Add service account support in e2e charts 1. Add service account creation support, enabled by default. 2. Add support of sharing the same service account by setting global.sharedSAName, enabled by default. Signed-off-by: Lianhao Lu <[email protected]> --------- Signed-off-by: Lianhao Lu <[email protected]> Signed-off-by: kkrishTa <[email protected]>
* README: add links to terraform docs Signed-off-by: Sakari Poussa <[email protected]> * README: fix broken links Signed-off-by: Sakari Poussa <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: Sakari Poussa <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Signed-off-by: kkrishTa <[email protected]>
Signed-off-by: kkrishTa <[email protected]>
@kkrishTa can you resolve the conflict, please? |
The readme filename is One more fix and we are there... |
Signed-off-by: kkrishTa <[email protected]>
The doc team is investigating why the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -0,0 +1,85 @@ | |||
# OPEA applications Azure ASK deployment guide | |||
|
|||
This guide shows how to deploy OPEA applications on Azure Kubernetes Service (ASK) using Terraform. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wondered about that consistent error!!
Let me find someone on the docs team to help on this @kkrishTa. You have been most patient with our CICD tests. |
sure @lianhao . Once #634 is merged, I will pull the latest and update the link apporpriately. |
No need to wait for PR #634, just go ahead to fix your PR by using relative links to newly added .md files. Let's get your PR to land-in first. |
Signed-off-by: kkrishTa <[email protected]>
Updated readme. Since it has common read me, upadted other relative links as in #634 without breaking AWS readme link. |
Description
Infosys contribution to OPEA.
Azure AKS terraforms and steps to execute to deploy OPEA applications.
Issues
NA
Type of change
List the type of change like below. Please delete options that are not relevant.
Dependencies
None.
Tests
Tested terraforms on Azure platform.