diff --git a/gpulive/jupyter_kustomize/base/tf.yaml b/gpulive/jupyter_kustomize/base/tf.yaml index 9b47130..9883ae9 100644 --- a/gpulive/jupyter_kustomize/base/tf.yaml +++ b/gpulive/jupyter_kustomize/base/tf.yaml @@ -15,6 +15,8 @@ apiVersion: apps/v1 kind: Deployment metadata: name: tf-notebook + labels: + user: user spec: replicas: 1 selector: diff --git a/gpulive/jupyter_kustomize/overlays/1_jupyter/patch-label.yaml b/gpulive/jupyter_kustomize/overlays/2_jupyter/patch-label.yaml similarity index 100% rename from gpulive/jupyter_kustomize/overlays/1_jupyter/patch-label.yaml rename to gpulive/jupyter_kustomize/overlays/2_jupyter/patch-label.yaml diff --git a/gpulive/jupyter_kustomize/overlays/3_jupyter/patch-label.yaml b/gpulive/jupyter_kustomize/overlays/3_jupyter/patch-label.yaml new file mode 100644 index 0000000..f35c7b3 --- /dev/null +++ b/gpulive/jupyter_kustomize/overlays/3_jupyter/patch-label.yaml @@ -0,0 +1,54 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tf-notebook +spec: + replicas: 2 + selector: + matchLabels: + app: tf-notebook + user: user1 + template: + metadata: + labels: + app: tf-notebook + user: user1 + spec: + nodeSelector: + nodegroup: gpu + containers: + - name: tf-notebook + image: tensorflow/tensorflow:2.16.2-gpu-jupyter + resources: + limits: + cpu: "4" + memory: 16Gi + nvidia.com/gpu: 2 + ports: + - containerPort: 8888 + name: notebook + volumeMounts: + - name: notebook-storage + mountPath: /sample + volumes: + - name: notebook-storage + persistentVolumeClaim: + claimName: tf-notebook-pvc +--- +apiVersion: v1 +kind: Service +metadata: + name: tf-notebook + labels: + app: tf-notebook + user: user1 +spec: + type: ClusterIP + ports: + - port: 80 + name: http + targetPort: 8888 + selector: + app: tf-notebook + user: user1 + diff --git a/gpulive/jupyter_kustomize/overlays/4_jupyter/patch-label.yaml b/gpulive/jupyter_kustomize/overlays/4_jupyter/patch-label.yaml new file mode 100644 index 0000000..f35c7b3 --- /dev/null +++ b/gpulive/jupyter_kustomize/overlays/4_jupyter/patch-label.yaml @@ -0,0 +1,54 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tf-notebook +spec: + replicas: 2 + selector: + matchLabels: + app: tf-notebook + user: user1 + template: + metadata: + labels: + app: tf-notebook + user: user1 + spec: + nodeSelector: + nodegroup: gpu + containers: + - name: tf-notebook + image: tensorflow/tensorflow:2.16.2-gpu-jupyter + resources: + limits: + cpu: "4" + memory: 16Gi + nvidia.com/gpu: 2 + ports: + - containerPort: 8888 + name: notebook + volumeMounts: + - name: notebook-storage + mountPath: /sample + volumes: + - name: notebook-storage + persistentVolumeClaim: + claimName: tf-notebook-pvc +--- +apiVersion: v1 +kind: Service +metadata: + name: tf-notebook + labels: + app: tf-notebook + user: user1 +spec: + type: ClusterIP + ports: + - port: 80 + name: http + targetPort: 8888 + selector: + app: tf-notebook + user: user1 + diff --git a/gpulive/jupyter_kustomize/overlays/5_jupyter/patch-label.yaml b/gpulive/jupyter_kustomize/overlays/5_jupyter/patch-label.yaml new file mode 100644 index 0000000..f35c7b3 --- /dev/null +++ b/gpulive/jupyter_kustomize/overlays/5_jupyter/patch-label.yaml @@ -0,0 +1,54 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tf-notebook +spec: + replicas: 2 + selector: + matchLabels: + app: tf-notebook + user: user1 + template: + metadata: + labels: + app: tf-notebook + user: user1 + spec: + nodeSelector: + nodegroup: gpu + containers: + - name: tf-notebook + image: tensorflow/tensorflow:2.16.2-gpu-jupyter + resources: + limits: + cpu: "4" + memory: 16Gi + nvidia.com/gpu: 2 + ports: + - containerPort: 8888 + name: notebook + volumeMounts: + - name: notebook-storage + mountPath: /sample + volumes: + - name: notebook-storage + persistentVolumeClaim: + claimName: tf-notebook-pvc +--- +apiVersion: v1 +kind: Service +metadata: + name: tf-notebook + labels: + app: tf-notebook + user: user1 +spec: + type: ClusterIP + ports: + - port: 80 + name: http + targetPort: 8888 + selector: + app: tf-notebook + user: user1 + diff --git a/gpulive/jupyter_kustomize/overlays/6_jupyter/patch-label.yaml b/gpulive/jupyter_kustomize/overlays/6_jupyter/patch-label.yaml new file mode 100644 index 0000000..f35c7b3 --- /dev/null +++ b/gpulive/jupyter_kustomize/overlays/6_jupyter/patch-label.yaml @@ -0,0 +1,54 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tf-notebook +spec: + replicas: 2 + selector: + matchLabels: + app: tf-notebook + user: user1 + template: + metadata: + labels: + app: tf-notebook + user: user1 + spec: + nodeSelector: + nodegroup: gpu + containers: + - name: tf-notebook + image: tensorflow/tensorflow:2.16.2-gpu-jupyter + resources: + limits: + cpu: "4" + memory: 16Gi + nvidia.com/gpu: 2 + ports: + - containerPort: 8888 + name: notebook + volumeMounts: + - name: notebook-storage + mountPath: /sample + volumes: + - name: notebook-storage + persistentVolumeClaim: + claimName: tf-notebook-pvc +--- +apiVersion: v1 +kind: Service +metadata: + name: tf-notebook + labels: + app: tf-notebook + user: user1 +spec: + type: ClusterIP + ports: + - port: 80 + name: http + targetPort: 8888 + selector: + app: tf-notebook + user: user1 + diff --git a/gpulive/jupyter_kustomize/overlays/7_jupyter/patch-label.yaml b/gpulive/jupyter_kustomize/overlays/7_jupyter/patch-label.yaml new file mode 100644 index 0000000..f35c7b3 --- /dev/null +++ b/gpulive/jupyter_kustomize/overlays/7_jupyter/patch-label.yaml @@ -0,0 +1,54 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: tf-notebook +spec: + replicas: 2 + selector: + matchLabels: + app: tf-notebook + user: user1 + template: + metadata: + labels: + app: tf-notebook + user: user1 + spec: + nodeSelector: + nodegroup: gpu + containers: + - name: tf-notebook + image: tensorflow/tensorflow:2.16.2-gpu-jupyter + resources: + limits: + cpu: "4" + memory: 16Gi + nvidia.com/gpu: 2 + ports: + - containerPort: 8888 + name: notebook + volumeMounts: + - name: notebook-storage + mountPath: /sample + volumes: + - name: notebook-storage + persistentVolumeClaim: + claimName: tf-notebook-pvc +--- +apiVersion: v1 +kind: Service +metadata: + name: tf-notebook + labels: + app: tf-notebook + user: user1 +spec: + type: ClusterIP + ports: + - port: 80 + name: http + targetPort: 8888 + selector: + app: tf-notebook + user: user1 +