Skip to content

Instantly share code, notes, and snippets.

@niharbabu99
Last active June 4, 2020 05:22
Show Gist options
  • Save niharbabu99/6a783519e98bb0f5ac89c6a0dbe27cf8 to your computer and use it in GitHub Desktop.
Save niharbabu99/6a783519e98bb0f5ac89c6a0dbe27cf8 to your computer and use it in GitHub Desktop.
https://github.com/bluemixgaragelondon/cf-blue-green-deploy
bosh scp or bosh ssh command fails in a host machine if nc[netcat] is not present. You should install netcat-openbsd package instead of traditional nc package
bosh delete-release {release-name}/{version}
bosh -d {deployment-name} delete-deployment
bosh -d {deployment-name} deploy [path/to/manifest/yamlfile]
to route the storm UI
bosh ssh -d storm-demo nimbus_instance/0 -- -L 6078:127.0.0.1:8089
https://starkandwayne.com/blog/collocated-bosh-errands-run-one-off-tasks-inside-your-instances/
bosh -d concourse restart web
CF_DOCKER_PASSWORD=YOUR-PASSWORD cf push {app-name} --docker-image {image} --docker-username {username}
cf logs {app-name} --recent
Scaling horizontally.
Use cf scale APP -i INSTANCES to horizontally scale your app. Cloud Foundry will increase or decrease the number of instances of your app to match INSTANCES
eg: cf scale myApp -i 5
Vertically scaling an app changes the disk space limit or memory limit that Cloud Foundry applies to all instances of the app.
Use cf scale APP -k DISK to change the disk space limit applied to all instances of your app. DISK must be an integer followed by either an M, for megabytes, or G, for gigabytes.
eg: cf scale myApp -m 1G or cf scale myApp -k 512M
to display task details
bosh tasks --recent=10000 --all
bosh cloud-config
bosh update-cloud-config
https://docs.pivotal.io/pivotalcf/2-4/devguide/services/user-provided.html
https://docs.cloud.service.gov.uk/deploying_services/route_services/#route-services
https://docs.pivotal.io/pivotalcf/2-3/devguide/deploy-apps/routes-domains.html#-map-an-internal-route-to-an-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment