Skip to content

Instantly share code, notes, and snippets.

@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= [email protected]
@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",
@pandeybk
pandeybk / gist:f5cd07d16b1cb87ccf783f3c90984712
Created July 17, 2020 21:28
multus-sample-application.yaml
---
# This net-attach-def defines macvlan-conf with
# + ips capabilities to specify ip in pod annotation and
# + mac capabilities to specify mac address in pod annotation
# default gateway is defined as well
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
name: macvlanpod-conf
spec:
@pandeybk
pandeybk / globals.yml
Last active July 8, 2020 20:17
globals.yml
---
# You can use this file to override _any_ variable throughout Kolla.
# Additional options can be found in the
# 'kolla-ansible/ansible/group_vars/all.yml' file. Default value of all the
# commented parameters are shown here, To override the default value uncomment
# the parameter and change its value.
###############
# Kolla options
###############
---
# You can use this file to override _any_ variable throughout Kolla.
# Additional options can be found in the
# 'kolla-ansible/ansible/group_vars/all.yml' file. Default value of all the
# commented parameters are shown here, To override the default value uncomment
# the parameter and change its value.
###############
# Kolla options
###############
$ docker images --format '{{.Repository}}:{{.Tag}}' --filter=reference="quay.io/openebs/*"
```
quay.io/openebs/cstor-istgt:ci
quay.io/openebs/snapshot-provisioner:ci
quay.io/openebs/snapshot-controller:ci
quay.io/openebs/openebs-k8s-provisioner:ci
quay.io/openebs/cstor-pool:ci
quay.io/openebs/provisioner-localpv:ci
quay.io/openebs/admission-server:ci
cat <<EOF> pfsense.yaml
apiVersion: kubevirt.io/v1alpha3
kind: VirtualMachineInstance
metadata:
name: pfsense
spec:
domain:
devices:
disks:
- disk:
@pandeybk
pandeybk / virtvnc.yaml
Last active December 20, 2023 21:22
virtvnc
apiVersion: v1
kind: ServiceAccount
metadata:
name: virtvnc
namespace: kubevirt
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: virtvnc