Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nhatthaiquang-agilityio/harness

Example: deploy web api to Azure App Services via Harness
https://github.com/nhatthaiquang-agilityio/harness

azure-app-service harness harness-delegate webapi

Last synced: 19 days ago
JSON representation

Example: deploy web api to Azure App Services via Harness

Awesome Lists containing this project

README

        

# Harness Deployments
Example: setup a deployment pipeline in Harness
+ Deploy webapi to Azure Service Apps
+ Deploy webapi to Azure Kubernetes Service

### Setup
+ Create a Harness Account
+ Create a Project
![Overview](./images/harness-overview.png)

+ Install a Harness Delegates
Run a command in Command line(I am using my Machine as docker delegate)
```
docker run --cpus=1 --memory=2g \
-e DELEGATE_NAME=docker-delegate \
-e NEXT_GEN="true" \
-e DELEGATE_TYPE="DOCKER" \
-e ACCOUNT_ID=0bKPVrNUQ2uni0e728NSgw \
-e DELEGATE_TOKEN=MjJkM2JlMTcxNjMxYTZiYjQ5NmNiNWMwM2YwOGM1YTQ= \
-e LOG_STREAMING_SERVICE_URL=https://app.harness.io/gratis/log-service/ \
-e MANAGER_HOST_AND_PORT=https://app.harness.io/gratis harness/delegate:23.03.78904
```

![Docker Delegate](./images/docker-delegate.png)

![Harness Delegate](./images/harness-delegate.png)

+ Add Role in Azure
![Add Roles](./images/Add-Roles.png)

+ Create Harness Key
![Harness Key](./images/creating-harness-key.png)

+ Create a connector to Azure
![Harness Connector](./images/azure-harness-cloud.png)

+ Create a Harness Service
![Harness Service](./images/harness-service.png)

+ Create a Harness Pipeline
![Harness Swap Lost](./images/harness-swap-lots.png)

+ Create a Harness Pipelines
![Harness Pipelines](./images/harness-pipelines.png)

### Setup Deployment with AKS
+ Create a Project

+ Install Harness Delegate with Helm in AKS
![Harness Delegate](./images/harness-aks-install-delegate.png)

+ Create a Service
![Harness Service](./images/harness-aks-service-config.png)

+ Create Deployment
![Harness Deployment](./images/harness-aks-deployment.png)

+ Create Deployment Detail
![Harness Deployment Detail](./images/harness-aks-deployment-detail.png)

+ Overview Project
![Harness Overview Project](./images/harness-aks-overview.png)

+ AKS Pods Detail
![AKS Pods](./images/aks-pods.png)

### Result
+ Web API
![Web API](./images/webapi.png)