From 628a9d3dbfa738e864c263d7703a7c73ec429779 Mon Sep 17 00:00:00 2001 From: ross-p-smith Date: Wed, 21 Jun 2023 11:52:59 +0100 Subject: [PATCH] Removed help --- temporal_example/.env | 4 - temporal_example/deploy.sh | 25 ---- temporal_example/env_setup.md | 114 ------------------ temporal_example/known_issues.md | 4 - temporal_example/temporal_scaledObject.yml | 23 ---- .../temporal_scaledObject_tls.yml | 51 -------- temporal_example/useful_commands.md | 53 -------- 7 files changed, 274 deletions(-) delete mode 100644 temporal_example/.env delete mode 100755 temporal_example/deploy.sh delete mode 100644 temporal_example/env_setup.md delete mode 100644 temporal_example/known_issues.md delete mode 100644 temporal_example/temporal_scaledObject.yml delete mode 100644 temporal_example/temporal_scaledObject_tls.yml delete mode 100644 temporal_example/useful_commands.md diff --git a/temporal_example/.env b/temporal_example/.env deleted file mode 100644 index b563a493776..00000000000 --- a/temporal_example/.env +++ /dev/null @@ -1,4 +0,0 @@ -ACR_NAME=crnxcakefjjgtxu -AKS_NAME=aks-nxcakefjjgtxu -RG_NAME=rg-temporal-samples-k8s-dev -ENDPOINT=20.61.133.144:8090 \ No newline at end of file diff --git a/temporal_example/deploy.sh b/temporal_example/deploy.sh deleted file mode 100755 index 398fc8cb6c8..00000000000 --- a/temporal_example/deploy.sh +++ /dev/null @@ -1,25 +0,0 @@ -# Check we are logged into Azure -az account show - -source .env - -# Get the Kubernetes client context for the AKS cluster -az aks get-credentials --resource-group $RG_NAME --name ${AKS_NAME} - -# Log into the Azure Container Registry -TOKEN=$(az acr login --name ${ACR_NAME} --expose-token --output tsv --query accessToken) -docker login ${ACR_NAME}.azurecr.io --username 00000000-0000-0000-0000-000000000000 --password-stdin <<< $TOKEN -#az acr login -n - -# Build KEDA -cd .. && IMAGE_REGISTRY=${ACR_NAME}.azurecr.io IMAGE_REPO=${ACR_NAME} make publish - -IMAGE_REGISTRY=${ACR_NAME}.azurecr.io IMAGE_REPO=${ACR_NAME} make deploy - -kubectl apply -f temporal_example/temporal_scaledObject_tls.yml - -kubectl get pods --namespace keda - -#seq 1000 | parallel -n0 -j5 "curl http://${ENDPOINT}/async?name=v2" - -seq 1000 | parallel -n0 -j4 "curl http://${ENDPOINT}/delay" \ No newline at end of file diff --git a/temporal_example/env_setup.md b/temporal_example/env_setup.md deleted file mode 100644 index a11805da7b8..00000000000 --- a/temporal_example/env_setup.md +++ /dev/null @@ -1,114 +0,0 @@ -# Environment setup instructions - -## Temporal Go App example - -### Requirements - -- pulumi -- az cli -- golang - -### Deployment - -- Login to AZ CLI - -- Init dev env - -```bash -pulumi stack init dev -``` - -- Deploy dev env - -```bash -pulumi up -``` - -### Launching Temporal App Workflow - -After deployment, endpoints will be printed out. -Use these endpoint to launch and view workflows. - -```bash -Outputs: - starterEndpoint: output - webEndpoint : output -``` - - -## KEDA Scaler - -### Requirements - -- kubectl -- docker -- golang - -### Deployment - -- Open provided Dev Container - -- AZ Login - -- Get k8s credentials - -```bash -az aks get-credentials --resource-group --name -aks -``` - -- Login to Docker Registry - -```bash -sudo docker login .azurecr.io -``` - -- Build KEDA and publish image - -```bash -sudo IMAGE_REGISTRY=.azurecr.io IMAGE_REPO= make publish -``` - -- Deploy KEDA resources - -```bash -IMAGE_REGISTRY=.azurecr.io IMAGE_REPO= make deploy -``` - -### Deploy Temporal KEDA scaleable object - -- Edit values in: temporal_example/temporal_scaledObject.yml - -```yml -apiVersion: keda.sh/v1alpha1 -kind: ScaledObject -metadata: - name: temporal-scaledobject - namespace: temporal -spec: - scaleTargetRef: - name: - pollingInterval: 20 - cooldownPeriod: 200 - minReplicaCount: 1 - maxReplicaCount: 50 - triggers: - - type: temporal - metadata: - address: ":7233" - threshold: '10' - #activationThreshold: '50' -``` - -- Deploy Scalable Object - -```bash -kubectl apply -f temporal_example/temporal_scaledObject.yml -``` - -### Test scaler - -Using parallel: - -```bash -seq 1000 | parallel -n0 -j2 "curl http://:8080/async?name=scaledemo" -``` diff --git a/temporal_example/known_issues.md b/temporal_example/known_issues.md deleted file mode 100644 index 35a67e8fdd2..00000000000 --- a/temporal_example/known_issues.md +++ /dev/null @@ -1,4 +0,0 @@ -## VSCODE - -Devcontainer by default is using root, this will cause permission issues with files created on Linux machines. -The branch diff --git a/temporal_example/temporal_scaledObject.yml b/temporal_example/temporal_scaledObject.yml deleted file mode 100644 index 23d0f11f17f..00000000000 --- a/temporal_example/temporal_scaledObject.yml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: keda.sh/v1alpha1 -kind: ScaledObject -metadata: - name: temporal-scaledobject - namespace: temporal-samples-k8s -spec: - scaleTargetRef: - name: temporal-worker-app - pollingInterval: 15 - cooldownPeriod: 200 - minReplicaCount: 1 - maxReplicaCount: 50 - triggers: - - type: temporal - metadata: - address: "temporal:7233" - certificate_authority_file: /etc/temporal/config/certs/ca.cert - certificate_file: /etc/temporal/config/certs/cluster.cert - certificate_key_file: /etc/temporal/config/certs/cluster.key - threshold: '10' - #activationThreshold: '50' - - \ No newline at end of file diff --git a/temporal_example/temporal_scaledObject_tls.yml b/temporal_example/temporal_scaledObject_tls.yml deleted file mode 100644 index ad90e3a7d63..00000000000 --- a/temporal_example/temporal_scaledObject_tls.yml +++ /dev/null @@ -1,51 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: keda-temporal-secret - namespace: temporal-samples-k8s -data: - cert: "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUZpRENDQTNDZ0F3SUJBZ0lVV3MzUlgyMHRucG5lL3hveWh6V1VuTXB5eWM0d0RRWUpLb1pJaHZjTkFRRUwKQlFBd2NURUxNQWtHQTFVRUJoTUNWVXN4RnpBVkJnTlZCQWdNRGtkeVpXRjBaWElnVEc5dVpHOXVNUmt3RndZRApWUVFLREJCVVpYTjBJRU52Y25CdmNtRjBhVzl1TVE4d0RRWURWUVFIREFaTWIyNWtiMjR4SFRBYkJnTlZCQU1NCkZIUmxjM1F0WTI5eWNHOXlZWFJwYjI0dVpXUjFNQjRYRFRJek1EWXhOVEV5TlRR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ggerAuthentication -metadata: - name: keda-temporal-creds - namespace: temporal-samples-k8s -spec: - secretTargetRef: - - parameter: cert - name: keda-temporal-secret - key: cert - - parameter: key - name: keda-temporal-secret - key: key - - parameter: ca - name: keda-temporal-secret - key: ca ---- -apiVersion: keda.sh/v1alpha1 -kind: ScaledObject -metadata: - name: temporal-scaledobject - namespace: temporal-samples-k8s -spec: - scaleTargetRef: - name: temporal-worker-app - pollingInterval: 20 - cooldownPeriod: 200 - minReplicaCount: 1 - maxReplicaCount: 50 - triggers: - - type: temporal - authenticationRef: - name: keda-temporal-creds - metadata: - address: 10.0.4.118:7233 - serverName: "tls-sample" - threshold: '10' - #activationThreshold: '50' - authModes: "tls" - - \ No newline at end of file diff --git a/temporal_example/useful_commands.md b/temporal_example/useful_commands.md deleted file mode 100644 index 552cb898bda..00000000000 --- a/temporal_example/useful_commands.md +++ /dev/null @@ -1,53 +0,0 @@ -# Useful Commands - -## Get K8s objects in namespace - -### Temporal - -```bash -kubectl get all --namespace temporal -``` - -### Keda - -```bash -kubectl get all --namespace temporal -``` - -## Deploy the Scaled Object - -```bash -kubectl apply -f temporal_example/temporal_scaledObject.yml -``` - -## Deploy the custom Keda (with Temporal Scaler) - -### Build and publish - -```bash -sudo IMAGE_REGISTRY=.azurecr.io IMAGE_REPO= make publish -``` - -### Deploy to K8s from Container Registry - -```bash -IMAGE_REGISTRY=.azurecr.io IMAGE_REPO= make deploy -``` - -## Undeploy from K8s - -```bash -IMAGE_REGISTRY=.azurecr.io IMAGE_REPO= make undeploy -``` - -## Get KEDA operator logs - -```bash -kubectl logs -l app=keda-operator -n keda -f -``` - -## Run start worker calls in parallel - -```bash -seq 1000 | parallel -n0 -j2 "curl http://:8080/async?name=scaletest1" -``` \ No newline at end of file