File tree 6 files changed +24
-6
lines changed
6 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -5,5 +5,7 @@ kubeconfig*.yaml
5
5
kubeconfig * .yml
6
6
kubeconfig * .conf
7
7
8
+ .env
9
+
8
10
cache.yaml
9
11
default.log
Original file line number Diff line number Diff line change 4
4
5
5
.ONESHELL :
6
6
expose-services :
7
- kubectl --kubeconfig=$(KUBECONFIG ) -n $(NAMESPACE ) port-forward service/ecde-webapp 8080:$( WEBAPP_PORT ) & \
7
+ kubectl --kubeconfig=$(KUBECONFIG ) -n $(NAMESPACE ) port-forward service/ecde-webapp 8080:80 & \
8
8
kubectl --kubeconfig=$(KUBECONFIG ) -n $(NAMESPACE ) port-forward service/ecde-api $(APISERVER_PORT ) :$(APISERVER_PORT ) & \
9
9
kubectl --kubeconfig=$(KUBECONFIG ) -n $(NAMESPACE ) port-forward service/skinny-wms $(SKINNYWMS_PORT ) :$(SKINNYWMS_PORT ) & \
10
10
echo " Press CTRL-C to stop port forwarding and exit the script"
@@ -13,6 +13,16 @@ expose-services:
13
13
dev :
14
14
devspace --kubeconfig=$(KUBECONFIG ) -n $(NAMESPACE ) run-pipeline deploy
15
15
16
+ k9s :
17
+ k9s --kubeconfig=$(KUBECONFIG )
18
+
19
+ .env :
20
+ @echo " KUBECONFIG=./kubeconfig.yaml\nNAMESPACE=${USER} -ecde-dev\n\nAPISERVER_PORT=5000\nSKINNYWMS_PORT=5001" > $@
21
+
22
+ SILENT :
23
+ setup : .env
24
+ @echo " \e[1;32mDone!\e[0m\n\e[1;3;33mPlease edit the values in the '.env' file and then run 'make dev' to deploy the application\e[0m"
25
+
16
26
purge :
17
27
devspace --kubeconfig=$(KUBECONFIG ) -n $(NAMESPACE ) purge \
18
28
kubectl delete pv ${USER} -pv-wms
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ deployments:
24
24
pvName : ${USER}-pv-wms
25
25
storage : 10Gi
26
26
storageclass : nfs-csi
27
+ apiServer :
28
+ port : ${APISERVER_PORT}
29
+ skinnyWms :
30
+ port : ${SKINNYWMS_PORT}
27
31
28
32
dev :
29
33
api-server :
Original file line number Diff line number Diff line change 26
26
value : {{ .Values.apiServer.env.rootPath }}
27
27
- name : MODE
28
28
value : {{ .Values.apiServer.env.mode }}
29
+ {{- if .Values.apiServer.env.allowedOrigin }}
29
30
- name : ALLOWED_ORIGIN
30
31
value : {{ .Values.apiServer.env.allowedOrigin }}
32
+ {{- end }}
31
33
- name : WMS_SERVER
32
34
value : {{ .Values.apiServer.env.wmsServer }}:$(SKINNY_WMS_SERVICE_PORT_WMS_PORT)
33
35
- name : WMS_DATA_DIR
Original file line number Diff line number Diff line change 1
- {{- if .Values.ingress.enabled }}
1
+ {{- if .Values.ingress.enable }}
2
2
apiVersion : networking.k8s.io/v1
3
3
kind : Ingress
4
4
metadata :
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ apiServer:
13
13
env :
14
14
rootPath : /c3s-apps/ecde/api
15
15
mode : production
16
- wmsServer : http://ecds-dev- cci2.copernicus-climate.eu /ecde-wms
16
+ wmsServer : http://ecds-dev.bopen.compute. cci2.ecmwf.int /ecde-wms
17
17
wmsDataDir : /skinnywms/appdata
18
18
wmsStyleDir : /skinnywms/styles
19
19
skinnyWms :
20
20
image : ecmwf/skinnywms # image for application
21
21
tag : 0.10.0 # image tag to use (this )
22
22
port : 5000 # Port exposed by the application
23
- replicas : 0
23
+ replicas : 1
24
24
env :
25
25
skinnywmsUwsgiWorkers : $(SKINNYWMS_UWSGI_WORKERS:-4)
26
26
skinnywmsDataPath : /skinnywms/appdata
@@ -35,11 +35,11 @@ sharedPvc:
35
35
ingress :
36
36
enable : true
37
37
# Hostname where the app will be published, this must be mapped to the cluster described by the KUBECONFIG
38
- hostname : ecds-dev- cci2.copernicus-climate.eu
38
+ hostname : ecds-dev.bopen.compute. cci2.ecmwf.int
39
39
# Path to the application, this must be included in the env when building a JS application
40
40
webappPath : /c3s-apps/ecde/
41
41
apiPath : /c3s-apps/ecde/api/
42
42
# SSL certificate secret name:
43
43
secretName : star.copernicus-climate.eu
44
- ingressclass : nginx-dev
44
+ ingressclass : nginx-c3s
45
45
You can’t perform that action at this time.
0 commit comments