kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
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
| #!/bin/bash | |
| set -e | |
| GCP_PROJECT="${GCP_PROJECT:-default}" | |
| KMS_KEYRING="${KMS_KEYRING:-default}" | |
| KMS_LOCATION="${KMS_LOCATION:-default}" | |
| KMS_KEY="${KMS_KEY:-default}" | |
| hash gcloud 2>/dev/null || { echo >&2 "gcloud command required to decrypt secrets."; exit 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
| #!/bin/bash | |
| # Copyright © 2017 Google Inc. | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software |
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: v1 | |
| kind: Service | |
| metadata: | |
| labels: | |
| name: client-socket-ingress | |
| app: {{ template "fullname" . }} | |
| chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | |
| release: "{{ .Release.Name }}" | |
| heritage: "{{ .Release.Service }}" | |
| name: client-socket-ingress |
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
| steps: | |
| - name: 'gcr.io/cloud-builders/docker' | |
| args: | |
| - 'build' | |
| - '-f' | |
| - 'Dockerfile.alpine' | |
| - '-t' | |
| - 'gcr.io/$PROJECT_ID/large-docker-alpine:latest' | |
| - '.' | |
| waitFor: ['-'] |
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
| ### Requirements | |
| apt install docker.io socat | |
| ### KUBECTL | |
| wget https://storage.googleapis.com/kubernetes-release/release/v1.6.2/bin/linux/amd64/kubectl | |
| chmod +x kubectl | |
| sudo mv kubectl /usr/local/bin/. |
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
| #!/bin/bash | |
| while read oldrev newrev refname | |
| do | |
| short_sha=${newrev:0:8} | |
| ulid=$(/usr/local/bin/ulid) | |
| build_id="acid-worker-${ulid}-${short_sha}" | |
| e_build_id=$(echo "$build_id" | base64 -w 0) | |
| e_project_id=$(echo "$ACID_PROJECT_ID" | base64 -w 0) | |
| e_acidjs=$(git show ${newrev}:acid.js | base64 -w 0) |
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 | |
| set -euo pipefail | |
| # The Kubernetes namespace in which Brigade is running. | |
| namespace="default" | |
| event_provider="simple-event" | |
| event_type="my_event" | |
| # This is github.com/deis/empty-testbed |
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
| # To run: | |
| # osascript firefox-open-tab.applescript http://technosophos.com | |
| # | |
| # References: | |
| # https://support.mozilla.org/en-US/questions/1130718 | |
| # https://stackoverflow.com/questions/3645763/how-do-i-instruct-applescript-to-open-a-new-firefox-window-with-a-link | |
| on firefoxRunning() | |
| tell application "System Events" to (name of processes) contains "firefox" | |
| end firefoxRunning |
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 main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "html/template" | |
| "net/http" | |
| "os" | |
| ) |