Skip to content

Commit 6ee7ba2

Browse files
committed
ironic: adjust the template
500m CPU is not enough and results in heavy throttling.
1 parent 597ff25 commit 6ee7ba2

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

containers/ironic/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ RUN \
3636
mkdir -p /usr/share/novnc/ && \
3737
wget -q -O "$DEST_FILE" "$URL" && \
3838
tar -C /usr/share/novnc/ --strip-components=1 -zxvf "${DEST_FILE}" "$PFX/app" "$PFX/core" "$PFX/vendor" "$PFX/vnc.html"
39+
COPY containers/ironic/ironic-console-pod.yaml.template /var/lib/openstack/lib/python3.12/site-packages/ironic/console/container/
3940

4041
ARG OPENSTACK_VERSION="required_argument"
4142
FROM quay.io/airshipit/ironic:${OPENSTACK_VERSION}-ubuntu_noble AS final
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: "ironic-console-{{ uuid }}"
5+
namespace: openstack
6+
labels:
7+
app: ironic
8+
component: ironic-console
9+
conductor: "{{ conductor }}"
10+
stringData:
11+
app-info: '{{ app_info }}'
12+
---
13+
apiVersion: v1
14+
kind: Pod
15+
metadata:
16+
name: "ironic-console-{{ uuid }}"
17+
namespace: openstack
18+
labels:
19+
app: ironic
20+
component: ironic-console
21+
conductor: "{{ conductor }}"
22+
spec:
23+
containers:
24+
- name: x11vnc
25+
image: "{{ image }}"
26+
imagePullPolicy: Always
27+
ports:
28+
- containerPort: 5900
29+
resources:
30+
requests:
31+
cpu: 250m
32+
memory: 256Mi
33+
limits:
34+
cpu: 1500m
35+
memory: 1024Mi
36+
env:
37+
- name: APP
38+
value: "{{ app }}"
39+
- name: READ_ONLY
40+
value: "{{ read_only }}"
41+
- name: APP_INFO
42+
valueFrom:
43+
secretKeyRef:
44+
name: "ironic-console-{{ uuid }}"
45+
key: app-info

0 commit comments

Comments
 (0)