These instructions are for DC/OS 1.11.0 and Kubernetes package 1.0.0-1.9.3.
Install the DC/OS Enterprise CLI, then create a keypair and a service account for Kubernetes. Securely store the private key in the DC/OS secrets store.
| #!/bin/bash | |
| usage(){ | |
| echo " Usage: $0 url <clean> <tls>" | |
| echo " url: http url to your DC/OS cluster master ip" | |
| echo " clean: optional, will erase your DC/OS and kubectl configs and reconfigure" | |
| echo " tls: optional, will deploy kubernetes using TLS" | |
| echo " Minimum Config:" | |
| echo " If using CCM the mininum configuration for the ""generic"" Kuberentes Install" | |
| echo " 1 public slave node" |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "html/template" | |
| "net/http" | |
| "os" | |
| ) |
| # 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 |
| #!/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 |
| #!/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) |
| ### 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/. |
| steps: | |
| - name: 'gcr.io/cloud-builders/docker' | |
| args: | |
| - 'build' | |
| - '-f' | |
| - 'Dockerfile.alpine' | |
| - '-t' | |
| - 'gcr.io/$PROJECT_ID/large-docker-alpine:latest' | |
| - '.' | |
| waitFor: ['-'] |
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
| 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 |