añadiendo maquinas virtuales

This commit is contained in:
2025-08-31 13:44:21 +02:00
parent 01cbdf2a1d
commit bf2e26a8bf
8 changed files with 57 additions and 233 deletions

View File

@@ -13,6 +13,17 @@ spec:
labels:
app: iso-server
spec:
initContainers:
- name: init-dirs
image: alpine:latest
command: ["sh","-lc"]
args:
- |
mkdir -p /share/isos
chmod 755 /share/isos
volumeMounts:
- name: iso-storage
mountPath: /share
containers:
- name: httpd
image: httpd:2.4
@@ -21,6 +32,7 @@ spec:
volumeMounts:
- name: iso-storage
mountPath: /usr/local/apache2/htdocs
subPath: isos
readinessProbe:
httpGet:
path: /
@@ -36,7 +48,7 @@ spec:
- name: samba
image: dperson/samba
args: ["-p", "-s", "isos;/share;yes;no"]
args: ["-p", "-s", "isos;/share/isos;yes;no"]
ports:
- containerPort: 445
securityContext: