Skip to content

Commit e81cf38

Browse files
committed
reduce memory usage
Signed-off-by: Ricardo Mateus <[email protected]>
1 parent b4a61a1 commit e81cf38

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

containers/srv/uyuni-container/entrypoint.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@
22

33
export LC_ALL=en_US.UTF-8
44

5-
#chown postgres:postgres /var/lib/pgsql
6-
#chown root:salt /etc/salt
7-
85
su postgres -c 'pg_ctl start -D /var/lib/pgsql/data -l /tmp/log & >/dev/null 2>&1' && \
96
# && wait for postgres to start before calling migration
107
/usr/lib/susemanager/bin/migration.sh -l /var/log/susemanager_setup.log -s
118
/usr/bin/salt-secrets-config.py &
12-
#mv /tmp/server.xml /etc/tomcat/server.xml
9+
1310
su - tomcat -c '/usr/lib/tomcat/server start &'
1411
/usr/sbin/taskomatic & > /dev/null 2>&1
1512
/usr/sbin/start_apache2 -k start >/dev/null 2>&1

containers/srv/uyuni-container/k3s/Readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,8 @@ k3s ctr image import uyuni.tar
2323
- Test cluster and app
2424
curl -X GET http://YOUR_IP
2525

26-
## troubleshooting
26+
##remote
27+
`k3s kubectl delete namespace uyuni`
28+
29+
## troubleshooting
2730
https://kubernetes.io/docs/tasks/debug-application-cluster/debug-running-pod/

containers/srv/uyuni-container/k3s/uyuni.yaml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ spec:
2222
memory: "64Mi"
2323
cpu: "100m"
2424
limits:
25-
memory: "128Mi"
26-
cpu: "500m"
25+
memory: "2048Mi"
26+
cpu: "300m"
2727
ports:
28-
- containerPort: 80
2928
- containerPort: 443
30-
- containerPort: 4505
31-
- containerPort: 4506
3229
imagePullPolicy: Never
3330
---
3431
apiVersion: v1
@@ -38,18 +35,9 @@ metadata:
3835
namespace: uyuni
3936
spec:
4037
ports:
41-
- port: 80
42-
targetPort: 80
43-
name: http
44-
- port: 443
38+
- protocol: "TCP"
39+
port: 443
4540
targetPort: 443
46-
name: https
47-
- port: 4505
48-
targetPort: 4505
49-
name: salt1
50-
- port: 4506
51-
targetPort: 4506
52-
name: salt2
5341

5442
selector:
5543
app: uyuni
@@ -65,7 +53,7 @@ spec:
6553
rules:
6654
- http:
6755
paths:
68-
- path: /
56+
- path: /rhn/*
6957
backend:
7058
serviceName: uyuni-service
7159
servicePort: 443

0 commit comments

Comments
 (0)