Description of problem: These no command to delete an exposed service, even if this service was exposed using "virtctl expose". virtcrl should have a delete command, just like there's "oc expose" and "oc delete svc". Version-Release number of selected component (if applicable): Server/client: v0.12.0-alpha.2 How reproducible: Always. Steps to Reproduce: 1. Create a cirros VM. # oc create -f cluster/example/vm-cirros.yaml 2. Start the VM: # virtctl start vm-cirros 3. Verify VMI is running. # oc get VMI NAME AGE PHASE IP NODENAME vm-cirros 10m Running 10.130.0.46 cnv-executor-ysegev-node1.example.com 4. Expose a service using "virtctl expose", e.g. a service of type NodePort: # virtctl expose vmi vm-cirros --name=testnp --port=27017 --target-port=22 --type=NodePort Actual results: In order to delete the exposed service, you have to run "oc delete svc". Expected results: It makes sense, that just like "oc expose" has a complementary "oc delete svc", there should also be a complementary "virtctl delete svc". Additional info:
IMO we should drop "virtctl expose" and make it easier to use virtual machines with "kubectl expose" An upstream patch would be necessary to allow "kubectl expose -l domain=mydom".
Either way we expose (virtctl or kubecrl) we should have a reciprocal command to delete.
delegating Jira request to Yossi.
https://jira.coreos.com/browse/CNV-1998
Close this RFE bug, we will follow the fix by jira in comment 7.