Skip to content

Instantly share code, notes, and snippets.

@pandeybk
pandeybk / Containerfile
Last active May 6, 2024 19:58
redhat-openshift-ai-notebooks-as-sudo-user
FROM registry.access.redhat.com/ubi8/python-39:1-176.1712880517
LABEL name="workbench-images:cuda-jupyter-pytorch-c9s-py39_2024b_20240418" \
summary="cuda-jupyter-pytorch workbench image with Python py39 based on c9s" \
description="cuda-jupyter-pytorch workbench image with Python py39 based on c9s" \
io.k8s.description="cuda-jupyter-pytorch workbench image with Python py39 based on c9s for ODH or RHODS" \
io.k8s.display-name="cuda-jupyter-pytorch workbench image with Python py39 based on c9s" \
authoritative-source-url="https://github.com/opendatahub-contrib/workbench-images" \
io.openshift.build.commit.ref="2024b" \
io.openshift.build.source-location="https://github.com/opendatahub-contrib/workbench-images" \
FROM registry.access.redhat.com/ubi8/python-39:1-176.1712880517
LABEL name="workbench-images:cuda-jupyter-pytorch-c9s-py39_2024b_20240418" \
summary="cuda-jupyter-pytorch workbench image with Python py39 based on c9s" \
description="cuda-jupyter-pytorch workbench image with Python py39 based on c9s" \
io.k8s.description="cuda-jupyter-pytorch workbench image with Python py39 based on c9s for ODH or RHODS" \
io.k8s.display-name="cuda-jupyter-pytorch workbench image with Python py39 based on c9s" \
authoritative-source-url="https://github.com/opendatahub-contrib/workbench-images" \
io.openshift.build.commit.ref="2024b" \
io.openshift.build.source-location="https://github.com/opendatahub-contrib/workbench-images" \
@pandeybk
pandeybk / gist:bedfbd0f2a09f24b2b21e22af207e34a
Created May 1, 2024 22:38
run-rhoai-workbenc-notebook-as-root.yaml
apiVersion: kubeflow.org/v1
kind: Notebook
metadata:
annotations:
notebooks.opendatahub.io/inject-oauth: 'true'
opendatahub.io/image-display-name: cuda-112-v6-sudo-access
notebooks.opendatahub.io/oauth-logout-url: >-
https://rhods-dashboard-redhat-ods-applications.apps.cloud9c.xtoph156.dfw.ocp.run/projects/demoproject?notebookLogout=sudo-access-v7
opendatahub.io/accelerator-name: ''
openshift.io/description: ''
@pandeybk
pandeybk / .json
Created April 23, 2024 23:23
dcgm-grafana-custom-dashboard.json
{
"annotations": {
"list": [
{
"$$hashKey": "object:192",
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
@pandeybk
pandeybk / .json
Last active April 23, 2024 19:52
dcgm-dashboard.json
{
"annotations": {
"list": [
{
"$$hashKey": "object:192",
"builtIn": 1,
"datasource": {
"type": "datasource",
"uid": "grafana"
},
@pandeybk
pandeybk / custom-storage-class.yaml
Created April 2, 2024 19:39
custom-storage class for Red Hat Openshift AI
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
openshift.io/description: ""
openshift.io/display-name: demo2
finalizers:
- kubernetes.io/pvc-protection
labels:
opendatahub.io/dashboard: "true"
@pandeybk
pandeybk / .yaml
Created April 2, 2024 19:25
GPU validator adjusted for Openshift
apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: time-slicing-verification
---
# oc adm policy add-scc-to-user hostaccess -z time-slicing-verification --dry-run=client -o yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
@pandeybk
pandeybk / gist:66801a631e92050333644d441aedad50
Created April 2, 2024 19:11
NVIDIA DCGM Exporter Dashboard V2
{
"__requires": [
{
"type": "panel",
"id": "gauge",
"name": "Gauge",
"version": ""
},
{
"type": "grafana",
@pandeybk
pandeybk / my-pub.pub
Created September 28, 2021 23:23
my-pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCZLl/fMNbZ485ZKpCvVs4PjWd3MGbkA66P8RRaP8HiyeScj6o/+BASrtF4V1nTSItLJwPGnhqznyYtnO8x9FwK+Sxk0ujxYMPYo8cVikCHJI3/658ynIm1Wjm62QPRLkI0fsvCG6JUMBGF1AXSQGKoiNqMzJqT52tNUG7injHqpZd0KJ1T6dbOOzcUQfuLAxBlz3z/ZKE/Ncv506bGVY87OrmvAuG/FaXfziqwaihXeiYSEoMx3hfHhIRE5xrhYijp1Uc2SlViJmt9a4amXR+I70nCn/qjl6uPxmof0Aw0R6Si2mEQ/AZ8ltA/QK2VvT1RQwZu0Nr1y+otQvLz9rmXw0TOzLq2ms2rAAFhZXQ3r8MMFxD0rwOByWjahGJgjXiJNfUfAsWMO00vmiNcc2yd/FthqPf0Ck59XOx5KOSwcC2ev1vsfLsKf0/p+ePuTNukPqJ+WdZX2i9o4zlqdGcLcIXCkRr62hdShlQb4B0d6/e2JqU4hmtnY6qRD40Q76M= bpandey@redhat.com
@pandeybk
pandeybk / .yaml
Created April 14, 2021 17:39
different-nad-settings
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: sriov-kernelnet0
annotations:
k8s.v1.cni.cncf.io/resourceName: intel.com/intel_sriov_kernel0
spec:
config: '{
"type": "sriov",
"name": "sriov-kernelnet0",