Skip to content

Instantly share code, notes, and snippets.

View LionelJouin's full-sized avatar

Lionel Jouin LionelJouin

  • Ericsson Software Technology
  • Stockholm, Sweden
  • 15:22 (UTC +02:00)
  • LinkedIn in/lioneljouin
View GitHub Profile
@LionelJouin
LionelJouin / Kubernetes-Multi-Network.md
Created January 10, 2024 18:53
Kubernetes Multi-Network
@LionelJouin
LionelJouin / calico-installation.yaml
Created August 12, 2023 17:16
Calico installation
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
name: default
spec:
calicoNetwork:
nodeAddressAutodetectionV4:
cidrs:
- '10.254.0.0/24'
ipPools:
@LionelJouin
LionelJouin / nc-client.yaml
Created August 12, 2023 16:16
Intern-Exercise
---
apiVersion: v1
kind: Pod
metadata:
name: nc-client
labels:
app: nc-client
spec:
containers:
- name: nc-client
@LionelJouin
LionelJouin / Instructions-opentelemetry-prometheus-grafana.md
Last active May 25, 2023 14:43
Observability with Open-Telemetry/Prometheus/Grafana

Observability with OpenTelemetry/Prometheus/Grafana

Installation

Install Prometheus and Grafana

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm install prometheus prometheus-community/kube-prometheus-stack
@LionelJouin
LionelJouin / commands
Last active October 29, 2021 14:47
nftables (nft list ruleset -ay)
nft add table inet meridio-nfqlb
nft add set inet meridio-nfqlb flow-a-saddrs-v4 { type ipv4_addr\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-daddrs-v4 { type ipv4_addr\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-saddrs-v6 { type ipv6_addr\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-daddrs-v6 { type ipv6_addr\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-sports { type inet_service\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-dports { type inet_service\; flags interval \; }
nft add set inet meridio-nfqlb flow-a-protocols { type inet_proto\; flags interval \; }
nft add element inet meridio-nfqlb flow-a-saddrs-v4 { 179.10.10.0/24, 180.10.10.0/24 }
nft add element inet meridio-nfqlb flow-a-daddrs-v4 { 20.0.0.1/32, 40.0.0.0/24 }
@LionelJouin
LionelJouin / ambassador-ambassador.proto
Last active September 27, 2021 14:26
New Meridio API
/*
Copyright (c) 2021 Nordix Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: network-attachment-definitions.k8s.cni.cncf.io
spec:
group: k8s.cni.cncf.io
scope: Namespaced
names:
plural: network-attachment-definitions
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# Typha is disabled.
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: psp.flannel.unprivileged
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: docker/default
seccomp.security.alpha.kubernetes.io/defaultProfileName: docker/default
apparmor.security.beta.kubernetes.io/allowedProfileNames: runtime/default
apparmor.security.beta.kubernetes.io/defaultProfileName: runtime/default
@LionelJouin
LionelJouin / base-dev.js
Last active August 20, 2018 19:55
Weather-Station scripts
'use strict';
module.exports = function (app) {
var Station = app.models.Station;
var Sensor = app.models.Sensor;
var Sensors = [];
Sensor.create([
{ name: "Temperature", unit: "°C" },