Done python publish before Generate-Config
This commit is contained in:
Родитель
24bd300467
Коммит
c4024be3b6
|
@ -48,6 +48,12 @@ if ($deployGlobalSecret) {
|
|||
Write-Host "Setting up Azure Dev Spaces for AKS: $aksName"
|
||||
& ./Setup-Dev-Spaces.ps1 -resourceGroup $resourceGroup -aksName $aksName -rootSpace default
|
||||
|
||||
# Deploy Azure function in order to have its key on helm values.
|
||||
$azFunctionLocation=$(./Join-Path-Recursively.ps1 "..","..","Source","Functions","RPSLS.Python.Api")
|
||||
Push-Location $azFunctionLocation
|
||||
func azure functionapp publish rpslsfuncappjlnjrxnd5nrz2 --no-build
|
||||
Pop-Location
|
||||
|
||||
# Generate Config
|
||||
$gValuesLocation=$(./Join-Path-Recursively.ps1 "..","helm","__values",$gValuesFile)
|
||||
& ./Generate-Config.ps1 -resourceGroup $resourceGroup -outputFile $gValuesLocation
|
||||
|
|
|
@ -31,11 +31,11 @@ env:
|
|||
values: {}
|
||||
strategies: # Strategies to install. Each strategy is one deployment with one pod with the PICK_STRATEGY env var configured
|
||||
# - rock
|
||||
- paper
|
||||
# - paper
|
||||
# - scissors
|
||||
# - lizard
|
||||
# - spock
|
||||
# - random
|
||||
- random
|
||||
# - iterative
|
||||
|
||||
probes:
|
||||
|
|
|
@ -3,6 +3,7 @@ Write-Host "Configuring RBAC for Tiller" -ForegroundColor Yellow
|
|||
Write-Host "------------------------------------------------------------" -ForegroundColor Yellow
|
||||
kubectl create serviceaccount --namespace kube-system tiller
|
||||
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
|
||||
kubectl --namespace kube-system patch deploy tiller-deploy -p '{\"spec\":{\"template\":{\"spec\":{\"serviceAccount\":\"tiller\"}}}}'
|
||||
Write-Host "------------------------------------------------------------" -ForegroundColor Yellow
|
||||
Write-Host "Installing Helm" -ForegroundColor Yellow
|
||||
Write-Host "------------------------------------------------------------" -ForegroundColor Yellow
|
||||
|
|
11
README.md
11
README.md
|
@ -41,6 +41,13 @@ Languages used in this application include .NET, Node.js, Python, Java, and PHP.
|
|||
|
||||
[![Application development for everyone](Documents/Images/ScottHa-Keynote.png)](https://aka.ms/devkeynote)
|
||||
|
||||
## Build Status
|
||||
|
||||
| [![Actions Status](https://github.com/microsoft/RockPaperScissorsLizardSpock/workflows/Web%20CI%2FCD/badge.svg)](https://github.com/microsoft/RockPaperScissorsLizardSpock/actions) | [![Actions Status](https://github.com/microsoft/RockPaperScissorsLizardSpock/workflows/Game%20Manager%20CI%2FCD/badge.svg)](https://github.com/microsoft/RockPaperScissorsLizardSpock/actions) | [![Actions Status](https://github.com/microsoft/RockPaperScissorsLizardSpock/workflows/DotnetPlayer%20CI%2FCD/badge.svg)](https://github.com/microsoft/RockPaperScissorsLizardSpock/actions) |
|
||||
| :------------- | :----------: | -----------: |
|
||||
| [![Actions Status](https://github.com/microsoft/RockPaperScissorsLizardSpock/workflows/NodePlayer%20CI%2FCD/badge.svg)](https://github.com/microsoft/RockPaperScissorsLizardSpock/actions) | [![Actions Status](https://github.com/microsoft/RockPaperScissorsLizardSpock/workflows/PythonPlayer%20CI%2FCD/badge.svg)](https://github.com/microsoft/RockPaperScissorsLizardSpock/actions) | [![Actions Status](https://github.com/microsoft/RockPaperScissorsLizardSpock/workflows/JavaPlayer%20CI%2FCD/badge.svg)](https://github.com/microsoft/RockPaperScissorsLizardSpock/actions) |
|
||||
| [![Actions Status](https://github.com/microsoft/RockPaperScissorsLizardSpock/workflows/PhpPlayer%20CI%2FCD/badge.svg)](https://github.com/microsoft/RockPaperScissorsLizardSpock/actions) |
|
||||
|
||||
# New to Microsoft Azure?
|
||||
|
||||
You will need an Azure subscription to work with this demo code. You can:
|
||||
|
@ -170,7 +177,7 @@ Once installed, helm commands like `helm ls` should work without any error.
|
|||
|
||||
Before deploying services using Helm, you need to setup the configuration. We refer to the configuration file with the name of _gvalues_ file. This file **contains all secrets** so beware to not commit in your repo accidentally.
|
||||
|
||||
An example of this file is in `helm/gvalues.yaml`. The deployment scripts use this file by default, **but do not rely on editing this file**. Instead create a copy of it a folder outside the repository and use the `-valuesFile` parameter of the deployment script.
|
||||
A template of this file is in `powershell/gvalues.tempalte`. The deployment scripts use this file by default, **but do not rely on editing this file**. Instead create a copy of it a folder outside the repository and use the `-valuesFile` parameter of the deployment script.
|
||||
|
||||
> **Note:** The folder `/Deploy/helm/__values/` is added to `.gitignore`, so you can keep all your configuration files in it, to avoid accidental pushes.
|
||||
|
||||
|
@ -182,6 +189,8 @@ Generating a valid _gvalues_ file can be a bit harder, so there is a Powershell
|
|||
|
||||
> **Note** The Generate-Config.ps1 uses the _application-insights_ CLI extension to find the application insights id. Install it with `az extension add --name application-insights`
|
||||
|
||||
> **Note** The configuration script requires the function key so internal aks services can call it, so before executing the Generate-Config.ps1 make sure that its already in azure.
|
||||
|
||||
To auto-generate your _gvalues_ file just go to `/Deploy/powershell` folder and from a Powershell window, type the following:
|
||||
|
||||
```
|
||||
|
|
|
@ -20,7 +20,6 @@ project.lock.json
|
|||
/data
|
||||
.secrets
|
||||
appsettings.json
|
||||
local.settings.json
|
||||
|
||||
node_modules
|
||||
dist
|
||||
|
@ -40,4 +39,7 @@ venv.bak/
|
|||
# Byte-compiled / optimized / DLL files
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*$py.class
|
||||
|
||||
#Azure functions autogenerated project
|
||||
extensions.csproj
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"version": "2.0"
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"IsEncrypted": false,
|
||||
"Values": {
|
||||
"FUNCTIONS_WORKER_RUNTIME": "python"
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче