3
0
mirror of https://github.com/pragma-/pbot.git synced 2026-02-14 13:27:58 +01:00

CID vsock.

This commit is contained in:
Alex Belanger 2024-03-12 00:54:16 -04:00
parent 0b1ccd6e9f
commit 05d5578c24
No known key found for this signature in database
GPG Key ID: 31736D2B10A5F158
3 changed files with 7 additions and 4 deletions

View File

@ -23,6 +23,9 @@ RUN chmod +x /opt/pbot/applets/pbot-vm/entrypoint.sh
# Different location for Policykit
RUN sed -i -e "s/\/etc\/polkit-1\/rules.d\//\/usr\/share\/polkit-1\/rules.d\//g" /opt/pbot/applets/pbot-vm/guest/bin/setup-guest
# Give well-known host as CID.
RUN sed -i -e "s/\"cid\" : 7,/\"cid\" : 2,/g" /opt/pbot/applets/pbot-vm/host/config/vm-exec.json
# Setup the guest.
RUN cd /opt/pbot/applets/pbot-vm && ./guest/bin/setup-guest

View File

@ -31,8 +31,8 @@ spec:
cpu: "0.1"
memory: 100Mi
limits:
cpu: "0.5"
memory: 500Mi
cpu: "0.3"
memory: 300Mi
volumes:
- name: persistent
persistentVolumeClaim:

View File

@ -23,8 +23,8 @@ spec:
cpu: "0.1"
memory: 100Mi
limits:
cpu: "0.5"
memory: 200Mi
cpu: "0.1"
memory: 100Mi
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy