Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/dapr-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
workflow_dispatch:
inputs:
cluster_name:
description: "AKS cluster to deploy to (defaults to aks-longhaul-release)"
description: "AKS cluster to deploy to (default: the LONGHAUL_RELEASE_CLUSTER repository variable, or aks-longhaul-release-119)"
required: false
type: string

Expand All @@ -25,9 +25,10 @@ jobs:
env:
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
DAPR_NAMESPACE: dapr-system
# Inputs are empty on push, so merges keep using the release cluster
TEST_CLUSTER_NAME: ${{ inputs.cluster_name || 'aks-longhaul-release' }}
TEST_RESOURCE_GROUP: ${{ inputs.cluster_name || 'aks-longhaul-release' }}
# Inputs are empty on push. Then the LONGHAUL_RELEASE_CLUSTER repository variable
# selects the release cluster. If the variable is not set, use aks-longhaul-release-119.
TEST_CLUSTER_NAME: ${{ inputs.cluster_name || vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ inputs.cluster_name || vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
HELMVER: v3.7.2
# Test applications-specific settings
APP_NAMESPACE: longhaul-test
Expand Down
156 changes: 0 additions & 156 deletions .github/workflows/dapr-longhaul-weekly.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/feed-generator-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hashtag-actor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/hashtag-counter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/message-analyzer-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pubsub-workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduler-actor-reminders-client-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduler-actor-reminders-server-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduler-jobs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduler-workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/streaming-pubsub-publisher-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/streaming-pubsub-subscriber-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/validation-worker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow-gen-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
runs-on: ubuntu-latest
env:
APP_NAMESPACE: longhaul-test
TEST_CLUSTER_NAME: aks-longhaul-release
TEST_RESOURCE_GROUP: aks-longhaul-release
TEST_CLUSTER_NAME: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
TEST_RESOURCE_GROUP: ${{ vars.LONGHAUL_RELEASE_CLUSTER || 'aks-longhaul-release-119' }}
ARTIFACT_DIR: ./deploy_artifact
steps:
- name: download artifacts
Expand Down
13 changes: 4 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,13 @@ done
```

### Accessing the Grafana dashboards
There's currently a managed Grafana in the resource group in Azure, but it is not set up. The actual Grafana dashboards are running inside of the AKS cluster. You can access them by port-forwarding the Grafana service to your local machine:
The Grafana dashboards run inside the AKS cluster. To open them, port-forward the Grafana service to your local machine.

For longhaul release:
```bash
az aks get-credentials --name aks-longhaul-release --resource-group aks-longhaul-release
kubectl port-forward svc/grafana 8080:80 --namespace dapr-monitoring
```
The workflows deploy to the release cluster that the `LONGHAUL_RELEASE_CLUSTER` repository variable names. If the variable is not set, they use `aks-longhaul-release-119`. The resource group has the same name as the cluster.

For longhaul weekly:
```bash
az aks get-credentials --name aks-longhaul-weekly --resource-group aks-longhaul-weekly
kubectl port-forward svc/grafana 8081:80 --namespace dapr-monitoring
az aks get-credentials --name aks-longhaul-release-119 --resource-group aks-longhaul-release-119
kubectl port-forward svc/grafana 8080:80 --namespace dapr-monitoring
```

The username for the Grafana dashboard is "admin" and you can get the password by running:
Expand Down
3 changes: 3 additions & 0 deletions deploy/aks/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ param location string = resourceGroup().location
param kubernetesNamespace string = 'longhaul-test'
@description('ObjectID for an user in AAD you want to grant grafana admin rights. Default is to not provide anything: not grant this permission any individual')
param userGrafanaAdminObjectId string = ''
@description('If true, deploy an Azure Managed Grafana instance. The longhaul Grafana dashboards run inside the cluster, so the default is false')
param deployGrafana bool = false



Expand Down Expand Up @@ -112,6 +114,7 @@ module monitoring 'monitoring/monitoring.bicep' = {
workspaceLogAnalyticsName: logAnalyticsName
grafanaAdminObjectId: managedIdentity.properties.principalId
userGrafanaAdminObjectId: userGrafanaAdminObjectId
deployGrafana: deployGrafana
}
// Interestingly, this can be deployed in parallel to AKS cluster and it works just fine. Go figure.
}
Expand Down
Loading
Loading