Skip to content

Instantly share code, notes, and snippets.

View bessalahAmar's full-sized avatar
💭
looking for a job :)

bessalahAmar

💭
looking for a job :)
View GitHub Profile
@bessalahAmar
bessalahAmar / nginx-ingress-controller-secret-from-other-namespace.md
Created June 5, 2024 10:58
in this gist i'm going to provide two workarounds to use tls secret of nginx ingress from another namespace

workarounds:

  • setup default secret while deploying the nginx ingress controller
  • use AKS secret store driver to create the secret when the pod are deployed :

I) setup default secret while deploying the nginx ingress controller

1) create the secret that will hold the key/cert in namespace "otherns"

kubectl create ns otherns

@bessalahAmar
bessalahAmar / minimalistic-OS-for-RaspberryPi.txt
Created November 21, 2019 09:23
steps to create minimalistic os for raspberrypi
global objectif ( create minimalistic os for raspberrypi ) :
download lite version of raspbian OS.
remove the rootfs partition and replace it with busybox root-fs
to do so you need to cross-compile busyBox for the raspberryPi
once done you just replace partition 2 with the busybox binary.
import copy
import sys
def print_nod(node):
for i in range(0,3):
print(node[i])
def children(node, player):
tab =[]