Windows
# run as Admin
choco install kubernetes-helm
./run-dapr-local.ps1
# Change ./vars.ps1 to suit
./deploy.ps1
# Get list of pods
kubectl get pods
# Get metrics for the app and container
kubectl logs --selector=app=tournaments -c gameontournaments --tail 100
kubectl logs --selector=app=users -c gameonusers --tail 100
# Restart pods (deployment)
kubectl rollout restart deployment tournaments
kubectl rollout restart deployment users
Can't automate SSL certs for Apex domains 😢
- Create CSR in Key Vault
- Request cert in DigiCert
- Merge cert
Grant KV permission to AFD: https://docs.microsoft.com/en-us/azure/frontdoor/front-door-custom-domain-https#option-2-use-your-own-certificate
- Create a new access policy
- Search for
ad0e1c7e-6d38-4ba4-9efd-0bc77ba9f037
and chooseMicrosoft.Azure.Frontdoor
- Grant Secret=Get and Certificate=Get permisions
- Make sure click all of the save buttons! 😬
Now you are ready to run deploy-storage.ps1
See test/example.http
for requests you can use for testing with VSCode REST Extension.
If you need a bearer token, visit https://gameon.nz/developer. Or https://mobilefirstcloudfirst.net/2019/09/use-vscode-rest-client-plugin-oauth-azure-active-directory/.
Troubleshooting Issuing ACME Certificates
How to configure Azure Key Vault and Kubernetes to use Azure Managed Identities to access secrets