añadiendo maquinas virtuales
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user