Skip to content

Instantly share code, notes, and snippets.

View debovema's full-sized avatar

Mathieu Debove debovema

  • Red Hat
  • Paris, France
View GitHub Profile
@debovema
debovema / kind-with-local-registry.sh
Last active January 10, 2022 15:26 — forked from orpiske/kind-with-local-registry.sh
Kind with local registry (with registry address fixes)
#!/bin/sh
set -o errexit
####
## Kind cluster with local registry (fixed script from the upstream kind). See NOTE comments below for the changed items
# create registry container unless it already exists
reg_name='kind-registry'
reg_port='5000'
running="$(docker inspect -f '{{.State.Running}}' "${reg_name}" 2>/dev/null || true)"
@debovema
debovema / frontend-contribution.ts
Created October 21, 2021 07:13 — forked from drochgenius/frontend-contribution.ts
Hide unused activity bar icons (view container icons)
import { injectable } from 'inversify';
import { FrontendApplicationContribution, FrontendApplication } from '@theia/core/lib/browser';
import { MaybePromise } from '@theia/core/lib/common/types';
import { Widget } from '@theia/core/lib/browser/widgets';
@injectable()
export class ExampleFrontendContribution implements FrontendApplicationContribution {
/**
* Called after the application shell has been attached in case there is no previous workbench layout state.
* Should return a promise if it runs asynchronously.
@debovema
debovema / k3s-multipass.sh
Created February 13, 2020 09:16 — forked from lucj/k3s-multipass.sh
Setup a k3s kubernetes cluster using Multipass VMs
for node in node1 node2 node3;do
multipass launch -n $node
done
# Init cluster on node1
multipass exec node1 -- bash -c "curl -sfL https://get.k3s.io | sh -"
# Get node1's IP
IP=$(multipass info node1 | grep IPv4 | awk '{print $2}')
@debovema
debovema / traefik.yaml
Last active January 24, 2020 14:47 — forked from akhenakh/traefik.yaml
traefik 2.0 Kubernetes
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: ingressroutes.traefik.containo.us
spec:
group: traefik.containo.us
version: v1alpha1
names:
kind: IngressRoute
@debovema
debovema / docker-compose.yml
Created January 1, 2020 22:47 — forked from pyrou/docker-compose.yml
Use https://traefik.me SSL certificates for local HTTPS without having to touch your /etc/hosts or your certificate CA.
services:
traefik:
restart: unless-stopped
image: traefik:v2.0.2
ports:
- "80:80"
- "443:443"
labels:
- "traefik.http.services.traefik.loadbalancer.server.port=8080"