Wednesday, February 28, 2018

CUPS & services


What is a service? Can you name some examples? 
  • A service is a PCF component (a resource reserved) to access on demand components. 
  • Examples
    • Database on a shared server. 
    • Access to a SaaS app. 

What is the “marketplace”? Does it show all services? 
  • Is a list of all service brokers
  • Cf marketplace will show all services. And 
  • Cf services will show all the services available inside a particular space. 

What is the difference between a managed and user-provided service? 
  • Managed services are services available in the marketplace. 
  • User provided service enable developers to create and use custom services. 

How would you create a managed service? 
  cf create-service SERVICE PLAN SERVICE_INSTANCE -c '{"name":"value","name":"value"}'
  cf create-service db-service silver mydb -c '{"ram_gb":4}'

How would you use a managed service? 
   cf bind-service APP_NAME SERVICE_INSTANCE -c '{"name":"value","name":"value"}'
      cf bind-service myapp mydb -c '{"permissions":"read-only"}'


How would you create a user-provided service? 
   cf create-user-provided-service SERVICE_INSTANCE [-p CREDENTIALS] [-l SYSLOG_DRAIN_URL] [-r ROUTE_SERVICE_URL]
  cf create-user-provided-service my-db-mine -p "username, password"

How would you use a user-provided service? 
  cf bind-service APP_NAME SERVICE_INSTANCE -c '{"name":"value","name":"value"}'

What is VCAPS_SERVICES? 
VCAP_SERVICES are environment variables that contain the details of bindable services that CF adde

No comments:

Post a Comment