[root@k8s-master01 ~]# kubectl expose deployment nginxtest-deployment --name=testsvc --type=NodePort --port=85
service/testsvc exposed
[root@k8s-master01 ~]# kubectl get svc|grep test
testsvc NodePort 10.108.79.112 <none> 85:30509/TCP 106m