Skip to content

Instantly share code, notes, and snippets.

View sarthaksarthak9's full-sized avatar
๐Ÿ
Yashin-tekina

Sarthak Negi sarthaksarthak9

๐Ÿ
Yashin-tekina
View GitHub Profile
@nitishfy
nitishfy / mp_mc.go
Last active July 17, 2024 05:04
Producer-Consumer Problem
// multiple producers, multiple consumers
package main
import (
"fmt"
"sync"
)
// producers sends the value to the channel
func producers(id int, ch chan<- int, wg *sync.WaitGroup) {
@alicefr
alicefr / DRA - experimenting
Last active March 11, 2024 02:33
DRA - experimenting
1. Create a k8s cluster with DRA enabled. We use latest minikube (v1.30.1) as at the moment of writing this, it is only one of the few providing already k8s 1.27
```bash
$ minikube start --driver=kvm2 --feature-gates=DynamicResourceAllocation=true \
--kubernetes-version=v1.27.0-rc.0 \
--extra-config=apiserver.runtime-config='resource.k8s.io/v1alpha2=true'
```
2. Example:
```yaml
apiVersion: resource.k8s.io/v1alpha2