-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add pod yaml files for power example
- Loading branch information
1 parent
68895a1
commit 1ae6e61
Showing
24 changed files
with
515 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "cifar10.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
value: "cpu" | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "cifa100.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
value: "cpu" | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
num_nodes: 1 | ||
cluster_name: k8s-cluster | ||
gpu_type: nvidia-tesla-v100 | ||
gpu_count: 1 | ||
gpu_driver_version: default | ||
machine_type: n1-standard-2 | ||
min_nodes: 1 | ||
max_nodes: 1 | ||
storage_config: conf/deploy/sclass.yaml | ||
persistent_volume_claim: conf/deploy/pvc.yaml | ||
pod : conf/deploy/pod.yaml | ||
image_project: ubuntu-os-cloud | ||
image_family: ubuntu-2204-lts | ||
mount_directory: /mnt/filestore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "mnist.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
value: "cpu" | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: podpvc | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
storageClassName: filestore-sc | ||
resources: | ||
requests: | ||
storage: 256Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: filestore-sc | ||
provisioner: filestore.csi.storage.gke.io | ||
volumeBindingMode: Immediate | ||
allowVolumeExpansion: true | ||
parameters: | ||
tier: standard | ||
network: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "cifar10.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
nvidia-tesla-a100 | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
resources: | ||
limits: | ||
nvidia.com/gpu: 1 | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
32 changes: 32 additions & 0 deletions
32
examples/power/conf/deploy-nvidia-tesla-a100/cifar100.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "cifa100.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
nvidia-tesla-a100 | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
resources: | ||
limits: | ||
nvidia.com/gpu: 1 | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
num_nodes: 1 | ||
cluster_name: k8s-cluster | ||
gpu_type: nvidia-tesla-v100 | ||
gpu_count: 1 | ||
gpu_driver_version: default | ||
machine_type: n1-standard-2 | ||
min_nodes: 1 | ||
max_nodes: 1 | ||
storage_config: conf/deploy/sclass.yaml | ||
persistent_volume_claim: conf/deploy/pvc.yaml | ||
pod : conf/deploy/pod.yaml | ||
image_project: ubuntu-os-cloud | ||
image_family: ubuntu-2204-lts | ||
mount_directory: /mnt/filestore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "mnist.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
nvidia-tesla-a100 | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
resources: | ||
limits: | ||
nvidia.com/gpu: 1 | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: podpvc | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
storageClassName: filestore-sc | ||
resources: | ||
requests: | ||
storage: 256Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: storage.k8s.io/v1 | ||
kind: StorageClass | ||
metadata: | ||
name: filestore-sc | ||
provisioner: filestore.csi.storage.gke.io | ||
volumeBindingMode: Immediate | ||
allowVolumeExpansion: true | ||
parameters: | ||
tier: standard | ||
network: default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "cifar10.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
nvidia-tesla-p100 | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
resources: | ||
limits: | ||
nvidia.com/gpu: 1 | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
32 changes: 32 additions & 0 deletions
32
examples/power/conf/deploy-nvidia-tesla-p100/cifar100.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "cifa100.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
nvidia-tesla-p100 | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
resources: | ||
limits: | ||
nvidia.com/gpu: 1 | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
num_nodes: 1 | ||
cluster_name: k8s-cluster | ||
gpu_type: nvidia-tesla-v100 | ||
gpu_count: 1 | ||
gpu_driver_version: default | ||
machine_type: n1-standard-2 | ||
min_nodes: 1 | ||
max_nodes: 1 | ||
storage_config: conf/deploy/sclass.yaml | ||
persistent_volume_claim: conf/deploy/pvc.yaml | ||
pod : conf/deploy/pod.yaml | ||
image_project: ubuntu-os-cloud | ||
image_family: ubuntu-2204-lts | ||
mount_directory: /mnt/filestore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: deckard | ||
spec: | ||
containers: | ||
- name: deckard | ||
image: ghcr.io/simplymathematics/deckard:main | ||
imagePullPolicy: Always | ||
workingDir: /deckard/examples/power/ | ||
args: ["python", "-m", "deckard", "--config_file", "mnist.yaml"] | ||
env: | ||
- name: DECKARD_DEVICE | ||
nvidia-tesla-p100 | ||
# - name: REDIS_HOST | ||
# value: "redis" | ||
# - name: REDIS_PORT | ||
# value: "6379" | ||
# - name: REDIS_DB | ||
# value: "0" | ||
# - name: REDIS_PASSWORD | ||
# value: "" | ||
resources: | ||
limits: | ||
nvidia.com/gpu: 1 | ||
volumeMounts: | ||
- mountPath: /deckard/ | ||
name: mypvc | ||
volumes: | ||
- name: mypvc | ||
persistentVolumeClaim: | ||
claimName: podpvc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: podpvc | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
storageClassName: filestore-sc | ||
resources: | ||
requests: | ||
storage: 256Gi |
Oops, something went wrong.