Skip to content

Instantly share code, notes, and snippets.

View bgarcial's full-sized avatar

Bernardo García bgarcial

View GitHub Profile
@bgarcial
bgarcial / Logs-2026-03-13 06_15_44.json
Created March 13, 2026 05:29
Just traces batches
This file has been truncated, but you can view the full file.
[
{
"line": "{\"level\":\"info\",\"ts\":\"2026-03-06T06:13:24.582Z\",\"msg\":\"ResourceSpans #0\\nResource SchemaURL: \\nResource attributes:\\n -> host.name: Str(cart-7b4d7bb6df-lt549)\\n -> host.arch: Str(x64)\\n -> container.id: Str(ea28a6ccd8a62c2b5e713211decbb9573ff78f682f516bcbc5c1092f9376ed66)\\n -> service.name: Str(cart)\\n -> service.instance.id: Str(548a3f09-c386-4fbf-a9e6-c661320a60f5)\\n -> service.namespace: Str(opentelemetry-demo)\\n -> telemetry.sdk.name: Str(opentelemetry)\\n -> telemetry.sdk.language: Str(dotnet)\\n -> telemetry.sdk.version: Str(1.14.0)\\n -> k8s.pod.ip: Str(10.108.1.112)\\n -> k8s.pod.name: Str(cart-7b4d7bb6df-lt549)\\n -> k8s.namespace.name: Str(otel-demo)\\n -> k8s.pod.start_time: Str(2026-03-04T08:50:15Z)\\n -> k8s.pod.uid: Str(9de37f2f-43dd-413d-a02b-d14f1abf99a3)\\n -> k8s.deployment.name: Str(cart)\\n -> k8s.node.name: Str(pool-1nccl9t31-klsad)\\n -> k8s.cluster.name: Str(olly-do-nonprd)\\nScope
@bgarcial
bgarcial / readme.md
Last active July 31, 2024 21:24
Node affinity problems on sysctl daemonset

I see there are some nodes (those ones aks-usermoose-*.) that has this taint:

​"taints": [
   {
     "effect": "NoSchedule",
     "key": "kubernetes.azure.com/scalesetpriority",
     "value": "spot"
   }
 ],
@bgarcial
bgarcial / cconfiguration-values-cloudwatch.yml
Created March 14, 2024 11:50
Deploying adot addon with awscloudwatchlogs exporter
admissionWebhooks:
namespaceSelector: {}
objectSelector: {}
affinity: {}
collector:
containerLogs:
exporters:
awscloudwatchlogs:
log_group_name: /aws/ADOT/logs
log_stream_name: test
@bgarcial
bgarcial / adot-add-on-configuration-schema.json
Created March 14, 2024 11:38
Add-on configuration schema
{
"$id": "http://example.com/example.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"additionalProperties": false,
"description": "Configurable parameters of the adot Operator Addon",
"examples": [
{
"admissionWebhooks": {
"namespaceSelector": {},
"objectSelector": {}
@bgarcial
bgarcial / deploy.sh
Last active May 7, 2023 09:15
Deploying AppEngine Services
#####################################################
# Function deploys an appengine artifact
# Globals:
# None
# Arguments:
# 1:PACKAGE
# 2:VERSION
# 3:ENVIRONMENT
# 4:SHADOW
# Returns:
@bgarcial
bgarcial / test_error.md
Created November 17, 2022 22:31
error on pytest
 python -m pytest tests/test_health_check.py
============================================================== test session starts ===============================================================
platform linux -- Python 3.10.6, pytest-7.2.0, pluggy-1.0.0
rootdir: /home/bgarcial/projects/nd064_course_1/exercises/python-helloworld
plugins: flask-1.2.0
collected 2 items                                                                                                                                

tests/test_health_check.py E.                                                                                                              [100%]
@bgarcial
bgarcial / Makefile
Last active April 4, 2023 15:14
Steps/actions needed to be done to deploy loki logging backend on staging aks cluster.
loki-install:
sh ./variables.sh
sh ./setup-loki-fluentbit.sh
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "postfacto.fullname" . }}
labels:
{{- include "postfacto.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
@bgarcial
bgarcial / README.md
Last active June 18, 2021 12:50
Azure Active Directory Authentication via JWT to Speckle v1.

When running, we are getting the json response from AAD and the JWT to validate the assertion done.

> go run geting_auth.go
{
    "success":true,
    "resource":{
        "name":"Garcia Loaiza",
        "surname":"Bernardo",
        "logins":
# FROM maven:3.6.3-openjdk-15-alpine
FROM openjdk:14-alpine
MAINTAINER example.com
RUN mkdir -p /opt/demo-0.0.1/lib
# Setting application source code working directory
WORKDIR /opt/demo-0.0.1/
RUN pwd
COPY /opt/demo-0.0.1/target/demo-0.0.1-SNAPSHOT.jar /opt/demo-0.0.1/lib/demo-0.0.1-SNAPSHOT.jar
# ADD target/demo-0.0.1-SNAPSHOT.jar /opt/demo-0.0.1/lib/
RUN sh -c 'touch demo-0.0.1-SNAPSHOT.jar'