Skip to content

Instantly share code, notes, and snippets.

@kunalkushwaha
Last active March 11, 2019 08:08
Show Gist options
  • Save kunalkushwaha/43ec99f4d8b849f1abbaad32fa3b0fb1 to your computer and use it in GitHub Desktop.
Save kunalkushwaha/43ec99f4d8b849f1abbaad32fa3b0fb1 to your computer and use it in GitHub Desktop.
$ virtctl expose virtualmachineinstance vmi-trac --name trac --type NodePort --target-port 22
Service trac successfully exposed for virtualmachineinstance vmi-trac
$ kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 3d2h
trac NodePort 10.108.30.13 <none> 80:30322/TCP,22:31358/TCP 2s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment