forked from Bahmni/helm-umbrella-chart
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathprofiling.sh
executable file
·39 lines (35 loc) · 1.09 KB
/
profiling.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
set -e
cd charts
tar -xf openmrs*
ls
rm openmrs*.tgz
sed "s/ports:/& \n - port: 10001\n targetPort: 10001\n protocol: TCP\n name: '10001'/" ./openmrs/templates/service.yaml > ./openmrs/templates/service_performance.yaml
rm ./openmrs/templates/service.yaml
helm package openmrs openmrs && rm -rf openmrs
cd ../
( echo 'apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: profiler-ingress
labels:
environment: performance
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTPS
nginx.ingress.kubernetes.io/configuration-snippet: |
add_header Set-Cookie "reporting_session=$cookie_JSESSIONID;Path=/;Max-Age=86400";
nginx.ingress.kubernetes.io/proxy-body-size: 7m
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
spec:
ingressClassName: nginx
rules:
- host: profiling.lite.mybahmni.in
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: openmrs
port:
number: 10001') > ./templates/profiling_ingress.yaml