Skip to content

Commit ed8d479

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 58e1030 + 7ce8eff commit ed8d479

File tree

23 files changed

+112
-63
lines changed

23 files changed

+112
-63
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Relies on ec2 instance profile attached to K8s EC2.
2+
# It lets ebs csi driver to manage EBS volumes
3+
4+
image:
5+
tag: "v1.38.1"
6+
7+
storageClasses:
8+
- name: "ebs-sc"
9+
parameters:
10+
type: "gp3"
11+
allowVolumeExpansion: true
12+
reclaimPolicy: Retain # EBS Volume will not be deleted when PV is deleted
13+
14+
controller:
15+
extraVolumeTags:
16+
Deployment: {{ requiredEnv "MACHINE_FQDN" }}
17+
volumeModificationFeature:
18+
enabled: true
19+
resources:
20+
limits:
21+
cpu: 1 # no cpu limits by default
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
persistence:
2+
enabled: true
3+
size: "1Gi" # minimal size for gp3 is 1Gi
4+
storageClass: "ebs-sc"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
persistence:
2+
enabled: true
3+
size: "1Gi"
4+
storageClass: "csi-s3"

charts/portainer/values.yaml.gotmpl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ serviceAccount:
1818
# The name of the service account to use.
1919
# If not set and create is true, a name is generated using the fullname template
2020
name: portainer-sa-clusteradmin
21-
persistence:
22-
enabled: true
23-
size: "1Gi"
24-
annotations: {}
25-
storageClass: "csi-s3"
26-
existingClaim:
21+
22+
persistence: {}
2723

2824
podAnnotations: {}
2925
podLabels: {}
@@ -61,7 +57,6 @@ ingress:
6157
port:
6258
number: 9000
6359

64-
6560
resources:
6661
limits:
6762
cpu: 2

scripts/common.Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,13 @@ venv: $(REPO_BASE_DIR)/.venv/bin/activate ## Creates a python virtual environmen
253253
ifeq ($(shell test -f j2cli_customization.py && echo -n yes),yes)
254254
255255
define jinja
256-
$(REPO_BASE_DIR)/.venv/bin/j2 --format=env $(1) .env -o $(2) --customize j2cli_customization.py
256+
$(REPO_BASE_DIR)/.venv/bin/j2 --format=env $(1) $(2) -o $(3) --customize j2cli_customization.py
257257
endef
258258
259259
else
260260
261261
define jinja
262-
$(REPO_BASE_DIR)/.venv/bin/j2 --format=env $(1) .env -o $(2)
262+
$(REPO_BASE_DIR)/.venv/bin/j2 --format=env $(1) $(2) -o $(3)
263263
endef
264264
265265
endif

scripts/deployments/compose_stack_yml.bash

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ envsubst < .env.nosub > .env
8080
cp .env ..
8181
cp ../../docker-compose.yml ./docker-compose.simcore.yml
8282

83-
unset EC2_INSTANCES_ALLOWED_TYPES
8483
"$repo_basedir"/scripts/docker-stack-config.bash -e .env docker-compose.simcore.yml docker-compose.deploy.yml > ../../stack.yml
8584
#
8685
#

scripts/deployments/deploy_everything_locally.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,5 +254,8 @@ if [ "$start_opsstack" -eq 0 ]; then
254254
fi
255255
if [ "$start_simcore" -eq 0 ]; then
256256
log_info "starting simcore..."
257-
"${repo_basedir}"/scripts/deployments/start_simcore_locally.bash
257+
service_dir="${repo_basedir}"/services/simcore
258+
pushd "${service_dir}"
259+
call_make "." up-"$stack_target"
260+
popd
258261
fi

services/maintenance-page/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ up-master: up
3333

3434
.PHONY: docker-compose.yml
3535
docker-compose.yml: .venv .env
36-
@$(call jinja, docker-compose.yml.j2, docker-compose.yml.unlinted) && \
36+
@$(call jinja, docker-compose.yml.j2, .env, docker-compose.yml.unlinted) && \
3737
$(_yq) docker-compose.yml.unlinted > docker-compose.yml; \
3838
rm docker-compose.yml.unlinted >/dev/null 2>&1;
3939

