Skip to content

Instantly share code, notes, and snippets.

View karmab's full-sized avatar

Karim Boumedhel karmab

View GitHub Profile
@karmab
karmab / updatealias.go
Last active June 17, 2023 17:14
Update network alias of a gcp instance from metadata
package main
import (
"log"
"os"
"golang.org/x/net/context"
"golang.org/x/oauth2/google"
"google.golang.org/api/compute/v1"
)
import argparse
import os
import sys
PARAMHELP = "specify parameter or keyword for rendering (multiple can be specified)"
def get_subparser_print_help(parser, subcommand):
subparsers_actions = [
action for action in parser._actions
@karmab
karmab / README.md
Last active May 25, 2022 09:04
README.

a plan to create:

  • a hub openshift cluster (on a sno)
  • an sno spoke vm
  • a workflow deploying AI operator
@karmab
karmab / README.md
Last active May 19, 2022 09:47
README.md

Steps to create a virtual cluster with baremetal workers

requirements

  • valid pull secret
  • a bridge created on top of your default interface in the hypervisor, in this documentation, the bridge is named baremetal

Create base cluster (using a param file like the one provided as an example)

@karmab
karmab / README.md
Last active March 22, 2022 09:54
A plan to deploy openshift on a dedicated (libvirt) ipv6 network

A plan to deploy openshift on a dedicated (libvirt) ipv6 network

How to use

kcli create plan -f kcli_plan_ipv6.yml

or, if overriding some of the parameters

@karmab
karmab / run_tekton_pipeline_multi.yml
Last active December 16, 2021 22:55
Tekton pipeline with two cloned repos
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
generateName: mysupertask
spec:
pipelineRef:
name: mysupertask
workspaces:
- name: sourcedir
volumeClaimTemplate:
@karmab
karmab / cnv-bridge
Last active April 22, 2019 20:26
cnv bridge
This file has been truncated, but you can view the full file.
@karmab
karmab / README.md
Last active February 6, 2019 11:13
create federated files from input yaml

this is a simple tool called federer.py which, for a given yaml file:

  • splits its multiple documents
  • create the corresponding federated and placement files
  • indicate which types will be required
  • a script to actually deploys

The tool has also won 20 grand slams

apiVersion: v1
kind: ReplicationController
metadata:
labels:
app: kubevirt-web-ui
openshift.io/deployment-config.name: kubevirt-web-ui
name: kubevirt-web-ui
spec:
replicas: 1
selector:
@karmab
karmab / REAME.md
Last active October 4, 2018 16:18
Deploy latest okd