This file contains 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 Sep 25 06:53:05 UTC 2019 |
This file contains 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
Fri Jul 19 07:14:44 UTC 2019 |
This file contains 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
## 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 |
This file contains 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
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 |
This file contains 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: ServiceAccount | |
metadata: | |
name: fluentd | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRole | |
metadata: |
This file contains 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
-----BEGIN CERTIFICATE----- | |
MIIC4jCCAcoCCQDtrPyS/ObwjzANBgkqhkiG9w0BAQsFADAzMR4wHAYDVQQDDBVz | |
dGctYWRtaW4uc3VtYWthZ2kuanAxETAPBgNVBAoMCG5naW54c3ZjMB4XDTE4MTEw | |
NjA1MzAyOFoXDTE5MTEwNjA1MzAyOFowMzEeMBwGA1UEAwwVc3RnLWFkbWluLnN1 | |
bWFrYWdpLmpwMREwDwYDVQQKDAhuZ2lueHN2YzCCASIwDQYJKoZIhvcNAQEBBQAD | |
ggEPADCCAQoCggEBALySOOUNAkyQPz+HjwLXCl/McOJNkCMqE4a0LWiSwhks2fny | |
hHIxhk+hS3OPRgzPG08NOGF0ZMyfjGLldu8Wk/lMS2IF07OWosCAbGGWPYCSF0VI | |
1kcfRBcQQ5Z7ds/Shp9c2e2Tav8boquhT62Js2zOlczCXoniR/6XYz5I+XLiUNVy | |
Xc98UgkpFSZypUCnYY6Qv9kNldw+Fi97Kavi7enR9WjOBc5iEkNzw2jDDMFmEFxe | |
3/pU7hXES1WBq5Whua0CA5wHCLjb2OxAjfIGn3rsEhcXNWwClLi/OO6ibb88xXDM |
This file contains 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
# 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 |
This file contains 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: ServiceAccount | |
metadata: | |
name: fluentd | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRole |
This file contains 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
- type: replace | |
path: /resource_pools/name=vms/cloud_properties/instance_type | |
value: t2.medium |
This file contains 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: ServiceAccount | |
metadata: | |
name: fluentd | |
namespace: kube-system | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
kind: ClusterRole |