This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
generated from petabridge/Petabridge.App.Web
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated prod K8s scripts to not delete / create namespace * updated prod K8s scripts to not delete / create namespace * create `akkastress` namespace in AKS Pulumi stack * cleaned up deployment
- Loading branch information
1 parent
d4ae079
commit 85a30d5
Showing
6 changed files
with
63 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,31 @@ | ||
@echo off | ||
REM destroys all K8s services in "phobos-web" namespace | ||
REM destroys all K8s services in "akkastress" namespace | ||
REM we don't destroy the namespace itself since it contains the Azure Storage secrets we need for Akka.Persistence.Azure | ||
|
||
kubectl delete ns akkastress | ||
set namespace=akkastress | ||
set location=%~dp0/environment | ||
|
||
echo "Destroying K8s resources from [%location%] in namespace [%namespace%]" | ||
|
||
echo "Using namespace [%namespace%] going forward..." | ||
|
||
echo "Creating configurations from YAML files in [%location%/configs]" | ||
for %%f in (%location%/configs/*.yaml) do ( | ||
echo "Deploying %%~nxf" | ||
kubectl delete -f "%location%/configs/%%~nxf" -n "%namespace%" | ||
) | ||
|
||
echo "Creating environment-specific services from YAML files in [%location%]" | ||
for %%f in (%location%/*.yaml) do ( | ||
echo "Deploying %%~nxf" | ||
kubectl delete -f "%location%/%%~nxf" -n "%namespace%" | ||
) | ||
|
||
echo "Creating all services..." | ||
for %%f in (%~dp0/services/*.yaml) do ( | ||
echo "Deploying %%~nxf" | ||
kubectl delete -f "%~dp0/services/%%~nxf" -n "%namespace%" | ||
) | ||
|
||
echo "All services started... Printing K8s output.." | ||
kubectl get all -n "%namespace%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@echo off | ||
REM installs all Helm charts | ||
|
||
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts | ||
helm repo add datalust https://helm.datalust.co | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
helm repo update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters