I hereby claim:
- I am thomastaylor312 on github.
- I am oftaylor (https://keybase.io/oftaylor) on keybase.
- I have a public key ASAlykQfVWlOTiak4OU3b4FVHpXrIU_jYvLOBEnqqdDjoAo
To claim this, I am signing this object:
def nullTrustManager = [ | |
checkClientTrusted: { chain, authType -> }, | |
checkServerTrusted: { chain, authType -> }, | |
getAcceptedIssuers: { null } | |
] | |
def nullHostnameVerifier = [ | |
verify: { hostname, session -> true } | |
] |
# Alert when the rate of events exceeds a threshold | |
# (Required) | |
# Rule name, must be unique | |
name: jenkins-severe-exceptions | |
# (Required) | |
# Type of alert. | |
# the frequency rule type alerts when num_events events occur with timeframe time | |
type: frequency |
#!/bin/bash | |
if [ $# -lt 2 ]; then | |
echo 'Expects 2 arguments: ./populate.sh APPLICATION K8S_ENVIRONMENT' | |
exit 1 | |
fi | |
extra_vars="--extra-vars @group_vars/secrets.yml" | |
application=$1 | |
k8s_environment=$2 |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"log" | |
"k8s.io/kubernetes/pkg/api" | |
client "k8s.io/kubernetes/pkg/client/unversioned" | |
"k8s.io/kubernetes/pkg/fields" | |
"k8s.io/kubernetes/pkg/labels" | |
) |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: cassandra | |
# Allows service to connect to containers that aren't in a ready state | |
# This is needed so the cluster can actually spin up | |
annotations: | |
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" |
def check_pods(get_pods_json): | |
problemPods = list() | |
for pod in get_pods_json['items']: | |
isBad = False | |
if pod['status']['phase'] != 'Running' and pod['status']['phase'] != 'Completed': | |
isBad = True | |
else: | |
for container_status in pod['status']['containerStatuses']: | |
if not container_status['ready']: | |
isBad = True |
stream | |
// The following stream alerts based on changes in cpu/usage | |
// Every minute the rate of change for the cpu/usage is calculated | |
// Alerts are sent out when that rate is unusually high | |
|from() | |
.measurement('cpu/usage') | |
.where(lambda: "type" == 'node' AND "nodename" =~/.*cassandra.*/) | |
.groupBy('nodename') | |
|derivative('value') | |
.unit(60s) |
- include_vars: "group_vars/secrets/secrets_{{ k8s_environment }}_{{ jenkins_type }}.yml" | |
- name: "Jenkins specs directory" | |
file: | |
dest: "./build/{{ k8s_environment }}/" | |
state: directory | |
- name: "Jenkins environment directory" | |
file: | |
dest: "./build/{{ k8s_environment }}/jenkins" | |
state: directory | |
- name: "Set path where specs go" |