Usage: pi create -f FILENAME [OPTIONS]
Create a new service
-e, --access-key API access key
-k, --secret-key API secret key
-r, --region Region name, default: gcp-us-central1
-u, --user Username
-f, --filename Filename, directory, or URL to files to use to create the service, support yaml or json
This command creates a new service. If associated with a floating IP, the service will be exposed on the Internet, otherwise the service is internal.
//createservicefromfile$picreate-fservice-clusterip-default.yamlservice/test-clusterip-default//createviasubcommand (clusterip service)$picreateserviceclusteripnginx-internal--tcp=8080:80--selector=app=nginx-internalservice/nginx-internal//createviasubcommand (loadbalancer service,'--loadbalancerip'isfloatingIP)$ pi create service loadbalancer my-nginx-external --tcp=8080:80 --loadbalancerip=35.193.x.x --selector=app=nginx-external
service/my-nginx-external