Skip to content

Instantly share code, notes, and snippets.

View imosquera's full-sized avatar

Isaac Mosquera imosquera

View GitHub Profile
{
"executionRequest": {
"lifetimeDurationMins": 10,
"analysisIntervalMins": 1,
"scopes": [
{
"controlScope": "host:gke-panera-shared-ser-devops-gke-test-96cd73b4-zr3q.c.shared-services-pb.internal",
"controlOffset": 0,
"experimentScope": "host:gke-panera-shared-ser-devops-gke-test-96cd73b4-10cz.c.shared-services-pb.internal",
"extendedScopeParams": {
import unicodecsv as csv
import urllib
import sys
import json
import requests
users_url = "https://api.github.com/users/%s"
# Use the following query to export all the user logins
[
{
"type": "RECORD",
"name": "details",
"mode": "NULLABLE",
"fields": [
{
"type": "STRING",
"name": "source",
[
{
type: "RECORD",
name: "details",
mode: "NULLABLE",
fields: [
{
type: "STRING",
name: "source",
mode: "NULLABLE"
[
{
type: "RECORD",
name: "details",
mode: "NULLABLE",
fields: [
{
type: "STRING",
name: "source",
mode: "NULLABLE"
apiVersion: apps/v1
kind: Deployment
metadata:
name: armory-halyard
namespace: {some-namespace}
labels:
app: armory-halyard
spec:
replicas: 1
selector:
# serviceaccount.yml
apiVersion: v1
kind: ServiceAccount
metadata:
name: spinnaker-service-account
---
apiVersion: rbac.authorization.k8s.io/v1
@imosquera
imosquera / kubernetes_add_service_account_kubeconfig.sh
Created July 26, 2018 19:42 — forked from innovia/kubernetes_add_service_account_kubeconfig.sh
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi
ailed to load resource: net::ERR_CONNECTION_REFUSED
vendors~app.js:186825 Warning: a promise was rejected with a non-error: [object Object]
at ConfigFileService.cacheFileVersions (http://internal-a676f0bd5759211e8a13202862bb50b0-8776447.us-west-2.elb.amazonaws.com/app.js:6625:16)
at new ConfigFileService (http://internal-a676f0bd5759211e8a13202862bb50b0-8776447.us-west-2.elb.amazonaws.com/app.js:6516:14)
at new RealSettings (http://internal-a676f0bd5759211e8a13202862bb50b0-8776447.us-west-2.elb.amazonaws.com/app.js:2737:35)
at constructClassInstance (http://internal-a676f0bd5759211e8a13202862bb50b0-8776447.us-west-2.elb.amazonaws.com/vendors~app.js:409510:354)
at beginWork (http://internal-a676f0bd5759211e8a13202862bb50b0-8776447.us-west-2.elb.amazonaws.com/vendors~app.js:409534:440)
at d (http://internal-a676f0bd5759211e8a13202862bb50b0-8776447.us-west-2.elb.amazonaws.com/vendors~app.js:409562:93)
at f (http://internal-a676f0bd5759211e8a13202862bb50b0-8776447.us-west-2.elb.amazona
server:
port: 8084
services:
barometer:
baseUrl: http://localhost:9092
deck:
baseUrl: http://localhost:9000
lighthouse:
baseUrl: http://localhost:5000