This file contains 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 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 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 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 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 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 = [] |