Skip to content

Commit 6a75094

Browse files
committed
ecamp3-logging: allow to set different values for prod
1 parent 5da9491 commit 6a75094

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.ops/ecamp3-logging/deploy.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ set -e
44

55
SCRIPT_DIR=$(realpath "$(dirname "$0")")
66
cd $SCRIPT_DIR
7+
8+
if [ $# -ne 1 ]; then
9+
echo "Usage: $0 <prod|dev>"
10+
echo "(or other environments)"
11+
exit 1
12+
fi
13+
714
# to debug: --dry-run --debug
815
helm dep build
916
helm upgrade --install ecamp3-logging \
1017
--namespace=ecamp3-logging \
1118
--create-namespace \
12-
$SCRIPT_DIR \
13-
--values $SCRIPT_DIR/values.yaml
19+
$SCRIPT_DIR \
20+
--values $SCRIPT_DIR/values.yaml \
21+
--values $SCRIPT_DIR/values-$1.yaml

.ops/ecamp3-logging/values-dev.yaml

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
elasticsearch:
2+
elasticNode:
3+
resources:
4+
requests:
5+
memory: 1500Mi
6+
limits:
7+
memory: 1500Mi

0 commit comments

Comments
 (0)