Google Cloud Functions (GCF) deployment involves writing the function, specifying dependencies in a package.json file, and deploying using the gcloud command-line tool or GCP Console. The function’s trigger type is defined during deployment.
Versioning in GCF doesn’t follow traditional methods. Each deployment creates a new version but previous versions aren’t accessible unless deployed as separate functions. For managing different versions, consider Google Cloud Source Repositories for source control.
Managing GCF includes monitoring, debugging, and error reporting. Stackdriver provides these services. Monitoring allows viewing invocation logs, execution times, and other metrics. Debugging can be done locally with the functions-framework or in production with Stackdriver Debugger. Error Reporting aggregates and displays errors affecting your functions.