This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kubectl create namespace costintel | |
| kubectl -n costintel create secret generic costintel-admin \ | |
| --from-literal=email=<tu correo> --from-literal=password='<12+ caracteres>' | |
| helm install costintel oci://registry-1.docker.io/stazdx/cost-intelligence-platform --version 1.0.0 -n costintel \ | |
| --set publicUrl=https://<tu dominio> --set ingress.enabled=true --set ingress.host=<tu dominio> \ | |
| --set auth.bootstrapAdmin.existingSecret=costintel-admin --set organization.name='<tu empresa>' \ | |
| --set cloudIdentity.azure.clientId=<client id de la managed identity> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Creates an ingest API key from inside the central install's backend pod: | |
| # the same key Configuración > API keys creates, without opening the | |
| # dashboard. Only the key goes to stdout, so it chains into | |
| # agent-namespaces.sh: | |
| # | |
| # export DBCA_API_KEY=$(deploy/create-api-key.sh --context central -n dbca --name cluster-aks-prod) | |
| # deploy/agent-namespaces.sh --context apps-1 --apply --restart | |
| # | |
| # Options: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Turns the db-cost-advisor Java agent on -- or, with --rollback, off -- in | |
| # the application namespaces of a cluster that runs the agent injector | |
| # (mode=agent, or a full install). | |
| # | |
| # On (the default): | |
| # 1. annotates the namespace with db-cost-advisor.io/inject-java-agent=true; | |
| # 2. stores the ingest API key in it, as the Secret the agent reads; | |
| # 3. with --restart, restarts its Deployments and StatefulSets when 1 or 2 | |
| # changed something, so the running pods start again with the agent. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: App build | |
| on: push | |
| jobs: | |
| build_with_signing: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '13.2.1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{/* | |
| Expand the name of the chart. | |
| */}} | |
| {{- define "microservice-template.name" -}} | |
| {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | |
| {{- end }} | |
| {{/* | |
| Create a default fully qualified app name. | |
| We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Default values for microservice-template. | |
| # This is a YAML-formatted file. | |
| # Declare variables to be passed into your templates. | |
| replicaCount: 1 | |
| image: | |
| repository: nginx | |
| pullPolicy: IfNotPresent | |
| # Overrides the image tag whose default is the chart appVersion. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: The chart API version (required) | |
| name: The name of the chart (required) | |
| version: A SemVer 2 version (required) | |
| kubeVersion: A SemVer range of compatible Kubernetes versions (optional) | |
| description: A single-sentence description of this project (optional) | |
| type: The type of the chart (optional) | |
| keywords: | |
| - A list of keywords about this project (optional) | |
| home: The URL of this projects home page (optional) | |
| sources: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v2 | |
| name: kube-prometheus-stack | |
| version: 1.0.0-SNAPSHOT | |
| description: Chart to deploy kube-prometheus-stack | |
| dependencies: | |
| # https://github.com/prometheus-community/helm-charts/blob/main/charts/kube-prometheus-stack/Chart.yaml | |
| - name: kube-prometheus-stack | |
| version: 34.6.0 | |
| repository: https://prometheus-community.github.io/helm-charts |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.staz.observability; | |
| import org.springframework.web.bind.annotation.GetMapping; | |
| import org.springframework.web.bind.annotation.PostMapping; | |
| import org.springframework.web.bind.annotation.RestController; | |
| @RestController | |
| public class Controller { | |
| @PostMapping("/fail") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| from requests.auth import HTTPBasicAuth | |
| username = 'username@github.com' # Replace | |
| password = 'xXxXxxxXxXXx' # Replace | |
| team = 'StazDxru' # Replace | |
| team_replaced = team+'@' | |
| full_repo_list = [] |