Step 3: Create & Deploy a Service
The minimal requirement to deploy a service is to select a docker image. We will deploy Nginx with a default configuration in this deployment.
Install pvnctl
Skip this step if you've already set up pvnctl in a previous step.
Follow pvnctl docs for installing pvnctl. You should be able to run it to see the application created in the previous step:
pvnctl applications list
Create a Service
Services in Prodvana are created via config files.
service:
name: nginx
application: my-app # replace with app name from previous step
programs:
- name: nginx
imageTag: latest
imageRegistryInfo:
containerRegistry: dockerhub-public
imageRepository: library/nginx
Apply the config file with pvnctl:
pvnctl configs apply nginx.pvn.yaml
Deploy
Go to my-demo-organization.runprodvana.com -> Applications -> your app name -> nginx. Click on deploy and select one of the images (1.22-perl
works great).
Updated about 1 year ago