Skip to content

Instantly share code, notes, and snippets.

Kazuto Kusama jacopen

Block or report user

Report or block jacopen

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bumpme
Fri Jul 19 07:14:44 UTC 2019
View BOSH Deployment停止手順.txt
## aliasを設定
ubuntu@ip-10-128-0-181:~$ alias bosh="BOSH_CLIENT=ops_manager BOSH_CLIENT_SECRET=foo BOSH_CA_CERT=/var/tempest/workspaces/default/root_ca_certificate BOSH_ENVIRONMENT=10.128.4.10 bosh "
## VM一覧を表示
ubuntu@ip-10-128-0-181:~$ bosh vms
Using environment '10.128.4.10' as client 'ops_manager'
Task 19999
Task 20000
Task 20001
@jacopen
jacopen / check.sh
Created Nov 20, 2018
statuscode check script
View check.sh
while true; do echo `date '+%Y-%m-%d %H:%M:%S'` -- `curl -LIs http://slack.paas.jp -o /dev/null -w '%{http_code}\n'` >> log;sleep 1; done
View fluentd-daemonset.yml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: fluentd
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
View admin-tls.crt
-----BEGIN CERTIFICATE-----
MIIC4jCCAcoCCQDtrPyS/ObwjzANBgkqhkiG9w0BAQsFADAzMR4wHAYDVQQDDBVz
dGctYWRtaW4uc3VtYWthZ2kuanAxETAPBgNVBAoMCG5naW54c3ZjMB4XDTE4MTEw
NjA1MzAyOFoXDTE5MTEwNjA1MzAyOFowMzEeMBwGA1UEAwwVc3RnLWFkbWluLnN1
bWFrYWdpLmpwMREwDwYDVQQKDAhuZ2lueHN2YzCCASIwDQYJKoZIhvcNAQEBBQAD
ggEPADCCAQoCggEBALySOOUNAkyQPz+HjwLXCl/McOJNkCMqE4a0LWiSwhks2fny
hHIxhk+hS3OPRgzPG08NOGF0ZMyfjGLldu8Wk/lMS2IF07OWosCAbGGWPYCSF0VI
1kcfRBcQQ5Z7ds/Shp9c2e2Tav8boquhT62Js2zOlczCXoniR/6XYz5I+XLiUNVy
Xc98UgkpFSZypUCnYY6Qv9kNldw+Fi97Kavi7enR9WjOBc5iEkNzw2jDDMFmEFxe
3/pU7hXES1WBq5Whua0CA5wHCLjb2OxAjfIGn3rsEhcXNWwClLi/OO6ibb88xXDM
View setup_gcp.sh
# Create environment variable for correct distribution
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# Add the Cloud SDK distribution URI as a package source
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# Update the package list and install the Cloud SDK
View fluentd-daemonset-syslog.yaml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: fluentd
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
View modify_director_instancetype.yml
- type: replace
path: /resource_pools/name=vms/cloud_properties/instance_type
value: t2.medium
View fluentd-elasticsearch-rbac.yml
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: fluentd
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
@jacopen
jacopen / aws.sh
Last active Oct 24, 2018
Customize OpsManager Instance Type
View aws.sh
curl https://localhost/api/v0/vm_types -X PUT -H "Authorization:Bearer $UAA_TOKEN" -k \
-H "Content-Type: application/json" \
-d '{"vm_types":[{"name":"t2.micro","ram":1024,"cpu":1,"ephemeral_disk":8192,"raw_instance_storage":false,"builtin":true},{"name":"t2.small","ram":2048,"cpu":1,"ephemeral_disk":8192,"raw_instance_storage":false,"builtin":true},{"name":"t2.medium","ram":4096,"cpu":1,"ephemeral_disk":32768,"raw_instance_storage":false,"builtin":true},{"name":"c4.large","ram":4096,"cpu":2,"ephemeral_disk":32768,"raw_instance_storage":false,"builtin":true},{"name":"m4.large","ram":8192,"cpu":2,"ephemeral_disk":32768,"raw_instance_storage":false,"builtin":true},{"name":"r4.large","ram":15616,"cpu":2,"ephemeral_disk":65536,"raw_instance_storage":false,"builtin":true},{"name":"c4.xlarge","ram":8192,"cpu":4,"ephemeral_disk":65536,"raw_instance_storage":false,"builtin":true},{"name":"m4.xlarge","ram":16500,"cpu":4,"ephemeral_disk":65536,"raw_instance_storage":false,"builtin":true},{"name":"r4.xlarge","ram":3123
You can’t perform that action at this time.