services/monitoring/Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ ${TEMP_COMPOSE}-local: docker-compose.yml docker-compose.letsencrypt.dns.yml con
7474
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< docker-compose.letsencrypt.dns.yml > $@
7575

7676
docker-compose.yml: docker-compose.yml.j2 .env .venv pgsql_query_exporter_config.yaml
77-
$(call jinja,$<,$@)
77+
$(call jinja,$<,.env,$@)
7878

7979
.PHONY: update.grafana.pwd
8080
update.grafana.pwd: .env ## Change grafana pwd
@@ -101,7 +101,7 @@ grafana-import: grafana/assets .venv ## Imports AND OVERWRITES the remote grafan
101101

102102
.PHONY: config.grafana.dashboards
103103
config.grafana.dashboards: grafana/templates-provisioning/dashboards/simcore/Metrics-dashboard.json.j2 .venv #Configure dashboards for aws or dalco clusters
104-
$(call jinja, $<, grafana/provisioning/dashboards/simcore/Metrics-dashboard.json)
104+
$(call jinja, $<, .env, grafana/provisioning/dashboards/simcore/Metrics-dashboard.json)
105105

106106
.PHONY: config.monitoring
107107
config.monitoring: grafana/template-config.monitoring ${REPO_CONFIG_LOCATION}
@@ -133,7 +133,7 @@ config.prometheus.ceph.simcore: ${REPO_CONFIG_LOCATION} .venv
133133
@set -o allexport; \
134134
source $<; \
135135
set +o allexport; \
136-
$(call jinja, prometheus/prometheus-ceph.yml.j2, prometheus/prometheus-ceph.yml); \
136+
$(call jinja, prometheus/prometheus-ceph.yml.j2, .env, prometheus/prometheus-ceph.yml); \
137137
cat prometheus/prometheus-base.yml | $(_yq) '. *+ load("prometheus/prometheus-simcore.yml")' | cat | \
138138
$(_yq) '. *+ load("prometheus/prometheus-ceph.yml")' > prometheus/prometheus.yml; \
139139
envsubst < prometheus/prometheus.yml > prometheus/prometheus.temp.yml; \
@@ -148,10 +148,10 @@ config.prometheus: ${REPO_CONFIG_LOCATION} .venv
148148
mv prometheus/prometheus.temp.yml prometheus/prometheus.yml
149149

150150
pgsql_query_exporter_config.yaml: pgsql_query_exporter_config.yaml.j2 ${REPO_CONFIG_LOCATION} .env .venv
151-
$(call jinja, $<, $@);
151+
$(call jinja, $<, .env, $@);
152152

153153
smokeping_prober_config.yaml: smokeping_prober_config.yaml.j2 ${REPO_CONFIG_LOCATION} .env .venv
154-
$(call jinja, $<, $@);
154+
$(call jinja, $<, .env, $@);
155155

156156
.PHONY: grafana/assets
157157
grafana/assets: ${REPO_CONFIG_LOCATION}

services/monitoring/docker-compose.yml.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ configs:
2525
file: ./prometheus/prometheus-federation.yml
2626
prometheus_rules:
2727
file: ./prometheus/prometheus.rules.yml
28-
grafana_image_renderer_config:
29-
file: ./grafana-image-renderer/config.json
3028
pgsql_query_exporter_config:
3129
file: ./pgsql_query_exporter_config.yaml
3230
smokeping_prober_config:
@@ -249,7 +247,7 @@ services:
249247
cpus: "0.1"
250248

251249
grafana:
252-
image: grafana/grafana-oss:11.1.3
250+
image: grafana/grafana-oss:11.2.4
253251
volumes:
254252
- grafana_data:/var/lib/grafana
255253
env_file:

0 commit comments

Comments
 (0)