Skip to content

Instantly share code, notes, and snippets.

View bgarcial's full-sized avatar

Bernardo García bgarcial

View GitHub Profile

Bueno, veo dos cosas:

Este es mas como un tema de configuración del framework que usan que es Sprintboot, para correr esos servicios en Kubernetes

  1. Intentando con Docker Compose como opcion de despliegue para su entorno local

Veo que el intento primero usar una Docker network a través de Docker compose para desplegar todos los servicios pero dice Que tuvo problemas, quizás los healthchecks que por defecto tiene sprintboot cuando se conteneriza un servicio? Al momento que habla de su configuración para el docker compose, no la muestra en el video, ni tampoco de pronto posibles errores cuando la ejecuta. Pero veo que desistió de docker compose como opcion dado que después esta hablando de Kubernetes.
@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'