Skip to content

Commit

Permalink
adding pods
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zoechbauer committed Sep 4, 2023
1 parent 5c7e198 commit 1ec7760
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 9 deletions.
31 changes: 31 additions & 0 deletions ai/containers/training-pod copy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: v1
kind: Pod
metadata:
name: training
spec:
containers:
- name: mlflow-container
image: ghcr.io/intertwin-eu/t6.5-ai-and-ml:containers
command: ["mlflow"]
args: ["server", "--backend-store-uri", "/home/T6.5-AI-and-ML/use-cases/mnist/data/ml-logs/"]
# volumeMounts:
# - name: shared-volume
# mountPath: /home/T6.5-AI-and-ML
- name: itwinai-container
image: ghcr.io/intertwin-eu/t6.5-ai-and-ml:containers
command: ["sleep", "100000"]
#args: ["/eos"]
volumeMounts:
- name: eos
mountPath: /eos
mountPropagation: HostToContainer

volumes:
- name: eos
# Note the particularity of the host path being /var/eos, not /eos.
# The path inside the container will be /eos with this sample setup.
hostPath:
path: /var/eos
securityContext:
seLinuxOptions:
type: "spc_t"
23 changes: 23 additions & 0 deletions ai/containers/training-pod-dummy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: Pod
metadata:
name: itwinai-training-sleep-dummy
spec:
containers:
- name: itwinai-container
image: ghcr.io/intertwin-eu/t6.5-ai-and-ml:containers
command: ["sleep", "10000000"]
#args: ["/eos"]

nodeSelector:
kubernetes.io/role: agent
beta.kubernetes.io/os: linux
type: virtual-kubelet
kubernetes.io/hostname: jul-vk
tolerations:
- key: virtual-kubelet.io/provider
operator: Exists
- key: virtual-node.interlink/no-schedule
operator: Exists
- key: vk
operator: Exists
31 changes: 31 additions & 0 deletions ai/containers/training-pod-eos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: v1
kind: Pod
metadata:
name: training
spec:
containers:
- name: mlflow-container
image: ghcr.io/intertwin-eu/t6.5-ai-and-ml:containers
command: ["mlflow"]
args: ["server", "--backend-store-uri", "/home/T6.5-AI-and-ML/use-cases/mnist/data/ml-logs/"]
# volumeMounts:
# - name: shared-volume
# mountPath: /home/T6.5-AI-and-ML
- name: itwinai-container
image: ghcr.io/intertwin-eu/t6.5-ai-and-ml:containers
command: ["sleep", "100000"]
#args: ["/eos"]
volumeMounts:
- name: eos
mountPath: /eos
mountPropagation: HostToContainer

volumes:
- name: eos
# Note the particularity of the host path being /var/eos, not /eos.
# The path inside the container will be /eos with this sample setup.
hostPath:
path: /var/eos
securityContext:
seLinuxOptions:
type: "spc_t"
22 changes: 13 additions & 9 deletions ai/containers/training-pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,19 @@ spec:
# mountPath: /home/T6.5-AI-and-ML
- name: itwinai-container
image: ghcr.io/intertwin-eu/t6.5-ai-and-ml:containers
command: ["ls"]
args: ["/var"]
command: ["sleep", "100000"]
#args: ["/eos"]
volumeMounts:
- name: test-volume
mountPath: /test_mount_dir
- name: eos
mountPath: /eos
mountPropagation: HostToContainer

volumes:
- name: test-volume
- name: eos
# Note the particularity of the host path being /var/eos, not /eos.
# The path inside the container will be /eos with this sample setup.
hostPath:
# directory location on host
path: /
# this field is optional
type: Directory
path: /var/eos
securityContext:
seLinuxOptions:
type: "spc_t"

0 comments on commit 1ec7760

Please sign in to comment.