Skip to content

Instantly share code, notes, and snippets.

View tomaustin700's full-sized avatar
🏠
Working from home

Tom Austin tomaustin700

🏠
Working from home
View GitHub Profile
@tomaustin700
tomaustin700 / bosun.toml
Last active May 5, 2019 13:14
Sample Bosun.toml file
# Hostname will be used when links are created in templates (i.e. acknowledge links)
#Hostname = "bosun.example.com"
# The HTTP IP and Port to Listen on. Default is ":8070"
#HTTPListen = ":8080"
# Alert checks are run by default every CheckFrequency * DefaultRunEvery. RunEvery can be overridden
# by indivdual alerts. Defaults are "5m" and 1
CheckFrequency = "1m"
DefaultRunEvery = 5
@tomaustin700
tomaustin700 / bosun.conf
Created May 5, 2019 13:21
Supervisor file for Bosun
[program:bosun]
command=/bosun/bosun -c /data/bosun.toml
stdout_logfile=/var/log/bosun.out.log
stderr_logfile=/var/log/bosun.err.log
autostart=true
autorestart=true
[program:tsdbrelay]
command=/bin/bash -c "/tsdbrelay/tsdbrelay -l 0.0.0.0:5252 -b bosunip:8070 -t opentsdbip:4242 -redis redisip:6379"
priority=100
stdout_logfile=/var/log/tsdbrelay.out.log
stderr_logfile=/var/log/tsdbrelay.err.log
autostart=true
autorestart=true
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"virtualMachines_DC_name": {
"defaultValue": "DC",
"type": "String"
},
"virtualMachines_ADS_name": {
"defaultValue": "ADS",
kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
# Default values for sampleapp.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
fullnameOverride: website
replicaCount: 2
image:
repository: VALUE_TO_BE_OVERRIDDEN
tag: latest
imagePullSecrets: []
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: {{ template "kuberwebsite.fullname" . }}
labels:
app: {{ template "kuberwebsite.name" . }}
chart: {{ template "kuberwebsite.chart" . }}
draft: {{ default "draft-app" .Values.draft }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "kuberwebsite.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
app: {{ template "kuberwebsite.name" . }}
kind: Namespace
apiVersion: v1
metadata:
name: $(namespace)
spec: {}
status: {}
---
kind: ServiceAccount
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: {{ template "api.fullname" . }}
labels:
app: {{ template "api.name" . }}
chart: {{ template "api.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec: