Skip to content

Instantly share code, notes, and snippets.

View C1aud3's full-sized avatar

Claude Grondin C1aud3

  • TELUS
  • Rimouski
View GitHub Profile
@C1aud3
C1aud3 / dataplane-logs.txt
Created October 23, 2020 13:39
kuma-dataplane-logs
2020-10-23T13:32:05.956Z INFO Skipping reading config from file
2020-10-23T13:32:05.957Z INFO kuma-dp.run effective configuration {"config": "controlPlane:\n apiServer:\n url: http://kuma-control-plane.kuma-system:5681\ndataplane:\n mesh: default\n name: echo-5b6ccfc7b8-5zctl.foobar\n drainTime: 30s\ndataplaneRuntime:\n binaryPath: envoy\n dataplaneTokenPath: /var/run/secrets/kubernetes.io/serviceaccount/token\n"}
2020-10-23T13:32:05.963Z INFO kuma-dp.run picked a free port for Envoy Admin API to listen on {"port": "9901"}
2020-10-23T13:32:05.963Z INFO kuma-dp.run generated Envoy configuration will be stored in a temporary directory {"dir": "/tmp/kuma-dp-814266217"}
2020-10-23T13:32:05.963Z INFO kuma-dp.run starting Kuma DP {"version": "0.7.1"}
2020-10-23T13:32:05.963Z INFO bootstrap Starting leader election
2020-10-23T13:32:05.964Z INFO accesslogs-server starting Access Log Server {"address": "unix:///tmp/50afb603-499c-4814-a60c-9cd35bdd2653.sock"}
2020-10-23T13:32:05.982Z INFO kuma-dp.run.envoy sta
@C1aud3
C1aud3 / echo-primavera-api.yaml
Last active February 28, 2023 17:43
Echo Service with an Ingress handled by Kong
apiVersion: v1
kind: Service
metadata:
labels:
app: echo
name: echo
namespace: primavera
annotations:
ingress.kubernetes.io/service-upstream: "true"
spec:

Keybase proof

I hereby claim:

  • I am c1aud3 on github.
  • I am c1aud3 (https://keybase.io/c1aud3) on keybase.
  • I have a public key ASAk9NjjX1GpPA-iILX-9uHG9yopOvgYwq36DUGDCfJCrAo

To claim this, I am signing this object:

@C1aud3
C1aud3 / find_hostname.lua
Created May 6, 2020 14:55
lua hostname parser
-- Extract hostname from URI
-- Returns a string containing the hostname
-- Returns nil if the hostname is not found
function _M.find_hostname(subject)
-- See https://openresty-reference.readthedocs.io/en/latest/Lua_Nginx_API/#ngxrematch for options definition.
-- In short, j=PCRE JIT compilation, o=compile-once mode, i=case-insensitive mode
local options = "joi"
-- See https://tools.ietf.org/html/rfc2396#appendix-B
-- The regex from RFC2396 was tweaked a little bit to create an optional (0 to 1 times) capturing group around the
@C1aud3
C1aud3 / launch.json
Created August 13, 2018 18:49
jest launch config
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Jest All",