git clone https://github.com/making/terraforming-jumpbox
cd terraforming-jumpbox
cp terraform.tfvars.sample terraform.tfvars
terraform plan -out plan
terraform apply plan
./ssh-jumpbox.sh
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
#@ load("@ytt:overlay", "overlay") | |
#@overlay/match by=overlay.subset({"kind":"ConfigMap","metadata":{"name":"argocd-cm"}}) | |
#@overlay/match-child-defaults missing_ok=True | |
--- | |
data: | |
configManagementPlugins: | | |
- name: ytt | |
generate: | |
command: |
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: Namespace | |
metadata: | |
name: demo | |
labels: | |
quarks.cloudfoundry.org/monitored: qsecret-quarks-secret | |
--- | |
apiVersion: quarks.cloudfoundry.org/v1alpha1 | |
kind: QuarksSecret | |
metadata: |
mkdir platform-automation
cd platform-automation
pivnet download-product-files --product-slug='platform-automation' --release-version='4.4.3' --product-file-id=709887
tar xvf platform-automation-image-4.4.3.tgz ./rootfs/usr/bin/p-automator
sudo install rootfs/usr/bin/p-automator /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
--- | |
# curl -s -vvv https://metrics.${SYSTEM_DOMAIN}/indicator-documents -H "Authorization: $(cf oauth-token)" --data-binary @demo.yml | |
apiVersion: indicatorprotocol.io/v1 | |
kind: IndicatorDocument | |
metadata: | |
labels: | |
#deployment: acmeair | |
#deployment: log-cache-ui |
## pivnet
curl -sL https://github.com/pivotal-cf/pivnet-cli/releases/download/v1.0.3/pivnet-linux-amd64-1.0.3 > pivnet
chmod +x pivnet
sudo mv pivnet /usr/local/bin/
## bosh
curl -sL https://github.com/cloudfoundry/bosh-cli/releases/download/v6.2.1/bosh-cli-6.2.1-linux-amd64 > bosh
chmod +x bosh
sudo mv bosh /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
Wed May 13 13:56:35 UTC 2020 |
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
openapi: 3.0.0 | |
info: | |
title: tweeter | |
version: '1.0' | |
description: TweeterのAPIです。 | |
license: | |
name: Apache 2.0 | |
servers: | |
- url: 'http://localhost:8080' | |
paths: |
export PROJECT_ID=fe-tmaki
export SERVICE_ACCOUNT=cnb-user
export GCR_HOSTNAME=asia.gcr.io
gcloud auth login
gcloud iam service-accounts create ${SERVICE_ACCOUNT}
gcloud projects add-iam-policy-binding ${PROJECT_ID} --member "serviceAccount:${SERVICE_ACCOUNT}@${PROJECT_ID}.iam.gserviceaccount.com" --role "roles/storage.admin"
gcloud iam service-accounts keys create ${SERVICE_ACCOUNT}.json --iam-account ${SERVICE_ACCOUNT}@${PROJECT_ID}.iam.gserviceaccount.com
cat ${SERVICE_ACCOUNT}.json | docker login -u _json_key --password-stdin https://${GCR_HOSTNAME}