0 votes
in Kubernetes K8s by
Kubectl command to make a new yaml file for a service by exposing a already running deployment that runs a pod Name of the deployment: foo

1 Answer

0 votes
by

Kubectl expose deployment foo --name foo-service --type=NodePort --port 8080 --target-port=8080 --dry-run=client -o yaml > svcyaml

...