docker run --rm -it
-e GOOGLE_APPLICATION_CREDENTIALS=/etc/gcp-token.json
-v $HOME/Downloads/aos-kettle-72e5c837667e.json:/etc/gcp-token.json
-v $HOME/tmp/kettle-build.db:/data/build.db
-v $PWD/../buckets.yaml:/buckets.yaml
-v $PWD/make_db.py:/kettle/make_db.py
-v $PWD/update.py:/kettle/update.py
-v $PWD/make_json.py:/kettle/make_json.py
-v $PWD/make_db.py:/kettle/make_db.py
-v $PWD/model.py:/kettle/model.py \
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
| export GOROOT="$HOME/.go/dist/go1.9.2" | |
| export GOPATH=$(expand_path .) | |
| export KUBECONFIG=/var/run/kubernetes/admin.kubeconfig | |
| export PATH="$GOROOT/bin:$PATH:$(expand_path .)/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
| E | |
| B | |
| G | |
| D 8 11 3 6 | |
| A 11 11 6 6 | |
| D 8 11 3 6 |
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/local/opt/curl/bin/curl -k --cert /var/run/kubernetes/client-admin.crt --key /var/run/kubernetes/client-admin.key --cacert /var/run/kubernetes/client-ca.crt -H 'Accept: application/json;as=PartialObjectMetadata;v=v1alpha1;g=meta.k8s.io' https://localhost:6443/api/v1/namespaces/kube-system/configmaps/kube-dns | |
| { | |
| "kind": "PartialObjectMetadata", | |
| "apiVersion": "meta.k8s.io/v1alpha1", | |
| "metadata": { | |
| "name": "kube-dns", | |
| "namespace": "kube-system", | |
| "selfLink": "/api/v1/namespaces/kube-system/configmaps/kube-dns", | |
| "uid": "adce7608-7df6-11e7-a55a-acbc32bcadbb", | |
| "resourceVersion": "162", |
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: apiextensions.k8s.io/v1beta1 | |
| kind: CustomResourceDefinition | |
| metadata: | |
| # name must be in the form: plural.group | |
| name: clustercrontabss.stable.example.com | |
| spec: | |
| # group name to use for REST API: /apis/<group>/<version> | |
| group: stable.example.com | |
| # version name to use for REST API: /apis/<group>/<version> | |
| version: v1 |
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
| config.vm.synced_folder ".", "/nfs/vagrant", type: "nfs" | |
| config.bindfs.bind_folder "/nfs/vagrant", "/vagrant", :owner => "1000", :group => "1000", :perms => 'u=u:g=g:o=o', :'create-as-user' => true | |
| config.vm.synced_folder "#{ENV['GOPATH']}/src", "/nfs/src", type: "nfs", mount_options: [ | |
| 'vers=3', | |
| 'rw', | |
| 'tcp', | |
| 'fsc', | |
| 'intr', | |
| 'rsize=1048576', | |
| 'wsize=1048576' |
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 -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| master_pid=$1 | |
| if [ "${master_pid}" == "" ]; then | |
| echo "usage: profile-cluster.sh <master pid>" | |
| exit 1 |
NewerOlder