namespace level metrics
CPU:
sum by (namespace) (container_cpu_allocation)
Memory:
sum by (namespace) (container_memory_allocation_bytes/1024/1024)
namespace level metrics
CPU:
sum by (namespace) (container_cpu_allocation)
Memory:
sum by (namespace) (container_memory_allocation_bytes/1024/1024)
kubectl custom query to get cpu , memory request and limit
kubectl get deploy -A -o=custom-columns='Namespace:.metadata.namespace,Name:.metadata.name,Request_CPU:.spec.template.spec.containers[0].resources.requests.cpu,Limit_CPU:.spec.template.spec.containers[0].resources.limits.cpu,Request_Memory:.spec.template.spec.containers[0].resources.requests.memory,Limit_Memory:.spec.template.spec.containers[0].resources.limits.memory' | sed 1d | tr -s '[:blank:]' ','
kubect replace variabe
deployments=$(kubectl get deploy | awk '{print $1}' | sed 1d)
for deploy in $deployments
do
deploy_raw_yml=$(kubectl get deploy $deploy -o yaml)
kubectl get deploy $deploy -o yaml > _tmp_store.yml
value_to_be_replaced=$(kubectl get deploy $deploy -o yaml | grep -A 1 'NEW_RELIC_APP_NAME' | grep value | awk -F 'value: ' '{print $2}')
echo "value_to_be_replaced: $value_to_be_replaced"
if [[ $value_to_be_replaced == "" ]]; then
echo "=====================$deploy no change =========================="
else
replaced_value=$(echo $value_to_be_replaced | sed 's/stage/perf/g')
echo "replaced_value: $replaced_value"
cat _tmp_store.yml| sed "s/$value_to_be_replaced/$replaced_value/g" | kubectl apply -f -
echo "=====================$deploy done =========================="
fi
done
| Seed | Benefits |
|---|---|
| Flax Seeds | Rich in omega-3 fatty acids, fiber, and lignans; supports heart health, aids digestion, may reduce cholesterol. |
| Chia Seeds | High in fiber, protein, omega-3s, and antioxidants; promotes hydration, aids weight loss, supports bone health. |
| Sesame Seeds | Good source of calcium, iron, magnesium, and healthy fats; supports bone health, may lower cholesterol levels. |
| Sunflower Seeds | Rich in vitamin E, magnesium, selenium, and protein; boosts heart health, supports skin health, aids in mood regulation. |
| Watermelon Seeds | Contains protein, healthy fats, vitamins, and minerals; supports heart health, aids digestion, may boost immunity. |
| Pumpkin Seeds | High in antioxidants, magnesium, zinc, and fiber; supports prostate health, boosts immunity, help sleep. |
| Halim Seeds | Rich in Iron, protein, fiber, vitamins, and minerals; aids digestion, promotes weight loss, supports heart health. |
/etc/kubernetes/manifests/kube-apiserver.yaml

nginx.yml
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: nginx
name: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: nginx
spec:
containers:
- image: nginx
name: nginx
resizePolicy:
- resourceName: cpu
restartPolicy: NotRequired
- resourceName: memory
restartPolicy: NotRequired
resources:
limits:
memory: "100Mi"
cpu: "100m"
requests:
memory: "100Mi"
cpu: "100m"
patch.yml [only applied to pod]
kubectl patch pod nginx-94675f6cf-9bxzj --patch '{"spec":{"containers":[{"name":"nginx", "resources":{"requests":{"cpu":"200m"}, "limits":{"cpu":"200m"}}}]}}'





mkdir /root/ipfs
docker run -d \
-v /root/ipfs:/export \
-v /root/ipfs:/data/ipfs \
-p 192.168.0.189:4001:4001 -p 192.168.0.189:4001:4001/udp -p 192.168.0.189:8080:8080 -p 192.168.0.189:5001:5001 \
ipfs/kubo:latest


rpi-eeprom-config -e
| Value | Mode | Description |
|---|---|---|
| 0x0 | SD CARD DETECT | Try SD then wait for card-detect to indicate that the card has changed – deprecated now that 0xf (RESTART) is available. |
| 0x1 | SD CARD | SD card (or eMMC on Compute Module 4). |
| 0x2 | NETWORK | Network boot – See Network boot server tutorial |
| 0x3 | RPIBOOT | RPIBOOT – See usbboot |
| 0x4 | USB-MSD | USB mass storage boot – See USB mass storage boot |
| 0x5 | BCM-USB-MSD | USB 2.0 boot from USB Type C socket (CM4: USB type A socket on CM4IO board). Not available on Raspberry Pi 5. |
| 0x6 | NVME | CM4 and Pi 5 only: boot from an NVMe SSD connected to the PCIe interface. See NVMe boot for more details. |
| 0x7 | HTTP | HTTP boot over ethernet. See HTTP boot for more details. |
| 0xe | STOP | Stop and display error pattern. A power cycle is required to exit this state. |
| 0xf | RESTART | Restart from the first boot-mode in the BOOT_ORDER field i.e. loop |
boot order: https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#BOOT_ORDER