Merge branch 'main' into implements-workflow-dispatcher
This commit is contained in:
@@ -111,6 +111,9 @@ function main() {
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Refreshes all pods in case of a new image
|
||||||
|
bash ./refresh.sh
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ spec:
|
|||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
limits:
|
limits:
|
||||||
memory: "512Mi"
|
memory: "768Mi"
|
||||||
cpu: "750m"
|
cpu: "500m"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8070
|
- containerPort: 8070
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -24,8 +24,8 @@ spec:
|
|||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
limits:
|
limits:
|
||||||
memory: "1536Mi"
|
memory: "512Mi"
|
||||||
cpu: "750m"
|
cpu: "500m"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5000
|
- containerPort: 5000
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ spec:
|
|||||||
memory: "512Mi"
|
memory: "512Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
limits:
|
limits:
|
||||||
memory: "512Mi"
|
memory: "768Mi"
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5432
|
- containerPort: 5432
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ spec:
|
|||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
limits:
|
limits:
|
||||||
memory: "1024Mi"
|
memory: "1024Mi"
|
||||||
cpu: "500m"
|
cpu: "250m"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 6379
|
- containerPort: 6379
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -22,8 +22,8 @@ spec:
|
|||||||
memory: "256Mi"
|
memory: "256Mi"
|
||||||
cpu: "250m"
|
cpu: "250m"
|
||||||
limits:
|
limits:
|
||||||
memory: "512Mi"
|
memory: "256Mi"
|
||||||
cpu: "500m"
|
cpu: "250m"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
env:
|
env:
|
||||||
|
|||||||
19
refresh.sh
Executable file
19
refresh.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAMESPACES=(
|
||||||
|
portfolio
|
||||||
|
)
|
||||||
|
|
||||||
|
DEPLOYMENTS=(
|
||||||
|
"frontend-deployment"
|
||||||
|
"backend-deployment"
|
||||||
|
"storage-deployment"
|
||||||
|
"storage-processor-deployment"
|
||||||
|
)
|
||||||
|
|
||||||
|
for i in "${NAMESPACES[@]}"; do
|
||||||
|
for x in "${DEPLOYMENTS[@]}"; do
|
||||||
|
PODS=$(kubectl -n $i get pods --no-headers | awk '{print $1}' | grep $x | tr '\n' ' ')
|
||||||
|
kubectl -n $i delete pods $PODS
|
||||||
|
done
|
||||||
|
done
|
||||||
1
setup.py
1
setup.py
@@ -13,6 +13,7 @@ def write_template(template: str, output: str):
|
|||||||
open(output, 'w') as output:
|
open(output, 'w') as output:
|
||||||
output.write(envsubst(template.read()))
|
output.write(envsubst(template.read()))
|
||||||
|
|
||||||
|
|
||||||
def configure_templates(environment: str):
|
def configure_templates(environment: str):
|
||||||
if not environment in ("prod", "staging", "local"):
|
if not environment in ("prod", "staging", "local"):
|
||||||
raise ValueError("Invalid Environment Selected")
|
raise ValueError("Invalid Environment Selected")
|
||||||
|
|||||||
Reference in New Issue
Block a user